Clean up the comments and lint the notebooks #22

Merged
alexander merged 19 commits from lint-cleanups into develop 2026-12-03 12:26:19 +01:00

2026-12-03

Skip the per-file ignores reformatting in git blame
All checks were successful
CI / Tests (test-types) (push) Successful in 2m8s
CI / Tests (test) (push) Successful in 2m11s
CI / Tests (test-with-3.15) (push) Successful in 2m15s
CI / Tests (test-with-3.13) (push) Successful in 2m22s
CI / Lint (push) Successful in 2m39s
2026-12-03 11:48:33 +01:00
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
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
Resolve the remaining ruff findings
Every change keeps the values the same, so the stored outputs stay valid.
`init_r` keeps its import because only its side effect matters.
2026-12-03 11:33:14 +01:00
Use isna() and notna()
`isnull()` and `notnull()` are mere aliases,
so the stored outputs stay valid.
2026-12-03 11:33:10 +01:00
Apply the safe ruff fixes
The fixes keep every value the same, so the stored outputs stay valid.
For example, `np.NaN` becomes `np.nan`, which `numpy` v2 requires.
2026-12-03 11:33:04 +01:00
Explain the "why" in a few more comments
Comments that only repeated the code are removed.
2026-12-03 11:06:36 +01:00
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
Reword the comments in the test suite
Each comment is one sentence or two short ones
joined by "=>", without a final period.
2026-12-03 10:52:25 +01:00
Reword the comments in the rest of velofy
Each comment is one sentence or two short ones
joined by "=>", without a final period.
2026-12-03 10:46:42 +01:00
Reword the comments in velofy.forecasts
Each comment is one sentence or two short ones
joined by "=>", without a final period.
2026-12-03 10:43:55 +01:00
Reword the comments in velofy.db
Each comment is one sentence or two short ones joined by "=>", without a final period.
2026-12-03 10:38:28 +01:00
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
Declare __all__ in all re-exporting packages
Then, the linters know the imports are re-exports and not unused.
2026-12-03 09:44:07 +01:00