wordpress-charmers team mailing list archive
-
wordpress-charmers team
-
Mailing list archive
-
Message #00444
[Merge] ~mthaddon/charm-k8s-wordpress/+git/charm-k8s-wordpress:tox into charm-k8s-wordpress:master
Tom Haddon has proposed merging ~mthaddon/charm-k8s-wordpress/+git/charm-k8s-wordpress:tox into charm-k8s-wordpress:master.
Commit message:
Move flake8 hints from lint tox target to flake8 so editors will pick up on them
Requested reviews:
Canonical IS Reviewers (canonical-is-reviewers)
Wordpress Charmers (wordpress-charmers)
For more details, see:
https://code.launchpad.net/~mthaddon/charm-k8s-wordpress/+git/charm-k8s-wordpress/+merge/387818
Move flake8 hints from lint tox target to flake8 so editors will pick up on them
--
Your team Wordpress Charmers is requested to review the proposed merge of ~mthaddon/charm-k8s-wordpress/+git/charm-k8s-wordpress:tox into charm-k8s-wordpress:master.
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..d2f23b9
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,3 @@
+[tool.black]
+skip-string-normalization = true
+line-length = 120
diff --git a/tox.ini b/tox.ini
index ca9d0c9..4f55f1b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -40,7 +40,7 @@ commands = black --skip-string-normalization --line-length=120 src/ tests/
deps = black
[testenv:lint]
-commands = flake8 --ignore=E402 src/ tests/
+commands = flake8 src/ tests/
deps = flake8
[flake8]
@@ -48,5 +48,6 @@ exclude =
.git,
__pycache__,
.tox,
+ignore = E402
max-line-length = 120
max-complexity = 10
References