Skip to content

Commit

Permalink
ci: fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Sep 1, 2023
1 parent 4c2a27a commit 2dfb34e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 126 deletions.
120 changes: 0 additions & 120 deletions .calcipy_packaging.lock
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@
"name": "black",
"version": "23.7.0"
},
"boltons": {
"datetime": "2021-05-17T01:20:20.023620+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2021-05-17T01:20:20.023620+00:00",
"latest_version": "21.0.0",
"name": "boltons",
"version": "21.0.0"
},
"bracex": {
"datetime": "2022-05-30T14:58:01.709129+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -151,14 +143,6 @@
"name": "click",
"version": "8.1.7"
},
"click-option-group": {
"datetime": "2023-06-09T22:22:34.978391+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-06-09T22:22:34.978391+00:00",
"latest_version": "0.5.6",
"name": "click-option-group",
"version": "0.5.6"
},
"colorama": {
"datetime": "2022-10-25T02:36:20.889702+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -215,14 +199,6 @@
"name": "decli",
"version": "0.6.1"
},
"defusedxml": {
"datetime": "2021-03-08T10:59:24.450195+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2021-03-08T10:59:24.450195+00:00",
"latest_version": "0.7.1",
"name": "defusedxml",
"version": "0.7.1"
},
"dill": {
"datetime": "2023-07-22T22:18:44.511419+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -255,14 +231,6 @@
"name": "exceptiongroup",
"version": "1.1.3"
},
"face": {
"datetime": "2022-10-18T00:31:22.171214+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2022-10-18T00:31:22.171214+00:00",
"latest_version": "22.0.0",
"name": "face",
"version": "22.0.0"
},
"filelock": {
"datetime": "2023-08-28T15:40:02.163719+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -351,14 +319,6 @@
"name": "gitpython",
"version": "3.1.32"
},
"glom": {
"datetime": "2022-01-24T09:34:02.391619+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-01-19T08:15:12.999490+00:00",
"latest_version": "23.1.1",
"name": "glom",
"version": "22.1.0"
},
"griffe": {
"datetime": "2023-08-27T17:33:53.238184+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -455,22 +415,6 @@
"name": "jinja2",
"version": "3.1.2"
},
"jsonschema": {
"datetime": "2023-08-07T07:44:55.801028+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-08-07T07:44:55.801028+00:00",
"latest_version": "4.19.0",
"name": "jsonschema",
"version": "4.19.0"
},
"jsonschema-specifications": {
"datetime": "2023-07-18T15:25:45.245921+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-07-18T15:25:45.245921+00:00",
"latest_version": "2023.7.1",
"name": "jsonschema-specifications",
"version": "2023.7.1"
},
"lazy-object-proxy": {
"datetime": "2023-01-04T19:55:58.968594+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -727,14 +671,6 @@
"name": "pbr",
"version": "5.11.1"
},
"peewee": {
"datetime": "2023-08-14T14:15:20.650273+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-08-14T14:15:20.650273+00:00",
"latest_version": "3.16.3",
"name": "peewee",
"version": "3.16.3"
},
"pip": {
"datetime": "2023-07-22T09:17:31.548131+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -927,14 +863,6 @@
"name": "python-dateutil",
"version": "2.8.2"
},
"python-lsp-jsonrpc": {
"datetime": "2021-04-14T21:19:18.698784+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2021-04-14T21:19:18.698784+00:00",
"latest_version": "1.0.0",
"name": "python-lsp-jsonrpc",
"version": "1.0.0"
},
"pytz": {
"datetime": "2023-03-29T04:23:25.307301+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -975,14 +903,6 @@
"name": "readtime",
"version": "3.0.0"
},
"referencing": {
"datetime": "2023-08-05T08:11:49.795483+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-08-05T08:11:49.795483+00:00",
"latest_version": "0.30.2",
"name": "referencing",
"version": "0.30.2"
},
"regex": {
"datetime": "2023-08-08T21:09:00.307461+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand All @@ -1007,30 +927,6 @@
"name": "rich",
"version": "13.5.2"
},
"rpds-py": {
"datetime": "2023-08-28T12:38:58.242941+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-08-28T12:38:58.242941+00:00",
"latest_version": "0.10.0",
"name": "rpds-py",
"version": "0.10.0"
},
"ruamel-yaml": {
"datetime": "2023-06-17T05:58:04.220102+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-06-17T05:58:04.220102+00:00",
"latest_version": "0.17.32",
"name": "ruamel-yaml",
"version": "0.17.32"
},
"ruamel-yaml-clib": {
"datetime": "2022-10-20T13:09:34.031451+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2022-10-20T13:09:34.031451+00:00",
"latest_version": "0.2.7",
"name": "ruamel-yaml-clib",
"version": "0.2.7"
},
"ruff": {
"datetime": "2023-08-25T19:33:31.020697+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand All @@ -1039,14 +935,6 @@
"name": "ruff",
"version": "0.0.286"
},
"semgrep": {
"datetime": "2023-08-31T23:22:24.160995+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-08-31T23:22:24.160995+00:00",
"latest_version": "1.38.0",
"name": "semgrep",
"version": "1.38.0"
},
"semver": {
"datetime": "2023-06-14T11:43:20.066631+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -1207,14 +1095,6 @@
"name": "tzdata",
"version": "2023.3"
},
"ujson": {
"datetime": "2023-06-11T08:49:51.075023+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-06-11T08:49:51.075023+00:00",
"latest_version": "5.8.0",
"name": "ujson",
"version": "5.8.0"
},
"urllib3": {
"datetime": "2023-05-23T12:18:41.548302+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ poetry config pypi-token.pypi ...
| `calcipy/tasks/cl.py` | 28 | 5 | 0 | 75.0% |
| `calcipy/tasks/defaults.py` | 20 | 0 | 0 | 89.3% |
| `calcipy/tasks/doc.py` | 45 | 0 | 8 | 90.5% |
| `calcipy/tasks/executable_utils.py` | 27 | 0 | 0 | 87.2% |
| `calcipy/tasks/lint.py` | 57 | 1 | 0 | 83.9% |
| `calcipy/tasks/executable_utils.py` | 28 | 0 | 0 | 87.5% |
| `calcipy/tasks/lint.py` | 58 | 1 | 0 | 84.1% |
| `calcipy/tasks/nox.py` | 8 | 0 | 0 | 100.0% |
| `calcipy/tasks/pack.py` | 42 | 10 | 0 | 65.6% |
| `calcipy/tasks/stale.py` | 9 | 1 | 0 | 90.9% |
| `calcipy/tasks/tags.py` | 15 | 0 | 0 | 100.0% |
| `calcipy/tasks/test.py` | 45 | 1 | 2 | 89.2% |
| `calcipy/tasks/types.py` | 17 | 0 | 0 | 91.3% |
| **Totals** | 1032 | 66 | 174 | 87.3% |
| **Totals** | 1034 | 66 | 174 | 87.3% |

Generated on: 2023-08-31
Generated on: 2023-09-01
<!-- {cte} -->
4 changes: 3 additions & 1 deletion tests/tasks/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
(pylint, {}, [f'{python_m()} pylint ./calcipy ./tests']),
(security, {}, [
f'{python_dir()}/bandit --recursive calcipy -s B101',
f'{python_dir()}/semgrep ci --autofix ' + ' '.join([ # noqa: FLY002
call('which semgrep', warn=True, hide=True),
'semgrep ci --autofix ' + ' '.join([ # noqa: FLY002
'--config=p/ci',
'--config=p/default',
'--config=p/security-audit',
Expand All @@ -35,6 +36,7 @@
]),
]),
(pre_commit, {}, [
call('which pre-commit', warn=True, hide=True),
'pre-commit install',
'pre-commit autoupdate',
'pre-commit run --all-files ' + ' '.join(f'--hook-stage {stg}' for stg in (
Expand Down
5 changes: 4 additions & 1 deletion tests/tasks/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
@pytest.mark.parametrize(
('task', 'kwargs', 'commands'),
[
(pyright, {}, ['pyright calcipy']),
(pyright, {}, [
call('which pyright', warn=True, hide=True),
'pyright calcipy',
]),
(mypy, {}, [f'{python_dir()}/mypy calcipy']),
],
)
Expand Down

0 comments on commit 2dfb34e

Please sign in to comment.