feat: improve inspectdb and support postgres

This commit is contained in:
long2ice
2022-04-01 19:56:48 +08:00
parent c39462820c
commit 45129cef9f
15 changed files with 598 additions and 274 deletions

View File

@@ -15,14 +15,14 @@ deps:
@poetry install -E asyncpg -E asyncmy
style: deps
isort -src $(checkfiles)
black $(black_opts) $(checkfiles)
@isort -src $(checkfiles)
@black $(black_opts) $(checkfiles)
check: deps
black --check $(black_opts) $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
flake8 $(checkfiles)
bandit -x tests -r $(checkfiles)
@black --check $(black_opts) $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
@pflake8 $(checkfiles)
@bandit -x tests -r $(checkfiles)
#@mypy $(checkfiles)
test: deps
$(py_warn) TEST_DB=sqlite://:memory: py.test