ed739ed756
Drop support for Python 3.13
...
Python 3.14 evaluates annotations lazily (PEP 649),
so forward references need no quotes.
We make the tool targets, the lock files,
and the CI matrix follow the new minimum.
In order to use the new features,
we must drop support for Python 3.13
2026-12-03 13:03:11 +01:00
47a22f9587
Put the ruff per-file ignores on separate lines
...
Each reason now sits next to its codes,
which reads better than a separate list.
2026-12-03 11:47:32 +01:00
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
c18fc2ba59
Refer to sources with "See:" in comments
2026-12-03 11:09: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
049a5f6f62
Remove periods from one-sentence comments
2026-12-03 10:04:43 +01:00
454c2898a0
Remove the F401 ignore for __init__.py files
...
All re-exporting packages declare `__all__`;
so, unused imports are reported there, too.
2026-12-03 09:48:27 +01:00
67917ae3f6
Type check against the oldest Python version
...
Without a configured version, `mypy` and `pyright`
check against the Python that runs them.
With `MAIN_PYTHON` at 3.14, they would accept
`stdlib` APIs and `typing` features new in 3.14.
Yet, `requires-python` promises 3.13;
so, the type checkers must flag such code.
`black` and `ruff` already target 3.13 for the same reason.
2026-12-02 21:42:06 +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
5f7d3108de
Check the type annotations at runtime with typeguard
2026-12-01 17:07:00 +01:00
96b5a07f20
Add pyright to the "lint" session
2026-12-01 15:00:26 +01:00
369957c06b
Narrow the untyped calls of folium.PolyLine
2026-12-01 13:38:00 +01:00
883a3ab8cc
Enable the "truthy-iterable" error code
2026-12-01 13:11:47 +01:00
9da2d0b703
Enable the "truthy-bool" error code
2026-12-01 13:11:46 +01:00
fef268321a
Enable the "redundant-expr" error code
2026-12-01 13:11:45 +01:00
7190724260
Enable the "possibly-undefined" error code
2026-12-01 13:11:32 +01:00
dafc695693
Enable the "mutable-override" error code
2026-12-01 13:11:31 +01:00
a4c1574135
Enable the "deprecated" error code
2026-12-01 13:11:30 +01:00
784d5c8ca0
Enable "warn_unreachable"
...
Also, remove the dead `isinstance()` check in `Location.relate_to()`
2026-12-01 13:07:53 +01:00
0a5f8f6c55
Enable "warn_return_any"
2026-12-01 12:39:45 +01:00
bbc00e2f1c
Enable "disallow_any_unimported"
2026-12-01 12:39:44 +01:00
6633067563
Turn the ORM Base into a real class
2026-12-01 12:38:00 +01:00
ef0888619e
Enable PYI019 and PYI034
2026-12-01 12:37:54 +01:00
e4016db9fe
Enable "no_implicit_reexport"
...
Also, remove the unused `orm_exc` import alias
2026-12-01 12:37:46 +01:00
d9364eea9e
Set all "strict" options explicitly
2026-12-01 12:37:37 +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
ad56683166
Explain why black stays below v26
CI / Checks (Python 3.13) (push) Successful in 1m53s
2026-12-01 00:18:34 +01:00
6ecbd6860a
Add the flake8-only notes to the ruff section
CI / Checks (Python 3.13) (push) Successful in 1m52s
2026-11-30 23:50:12 +01:00
8d843895b7
Complete the ruff-only notes in the flake8 section
2026-11-30 23:50:05 +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
991543046d
Enable PGH in ruff
2026-11-30 23:39:08 +01:00
d55e72e04d
Enable LOG in flake8 and ruff
2026-11-30 23:38:43 +01:00
5c62c9919c
Enable G in ruff
2026-11-30 23:38:28 +01:00
33daa9cda7
Enable FLY in ruff
2026-11-30 23:38:13 +01:00
c32566527a
Enable EXE in flake8 and ruff
2026-11-30 23:37:54 +01:00
6ebcd69524
Enable BLE in ruff
2026-11-30 23:37:20 +01:00
0090145b65
Capitalize the explanations after "=>"
2026-11-30 23:27:31 +01:00
c56fe649b7
Enable RUF in ruff
2026-11-30 23:17:41 +01:00
ae2dc8db64
Enable EM in flake8 and ruff
2026-11-30 22:59:41 +01:00
652713e702
Enable NPY in ruff
2026-11-30 22:49: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
99dda74a9e
Enable PL in ruff
2026-11-30 22:28:12 +01:00