move black CLI arguments into a pyproject.toml

This commit is contained in:
Ryan Petrello 2021-03-23 09:25:54 -04:00
parent c2ef0a6500
commit 7200cbc94a
2 changed files with 5 additions and 1 deletions

View File

@ -272,7 +272,7 @@ reports:
mkdir -p $@
black: reports
(set -o pipefail && $@ $(BLACK_ARGS) --skip-string-normalization --fast --line-length 160 awx awxkit awx_collection | tee reports/$@.report)
(set -o pipefail && $@ $(BLACK_ARGS) awx awxkit awx_collection | tee reports/$@.report)
genschema: reports
$(MAKE) swagger PYTEST_ARGS="--genschema --create-db "

4
pyproject.toml Normal file
View File

@ -0,0 +1,4 @@
[tool.black]
line-length = 160
fast = true
skip-string-normalization = true