chore: make style, upgrade deps, fix ci error and update changelog
This commit is contained in:
5
Makefile
5
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user