Unify the way the imports work #9

Merged
alexander merged 21 commits from unify-imports into develop 2026-11-30 20:30:54 +01:00

2026-11-30

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
Enforce the established import aliases with ruff
These aliases were already in use before this branch
2026-11-30 20:22:06 +01:00
Import statsmodels.tsa.api as tsa
The alias in the `statsmodels` documentation
2026-11-30 20:03:25 +01:00
Import click.testing as cli_testing
Like `click.core` as `cli_core`
2026-11-30 20:01:43 +01:00
Enforce the import conventions with ruff
flake8 has no plugin with configurable aliases
2026-11-30 17:18:29 +01:00
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
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
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
Use sa.func instead of importing func
Naming rule for `velofy`: Import modules instead of objects
2026-11-30 14:19:42 +01:00
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