From 7200cbc94a816bb46bb10aaa316830f089222b1a Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Tue, 23 Mar 2021 09:25:54 -0400 Subject: [PATCH] move black CLI arguments into a pyproject.toml --- Makefile | 2 +- pyproject.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/Makefile b/Makefile index 0ff9f06045..5da33975ed 100644 --- a/Makefile +++ b/Makefile @@ -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 " diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..3496e7ac91 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,4 @@ +[tool.black] +line-length = 160 +fast = true +skip-string-normalization = true