Commit graph velofy/noxfile.py
Author SHA1 Message Date
cfd8d33049
Rename the "doctest" session into "test-docstrings"
All checks were successful
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
All checks were successful
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
All checks were successful
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
All checks were successful
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
7b32ffc599
Add flake8-docstrings 2026-11-28 03:26:12 +01:00
efde4322bf
Add flake8-debugger 2026-11-28 03:26:12 +01:00
08493d1ea1
Add flake8-comprehensions 2026-11-28 03:26:12 +01:00
7f14c9c855
Add flake8-commas 2026-11-28 03:26:11 +01:00
cb110267f0
Add flake8-bugbear 2026-11-28 03:26:11 +01:00
d9d9464f44
Add flake8-broken-line 2026-11-28 03:26:11 +01:00
2000ceca54
Add flake8-bandit 2026-11-28 03:26:10 +01:00
9fcb3c8c14
Remove all "WPS" codes 2026-11-28 03:25:20 +01:00