From bf85f9eb0bc17e9be778fa4835afab9314397ab6 Mon Sep 17 00:00:00 2001 From: Eric Kooistra <kooistra@astron.nl> Date: Wed, 1 Feb 2023 13:58:42 +0100 Subject: [PATCH] Add tox.ini for flake8. --- tox.ini | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000000..a2276f5cff --- /dev/null +++ b/tox.ini @@ -0,0 +1,16 @@ +[flake8] +; E***/W***: pep8 errors and warnings +; F***: PyFlake codes +; C9**: McCabe complexity plugin +; N8** Naming conventions plugin + +filename = *.py,.stestr.conf,.txt +max-line-length = 120 +max-doc-length = 160 +max-complexity = 20 +; select = C, E, F, W, B +; select = E, F, W, C90 +extend-ignore = E133, E241, E242, W293, W503, W504, W505, E203, E222, E203, E221, E401, E402, E501 + +; ignore = B014, B019, W291, W293, W391, E111, E114, E121, E122, E123, E124, E126, E127, E128, E131, E201, E201, E202, E203, E221, E222, E225, E226, E231, E241, E251, E252, E261, E262, E265, E271, E301, E302, E303, E305, E306, E401, E402, E501, E502, E701, E712, E721, E731, F403, F523, F541, F841, H301, H306, H401, H403, H404, H405, W503 +exclude = .tox,build,.egg-info,libhdbpp-python,SNMP_mib_loading -- GitLab