use pyproject.toml for tooling, add isort

This commit is contained in:
Ross McFarland
2023-01-22 13:56:13 -08:00
parent 6be0a8133a
commit cfaf7315de
7 changed files with 18 additions and 5 deletions
-2
View File
@@ -38,8 +38,6 @@ grep -r -I --line-number "# pragma: +no.*cover" $SOURCE_DIR && {
exit 1
}
export PYTHONPATH=.:$PYTHONPATH
pytest \
--disable-network \
--cov-reset \
+2 -1
View File
@@ -6,4 +6,5 @@ SOURCES=$(find *.py octodns tests -name "*.py")
. env/bin/activate
black --line-length=80 --skip-string-normalization --skip-magic-trailing-comma "$@" $SOURCES
isort "$@" $SOURCES
black "$@" $SOURCES
-2
View File
@@ -30,6 +30,4 @@ export ARM_CLIENT_SECRET=
export ARM_TENANT_ID=
export ARM_SUBSCRIPTION_ID=
export PYTHONPATH=.:$PYTHONPATH
pytest --disable-network "$@"