7a000145a7
Lint the notebooks in the lint session
...
Only `ruff` checks them because the formatters would rewrite the cells.
The per-file ignores fit exploratory code that is never rerun.
2026-12-03 11:45:38 +01:00
51f68743e5
Reword the comments in the config files
...
Each comment is one sentence or two short ones
joined by "=>", without a final period.
2026-12-03 11:06:17 +01:00
2a64958a93
Make Python 3.14 the MAIN_VERSION
...
CI / Checks (Python 3.14) (push) Successful in 2m46s
`requires-python` stays at ">=3.13"; so, `uv.lock` is unchanged
and 3.13 is tested with the "test-with" session.
2026-12-02 21:54:16 +01:00
df53ce7bc4
Pin MAIN_PYTHON in the "init-project" session
...
Otherwise, `uv` creates ".venv" with the newest installed Python.
2026-12-02 21:49:17 +01:00
b947337bd1
Remove flake8-return
...
It crashes on Python 3.14 (`ast.NameConstant` is gone) and is unmaintained.
`ruff` covers its rules.
2026-12-02 21:39:21 +01:00
80d2573f0d
Remove flake8-pie
...
It crashes on Python 3.14 (`ast.Str` is gone) and is unmaintained.
`ruff` covers its rules.
2026-12-02 21:27:27 +01:00
5609e8ec6e
Test with Python 3.14 and 3.15
...
The new "test-with" session runs the test suite with non-main Python versions;
yet, `MAIN_PYTHON` stays at 3.13
2026-12-02 17:43:05 +01:00
731299bb6e
Add nox session "verify-db-objects"
...
The new "verify-db-objects" session creates the ORM objects
with `.create_all()` in a temporary database and compares
them with the `CLEAN_SCHEMA` of a "live" database using `sqlalchemy-diff`
2026-12-01 21:53:31 +01:00
cfd8d33049
Rename the "doctest" session into "test-docstrings"
CI / Checks (Python 3.13) (push) Successful in 2m46s
2026-12-01 17:14:48 +01:00
2f313e7e3a
Pull out the TEST_DEPENDENCIES
2026-12-01 17:13:14 +01:00
5f7d3108de
Check the type annotations at runtime with typeguard
2026-12-01 17:07:00 +01:00
9a0dbb8ad8
Introduce TYPECHECK_LOCATIONS in the noxfile
CI / Checks (Python 3.13) (push) Successful in 2m2s
2026-12-01 15:05:54 +01:00
96b5a07f20
Add pyright to the "lint" session
2026-12-01 15:00:26 +01:00
d6b798a736
Type-check scripts/
2026-12-01 14:05:34 +01:00
f7a6aa1881
Type-check noxfile.py
2026-12-01 14:03:44 +01:00
2bc2408694
Type-check pandas with pandas-stubs
CI / Checks (Python 3.13) (push) Successful in 1m54s
2026-12-01 00:31:21 +01:00
567bb713e2
Enable YTT in flake8 and ruff
2026-11-30 23:43:49 +01:00
57ac602612
Enable TRY in flake8 and ruff
2026-11-30 23:42:08 +01:00
1827e02f34
Enable TID in flake8 and ruff
2026-11-30 23:41:42 +01:00
4023f32662
Enable RSE in flake8 and ruff
2026-11-30 23:41:00 +01:00
e612e33f59
Enable PIE in flake8 and ruff
2026-11-30 23:40:15 +01:00
d55e72e04d
Enable LOG in flake8 and ruff
2026-11-30 23:38:43 +01:00
c32566527a
Enable EXE in flake8 and ruff
2026-11-30 23:37:54 +01:00
ae2dc8db64
Enable EM in flake8 and ruff
2026-11-30 22:59:41 +01:00
5beb88559f
Enable FBT in flake8 and ruff
2026-11-30 22:43:35 +01:00
d0326aee4f
Enable SLF in ruff
2026-11-30 22:38:26 +01:00
95f08bc96d
Enable PD in flake8 and ruff
2026-11-30 22:11:10 +01:00
f266adad45
Enable A in flake8 and ruff
2026-11-30 22:06:45 +01:00
9cc21f5b69
Enable PTH in ruff
2026-11-30 22:06:43 +01:00
0cb924b3b6
Enable ISC in flake8 and ruff
2026-11-30 22:06:43 +01:00
3bd7dd5772
Enable RET in flake8 and ruff
2026-11-30 22:06:42 +01:00
007998372f
Enable SIM in flake8 and ruff
2026-11-30 22:06:41 +01:00
5dce8e6645
Enable UP in ruff
2026-11-30 21:28:31 +01:00
f0c617955b
Use the nox module import
2026-11-30 15:44:05 +01:00
9c3b52befb
Import typing as t ...
...
... and `collections.abc` as `cabc`
Linting rule for `velofy`: Import modules instead of objects
2026-11-30 15:42:21 +01:00
c6518f6b39
Use builtin generics and X | None
...
Since Python 3.9 and 3.10, `list`, `tuple`, and `X | None`
replace `typing.List`, `typing.Tuple`, and `typing.Optional`
2026-11-30 15:07:47 +01:00
570c9c9fcb
Run mypy in the "lint" session
...
It needs the dependencies of `velofy` installed,
and it now also reports "# type: ignore" comments without an error code
or that are not needed anymore
2026-11-30 13:15:27 +01:00
8f36a740d7
Enable ERA in ruff
...
Dead code belongs in the history, not in comments
2026-11-28 04:55:19 +01:00
707b4ab652
Add flynt to the "format" session
...
`flynt` converts old-style string formatting
into f-strings before `black` formats the result
2026-11-28 04:49:16 +01:00
e451f03d0f
Add ruff to the "format" session
...
`ruff format` adds parentheses around multi-line lambda bodies
and removes blank lines after block openers,
both of which `black` accepts.
Lines with `# type:ignore` are shortened
because `black` counts pragma comments toward the line length
and `ruff` does not.
2026-11-28 04:44:52 +01:00
318dff8fc8
Add ruff to the "lint" session
...
`ruff` runs alongside `flake8` and `isort`,
with the rules aligned to theirs:
- `noqa` comments go where both tools expect them
- `import`s stay sorted case-insensitively,
now stated explicitly in both tools
- `print()` in the "docs" session became `session.log()`
2026-11-28 04:37:25 +01:00
88554e3939
Silence the module name notice of bandit
CI / Checks (Python 3.13) (push) Successful in 1m41s
2026-11-28 04:11:56 +01:00
4a81403f15
Replace darglint with pydoclint
2026-11-28 04:06:53 +01:00
3ec7ec8c98
Add pep8-naming
2026-11-28 03:54:49 +01:00
882d3c98ba
Add flake8-unused-arguments
...
- Request fixtures only needed for their side effects
via `@pytest.mark.usefixtures()` instead of as arguments
- Remove fixtures that a test does not use at all
- Exempt abstract methods because their arguments define an interface
2026-11-28 03:48:50 +01:00
29a711f049
Add flake8-todos
2026-11-28 03:37:25 +01:00
cb8f919b1f
Add flake8-sfs
2026-11-28 03:34:40 +01:00
650765a9d3
Add flake8-quotes
2026-11-28 03:28:50 +01:00
50a0e45309
Ignore the double quotes commit in git blame
2026-11-28 03:28:49 +01:00
ea8f1a13e3
Use double quotes
2026-11-28 03:26:13 +01:00