Commit graph

377 commits

Author SHA1 Message Date
7c2e21130f
Streamline the names, docstrings, and comments 2026-11-27 12:58:56 +01:00
689c8a8f42
Rewrite the module docstring 2026-11-27 12:58:56 +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
e7d93a5496
Do not run mypy for now 2026-11-27 12:48:52 +01:00
50d5b885bf
Rename the nox session functions ...
... and add type hints
2026-11-27 12:48:52 +01:00
2147dbf9d0
Replace the "clean-pwd" session with "clean-cwd" 2026-11-27 12:48:52 +01:00
ded4691177
Remove the "fix-branch-references" session ...
... and use relative links in the docs from now on.

Forgejo resolves relative links against the branch being viewed.
So, rewriting absolute links per branch is no longer necessary.
2026-11-27 12:48:51 +01:00
5f73b74d69
Add a "deps-upgrade-check" session ...
... to report the latest version on PyPI and the age of
every release pinned in uv.lock, using a stdlib-only script.
2026-11-27 12:48:51 +01:00
ebad87b0a3
Add a "deps-lock" session ...
... to lock the dependencies
2026-11-27 12:48:51 +01:00
d918063218
Add a "deps-upgrade" session ...
... to upgrade the pinned dependencies
2026-11-27 12:48:50 +01:00
f5f24ea611
Add a "venv" session ...
... to set up the local develop environment
2026-11-27 12:48:50 +01:00
6d2578ef80
Replace "safety" with "deps-audit"
`safety check` is deprecated.

We use `pip-audit` instead, fed with the hashed dependencies
exported from uv.lock.

We ignore the known vulnerabilities in `black` v25 for now.
2026-11-27 12:48:42 +01:00
60aa7911d2
Remove the CI and pre-commit specific nox sessions 2026-11-27 12:39:14 +01:00
99db2dc623
Run only the "format", "lint", and "test" sessions by default 2026-11-27 12:39:14 +01:00
f5a0a91202
Keep temporary files in .cache/tmp 2026-11-27 12:39:10 +01:00
b5db5ab80e
Set the nox options reuse_venv and stop_on_first_error
Start with fresh virtual environments explicitly,
and stop at the first failing session.
2026-11-26 13:41:53 +01:00
911107af95
Clarify where pytest gets the "TESTING" variable from 2026-11-26 13:41:53 +01:00
218d1d6078
Skip installs in nox only with the "-R" flag
Use `skip_install()` and remove the guards against "-r"
that were only needed for `poetry install --no-dev`.
2026-11-26 13:41:52 +01:00
7ad2e4ee26
Replace _begin() with start() 2026-11-26 13:41:52 +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
4495da2b60
Add flake8-pyproject
Without it, `flake8` cannot read its config in pyproject.toml.
2026-11-26 13:41:51 +01:00
68ada518ea
Remove the obsolete "--ignore=I0" flag
It was only needed while `isort` v4 and v5 disagreed.
2026-11-26 13:41:51 +01:00
c5c8635c09
Remove wemake-python-styleguide 2026-11-26 13:41:51 +01:00
ed510eba7d
Remove the isort workaround
The `_isort_fix()` context manager was only needed for isort 4.
2026-11-26 13:41:50 +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
afb17b61da
Merge branch 'integrate-setup-cfg' into develop
All checks were successful
CI / Tests (Python 3.13) (push) Successful in 1m13s
2026-11-25 15:09:21 +01:00
3adfa117a5
Remove the empty setup.cfg
All checks were successful
CI / Tests (Python 3.13) (push) Successful in 1m15s
2026-11-25 15:03:35 +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
63c9453ce7
Merge branch 'upgrade-dependencies-py313' into develop
All checks were successful
CI / Tests (Python 3.13) (push) Successful in 1m14s
2026-11-25 14:19:08 +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
645802bb7d
Update all transitive dependencies
`fonttools` v4.69.0 has no wheels for this environment yet,
so it stays at v4.68.0.
2026-11-25 14:10:41 +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
fbb7d078fa
Upgrade pytest 2026-11-25 13:22:31 +01:00
ea3e25a85b
Upgrade pre-commit 2026-11-25 13:21:44 +01:00