summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-02-04 22:05:08 +0000
committerGerrit Code Review <review@openstack.org>2019-02-04 22:05:08 +0000
commita99e34a5e382fb1fc3f7f34baa9edc4bd37e4528 (patch)
tree5134a9730146b28364218013b5b4b70dd32c1820
parent579ac41e6adf181ba8d7386a69c2518dd7fe513f (diff)
parenta40bce19f9cf784bf29b4829e0b256aa941fc120 (diff)
Merge "Enable additional flake8 checks"
-rw-r--r--test-requirements.txt2
-rw-r--r--tox.ini20
2 files changed, 20 insertions, 2 deletions
diff --git a/test-requirements.txt b/test-requirements.txt
index d498648..71c1c3c 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -1,4 +1,4 @@
1hacking!=0.13.0,<0.14,>=0.12.0
1bashate >= 0.2 2bashate >= 0.2
2PyYAML >= 3.1.0 3PyYAML >= 3.1.0
3yamllint >= 0.5.2 4yamllint >= 0.5.2
4flake8 < 3.6.0
diff --git a/tox.ini b/tox.ini
index bb0bba1..08b17a6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -41,12 +41,30 @@ commands =
41 flake8 41 flake8
42 42
43[flake8] 43[flake8]
44# H102 Apache 2.0 license header not found
45# H104 File contains nothing but comments
46# H105 Don't use author tags
47# H233 Python 3.x incompatible use of print operator
48# H236 Python 3.x incompatible __metaclass__
49# H238 old style class declaration, use new style
50# H301 one import per line
51# H306 imports not in alphabetical order
52# H401 docstring should not start with a space
53# H403 multi line docstrings should end on a new line
54# H404 multi line docstring should start without a leading new line
55# H405 multi line docstring summary not separated with an empty line
56# H702 Argument to ... must be a string
57# H903 Windows style line endings not allowed in code
44# E123, E125 skipped as they are invalid PEP-8. 58# E123, E125 skipped as they are invalid PEP-8.
45# E501 skipped because some of the code files include templates 59# E501 skipped because some of the code files include templates
46# that end up quite wide 60# that end up quite wide
47show-source = True 61show-source = True
48ignore = E123,E125,E501,H405 62ignore = H102,H104,H105,H233,H236,H238,H301,H306,H401,H403,H404,H405,H702,H903,E123,E125,E501
49exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,release-tag-* 63exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,release-tag-*
64# TODO: H106 Don’t put vim configuration in source files (off by default).
65# H203 Use assertIs(Not)None to check for None (off by default).
66# TODO: H904 Delay string interpolations at logging calls (off by default).
67enable-extensions = H203
50 68
51[testenv:venv] 69[testenv:venv]
52basepython = python3 70basepython = python3