refactor: apply future type hints style (#416)

* refactor: apply future style type hints

* chore: put cryptography out of dev dependencies
This commit is contained in:
Waket Zheng
2025-02-17 11:42:56 +08:00
committed by GitHub
parent 6bdfdfc6db
commit 1793dab43d
15 changed files with 92 additions and 309 deletions

View File

@@ -1,5 +1,4 @@
checkfiles = aerich/ tests/ conftest.py
black_opts = -l 100 -t py38
py_warn = PYTHONDEVMODE=1
MYSQL_HOST ?= "127.0.0.1"
MYSQL_PORT ?= 3306
@@ -15,12 +14,12 @@ deps:
@poetry install -E asyncpg -E asyncmy -E toml
_style:
@isort -src $(checkfiles)
@black $(black_opts) $(checkfiles)
@ruff check --fix $(checkfiles)
@ruff format $(checkfiles)
style: deps _style
_check:
@black --check $(black_opts) $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
@ruff format --check $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
@ruff check $(checkfiles)
@mypy $(checkfiles)
@bandit -r aerich