1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

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

View File

@ -2,3 +2,5 @@
e116d26eeca0891c31b689e43db5bb60b62f73f6
# Commit that fixed a bunch of uneeded '...' '...' string joins from ^
fa4225b625654c51c7b0be6efcfd6a1109768a72
# Commit that added in isort formatting support
6be0a8133a4fd9e12e6ac3affbdd69555b6c2503

12
pyproject.toml Normal file
View File

@ -0,0 +1,12 @@
[tool.black]
line-length=80
skip-string-normalization=true
skip-magic-trailing-comma=true
[tool.isort]
profile = "black"
known_first_party="octodns"
line_length=80
[tool.pytest.ini_options]
pythonpath = "."

View File

@ -14,6 +14,7 @@ docutils==0.19
exceptiongroup==1.0.0
importlib-metadata==5.0.0
iniconfig==1.1.1
isort==5.11.4
jaraco.classes==3.2.3
keyring==23.9.3
more-itertools==9.0.0

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 \

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

View File

@ -30,6 +30,4 @@ export ARM_CLIENT_SECRET=
export ARM_TENANT_ID=
export ARM_SUBSCRIPTION_ID=
export PYTHONPATH=.:$PYTHONPATH
pytest --disable-network "$@"

View File

@ -74,6 +74,7 @@ setup(
+ (
'black>=22.3.0',
'build>=0.7.0',
'isort>=5.11.4',
'pycountry>=19.8.18',
'pycountry-convert>=0.7.2',
'pyflakes>=2.2.0',