diff options
author | Joshua Powers <josh.powers@canonical.com> | 2020-06-02 06:58:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 09:58:24 -0400 |
commit | d2b05719a6163e874ca40234a0b85dc2fea260c0 (patch) | |
tree | 3e51295f0b72bfcbff30d31195f43346ae91f42b /tox.ini | |
parent | fc07d633f7cb694423349a2c4b10c91c4b4981a2 (diff) | |
download | vyos-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.ini | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |