Commit graph

459 commits

Author SHA1 Message Date
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
991543046d
Enable PGH in ruff 2026-11-30 23:39:08 +01:00
d55e72e04d
Enable LOG in flake8 and ruff 2026-11-30 23:38:43 +01:00
5c62c9919c
Enable G in ruff 2026-11-30 23:38:28 +01:00
33daa9cda7
Enable FLY in ruff 2026-11-30 23:38:13 +01:00
c32566527a
Enable EXE in flake8 and ruff 2026-11-30 23:37:54 +01:00
6ebcd69524
Enable BLE in ruff 2026-11-30 23:37:20 +01:00
ed53324a1d
Hide the capitalization commit from git blame 2026-11-30 23:28:04 +01:00
0090145b65
Capitalize the explanations after "=>" 2026-11-30 23:27:31 +01:00
c56fe649b7
Enable RUF in ruff 2026-11-30 23:17:41 +01:00
ae2dc8db64
Enable EM in flake8 and ruff 2026-11-30 22:59:41 +01:00
652713e702
Enable NPY in ruff 2026-11-30 22:49: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
99dda74a9e
Enable PL in ruff 2026-11-30 22:28:12 +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
00aff456c3
Enable FURB in ruff 2026-11-30 22:06:44 +01:00
0a4fd0edbc
Enable PERF in ruff 2026-11-30 22:06:44 +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
d0d5c92c55
Sort the ruff-only rule families by code 2026-11-30 20:50:21 +01:00
75824ea602
Merge branch 'unify-imports' into develop
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m54s
Reviewed-on: #9
2026-11-30 20:30:53 +01:00
31dda815d9
Ignore the import renames in git blame
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m52s
2026-11-30 20:25:54 +01:00
5c13d719cd
Enforce the established import aliases with ruff
These aliases were already in use before this branch
2026-11-30 20:22:06 +01:00
cf2534f41e
Import velofy.config as pkg_config everywhere 2026-11-30 20:19:35 +01:00
de5e49b497
Import alembic.config as alembic_config 2026-11-30 20:13:46 +01:00
dc45c689c4
Import alembic.command as alembic_cmd 2026-11-30 20:12:41 +01:00
e9743eaa01
Import rpy2.robjects.packages as r_packages 2026-11-30 20:06:09 +01:00
8bca30c836
Import rpy2.rinterface_lib.callbacks as r_callbacks 2026-11-30 20:04:44 +01:00
9b844b16e7
Import statsmodels.tsa.api as tsa
The alias in the `statsmodels` documentation
2026-11-30 20:03:25 +01:00
07e90b7851
Import click.testing as cli_testing
Like `click.core` as `cli_core`
2026-11-30 20:01:43 +01:00
07660ecff9
Import geopy.distance as geo_distance everywhere 2026-11-30 20:01:42 +01:00
d660f0cc4e
Import googlemaps as gm everywhere 2026-11-30 20:01:41 +01:00
d006752194
Enforce the import conventions with ruff
flake8 has no plugin with configurable aliases
2026-11-30 17:18:29 +01:00
5ca16ae47c
Import datetime as dt everywhere 2026-11-30 15:50:17 +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
aa1a7c796f
Register the shared fixtures via pytest_plugins
That is the documented way to share fixtures from other modules,
instead of importing them into tests/conftest.py
2026-11-30 15:03:27 +01:00
0b2a1197a2
Import sqlalchemy.ext.hybrid as sa_hybrid 2026-11-30 14:22:42 +01:00
9d3af5e447
Import the postgresql dialect as psql 2026-11-30 14:21:01 +01:00
78e052b668
Use sa.func instead of importing func
Naming rule for `velofy`: Import modules instead of objects
2026-11-30 14:19:42 +01:00
e30b3efbe8
Use the sa alias for sqlalchemy everywhere
`sa` is the common alias, also in SQLAlchemy's own documentation
2026-11-30 14:18:05 +01:00
a85ba4c4c4
Merge branch 'fix-mypy' into develop
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m52s
Reviewed-on: #8
2026-11-30 14:13:43 +01:00
2b112f46e2
Remove the no longer used engine and connection globals
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m52s
Only `session` is used in the package.
Bound to the `engine`, it connects on its first query
instead of when the package is imported.
2026-11-30 14:03:26 +01:00