Commit graph velofy/pyproject.toml
Author SHA1 Message Date
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
fbb7d078fa
Upgrade pytest 2026-11-25 13:22:31 +01:00
ea3e25a85b
Upgrade pre-commit 2026-11-25 13:21:44 +01:00
705955b38b
Upgrade pandas
Also, replace the deprecated "T" frequency alias with "min",
and access the trend by position with `.iloc`.
2026-11-25 13:16:55 +01:00
6290d280e2
Upgrade numpy 2026-11-25 12:59:24 +01:00
b6f570e13f
Upgrade mypy 2026-11-25 12:58:10 +01:00
746fe023e6
Upgrade matplotlib 2026-11-25 12:57:25 +01:00
ac3251867f
Upgrade isort 2026-11-25 12:54:53 +01:00
3e11980ab0
Upgrade folium 2026-11-25 12:53:32 +01:00
4516f54236
Upgrade flake8-pytest-style 2026-11-25 12:52:36 +01:00
5189a63bc3
Upgrade flake8-annotations 2026-11-25 12:51:00 +01:00
8cbd1fa979
Upgrade autoflake
This needed `flake8` to be upgraded first.
2026-11-25 12:49:47 +01:00
2f085f7450
Upgrade flake8 2026-11-25 12:46:14 +01:00
36264dc49c
Upgrade Faker 2026-11-25 12:46:07 +01:00
c310c335ff
Upgrade click
Since `click` v8.2, a `Group` invoked without a subcommand
exits with status code 2 ("usage error") instead of 0.
2026-11-25 12:45:59 +01:00
5710d12e21
Upgrade black
Pin to the 2025 series to keep the 2 lines after the `import`s.
Also, target Python 3.13.
2026-11-25 12:45:51 +01:00
5519c9030c
Upgrade alembic 2026-11-25 12:18:04 +01:00
6af7c4437d
Remove wemake-python-styleguide
No 0.x release of `wemake-python-styleguide` runs on Python 3.12+.

The current version pins `flake8-commas` to v2.x,
which crashes on the new f-string tokenizer.

The 1.x releases no longer bundle the `flake8` plug-ins this project uses.

The plug-ins are added back explicitly, one by one, on a separate branch.
2026-11-25 12:13:43 +01:00
042256eb99
Switch to Python 3.13
All checks were successful
CI / Tests (Python 3.13) (push) Successful in 1m17s
The dependencies stay in the same series as on Python 3.8
where those support 3.13.

Only the unavoidable upgrades are taken:
 - `matplotlib` to v3.9
 - `numpy` to v2.1
 - `pandas` to v2.2
 - `scipy` (via statsmodels)

Required code changes:
- `numpy` v2.1 prints its scalars as `np.float64(...)`,
  which `psycopg2` then writes into the SQL
  => Adjust `Forecast.from_dataframe()` to convert the
     rounded values into plain `float`s
- Python 3.12 no longer accepts `float`s in `random.randint()`
  => The test factories now pass the seconds as `int`s

CI and `nox` use a `u`v-managed Python, which ships the C headers
needed to build `psycopg2` and `rpy2`.

`flake8` v4 does not run on Python 3.12+
and is upgraded in a future commit.
2026-11-25 11:30:33 +01:00
d54f94a998
Upgrade pre-commit
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m24s
2026-11-25 11:01:35 +01:00
359d7be62a
Upgrade nox
The sessions in `noxfile.py` do not work since the migration to
Poetry 2: they use `poetry install --no-dev` and `poetry export`,
which Poetry 2 removed or moved into a plugin. The sessions are
reworked together with the other development tools.
2026-11-25 10:59:03 +01:00
9eecd371bc
Upgrade sphinx and sphinx-autodoc-typehints 2026-11-25 10:51:36 +01:00
94df768f74
Widen the version ranges for autoflake ...
... and two flake8 plugins

On Python 3.8, the three packages stay at the newest versions that work
with `flake8` v4, which `wemake-python-styleguide` v0.17 requires.
The lock file now also records their newer releases for newer Python versions.
The actual upgrade follows together with the switch to Python 3.13.
2026-11-25 10:44:08 +01:00
ffd72c9987
Upgrade isort
`isort` v5 honors the `single_line_exclusions = typing` setting in
`setup.cfg`, which `isort` v4 ignored.

So, the `typing` imports that were split onto separate lines to satisfy
`isort` v4 are combined again, as the configuration originally intended.
2026-11-25 10:31:24 +01:00