Commit graph velofy/pyproject.toml
Author SHA1 Message Date
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
27171fe79a
Exclude folium from the "untyped-call" check
`folium` has no type annotations, so every call into it counted as untyped
2026-11-30 11:33:19 +01:00
c3198ecc48
Turn all warnings into errors
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m43s
New warnings, such as deprecations,
then fail right away instead of piling up.

The ignore for `patsy` is obsolete.
2026-11-30 10:56:56 +01:00
a24db98262
Enable PLR in ruff
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m43s
2026-11-28 04:57:25 +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
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
1a4dfb0ee7
Sort the plugins in the "select" list 2026-11-28 04:09:52 +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
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
b24eb80f70
Remove the config of flake8-string-format 2026-11-28 03:26:10 +01:00
13eedbf699
Remove the config of flake8-rst-docstrings 2026-11-28 03:26:10 +01:00
21d6066086
Remove the config of flake8-isort 2026-11-28 03:26:09 +01:00
785bb99c7d
Remove the config of flake8-eradicate 2026-11-28 03:26:04 +01:00
9fcb3c8c14
Remove all "WPS" codes 2026-11-28 03:25:20 +01:00
518811e138
Pin uv to the 0.13 series ...
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m31s
... to make CI more deterministic
2026-11-27 13:41:59 +01:00
32f6540ec3
Add "doctest" session ...
... to run `xdoctest` against the `velofy` package.

Also, install `xdoctest` with only its "colors" extra
as the notebooks do not contain doctests.
2026-11-27 12:58:52 +01:00
110c6f755b
Streamline the "test" session
Rely on pyproject.toml for the `coverage` options,
and shorten the comments.
2026-11-27 12:48:53 +01:00
f6344ac4c5
Use uv in the nox sessions
Make `uv` the backend for the virtual environments,
and install the packages with the versions pinned in uv.lock,
exported into a constraints file with `uv export`,
instead of `poetry export` and `poetry install`.

Also, use `uv run` instead of `poetry run`.
2026-11-26 13:41:52 +01:00
935e3e28d6
Read the supported Python versions ...
... from pyproject.toml
2026-11-26 13:41:51 +01:00
1dd2810ac7
Move the autoflake config 2026-11-26 13:41:50 +01:00
c4eae82e4d
Use SemVer-like versioning for the dependencies 2026-11-26 13:41:50 +01:00
355dfd993f
Switch from poetry to uv
Use the PEP 735 "[dependency-groups]" (here: "dev", "test", "docs")
instead of Poetry's "dev" group, and `uv_build` as the build backend.

Replace poetry.lock with uv.lock.

Also, adapt CI and the README.
2026-11-26 13:41:49 +01:00
c3f82deeab
Move the flake8 config
`flake8` cannot read pyproject.toml by itself,
so add `flake8-pyproject`.
2026-11-25 15:03:35 +01:00
c28d702a58
Move the isort config 2026-11-25 15:03:35 +01:00
74ddb54772
Move the mypy config 2026-11-25 15:03:35 +01:00
03617d5bbb
Move the pytest config 2026-11-25 15:03:34 +01:00
8771bb682e
Move the coverage config 2026-11-25 14:38:14 +01:00
eb62ff2048
Lock the major versions of all direct dependencies
All checks were successful
CI / Tests (Python 3.13) (push) Successful in 1m14s
Use ">=installed,<next major" as the version range,
the minor version for 0.x packages, and only
a lower bound for calendar-versioned packages.

`black` stays below v26 to keep 2 lines after the `import`s.

Also, remove the redundant `geopy` entry in the "dev" group.
2026-11-25 14:16:08 +01:00
1faf140c30
Upgrade utm 2026-11-25 13:59:32 +01:00
d7c69f3f37
Upgrade statsmodels 2026-11-25 13:59:31 +01:00
0e2b8f75f8
Upgrade sqlalchemy
`sqlalchemy` v2.1 uses `psycopg` v3 as the default PostgreSQL driver.

So, we replace `psycopg2` with `psycopg`,
using its binary wheel that bundles `libpq`,
so CI no longer needs `libpq-dev` from `apt`.
2026-11-25 13:58:34 +01:00
f0d04c8a2a
Upgrade sphinx-autodoc-typehints 2026-11-25 13:42:35 +01:00
4be36d527f
Upgrade sphinx 2026-11-25 13:41:52 +01:00
505e29b855
Upgrade Shapely 2026-11-25 13:40:33 +01:00
bbe3f9af28
Upgrade pytest-mock 2026-11-25 13:24:37 +01:00
ec7473e87a
Upgrade pytest-env 2026-11-25 13:23:55 +01:00
dd50d7a62f
Upgrade pytest-cov 2026-11-25 13:23:14 +01:00