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:
@ -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
12
pyproject.toml
Normal 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 = "."
|
@ -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
|
||||
|
@ -38,8 +38,6 @@ grep -r -I --line-number "# pragma: +no.*cover" $SOURCE_DIR && {
|
||||
exit 1
|
||||
}
|
||||
|
||||
export PYTHONPATH=.:$PYTHONPATH
|
||||
|
||||
pytest \
|
||||
--disable-network \
|
||||
--cov-reset \
|
||||
|
@ -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
|
||||
|
@ -30,6 +30,4 @@ export ARM_CLIENT_SECRET=
|
||||
export ARM_TENANT_ID=
|
||||
export ARM_SUBSCRIPTION_ID=
|
||||
|
||||
export PYTHONPATH=.:$PYTHONPATH
|
||||
|
||||
pytest --disable-network "$@"
|
||||
|
Reference in New Issue
Block a user