summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2020-06-02 06:58:24 -0700
committerGitHub <noreply@github.com>2020-06-02 09:58:24 -0400
commitd2b05719a6163e874ca40234a0b85dc2fea260c0 (patch)
tree3e51295f0b72bfcbff30d31195f43346ae91f42b /tox.ini
parentfc07d633f7cb694423349a2c4b10c91c4b4981a2 (diff)
downloadvyos-cloud-init-d2b05719a6163e874ca40234a0b85dc2fea260c0.tar.gz
vyos-cloud-init-d2b05719a6163e874ca40234a0b85dc2fea260c0.zip
test: ignore flake8 E402 errors in main.py (#402)
This puts an ignore on the imports not at the top of the file errors. The reason for the ignore instead of fix is that the file is using imp to grab a lock and patch logging before further imports are completed.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 3 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 57b20568..725a0ca4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -48,11 +48,12 @@ deps = -r{toxinidir}/test-requirements.txt
# E126: continuation line over-indented for hanging indent
# E226: missing whitespace around arithmetic operator
# E241: multiple spaces after ‘,’
-# E402: module level import not at top of file
# W503: line break before binary operator
# W504: line break after binary operator
-ignore=E121,E123,E126,E226,E241,E402,W503,W504
+ignore=E121,E123,E126,E226,E241,W503,W504
exclude = .venv,.tox,dist,doc,*egg,.git,build,tools
+per-file-ignores =
+ cloudinit/cmd/main.py:E402
[testenv:doc]
basepython = python3