chore: make style, upgrade deps, fix ci error and update changelog

This commit is contained in:
Waket Zheng
2024-11-25 23:46:48 +08:00
parent 095eb48196
commit dc020358b6
12 changed files with 496 additions and 434 deletions

View File

@@ -23,7 +23,10 @@ _check:
@black --check $(black_opts) $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
@ruff check $(checkfiles)
@mypy $(checkfiles)
ifneq ($(shell python -c 'import sys;is_py38=sys.version_info<(3,9);rc=int(is_py38);sys.exit(rc)'),)
# Run bandit with Python3.9+, as the `usedforsecurity=...` parameter of `hashlib.new` is only added from Python 3.9 onwards.
@bandit -r aerich
endif
check: deps _check
test: deps
@@ -39,7 +42,7 @@ test_postgres:
$(py_warn) TEST_DB="postgres://postgres:$(POSTGRES_PASS)@$(POSTGRES_HOST):$(POSTGRES_PORT)/test_\{\}" pytest -vv -s
_testall: test_sqlite test_postgres test_mysql
testall: deps _test_all
testall: deps _testall
build: deps
@poetry build