aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2024-04-12 16:54:30 +0100
committerJake Hunsaker <jacob.r.hunsaker@gmail.com>2024-05-03 15:03:09 -0400
commit5eef0576d6ec2fba042ee1178c2542dcf6a96ca4 (patch)
tree7bb388c7af371e6cada2953017e0e2d9e90e18b0 /tox.ini
parent799425b80267fe215f9b9191348c8032deec013c (diff)
downloadsos-5eef0576d6ec2fba042ee1178c2542dcf6a96ca4.tar.gz
[pylint] pylint and flake8 updates
pylint for the following rules applied * C0411: wrong-import-order * R0912: too-many-branches * R0914: too-many-locals * R1725: super-with-arguments * E1101: no-member Resolves: #3597 Signed-off-by: Arif Ali <arif.ali@canonical.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini21
1 files changed, 18 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 096d795f..49d3aac6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -20,11 +20,11 @@ foreman_tests =
[testenv:flake8]
deps = flake8
-commands = flake8 sos tests
+commands = flake8
[testenv:pylint]
deps = pylint
-commands = pylint --rcfile=tox.ini sos tests
+commands = pylint --rcfile=tox.ini .
[testenv:unit_tests]
basepython = python3
@@ -57,6 +57,13 @@ deps =
commands =
nosetests -v --with-coverage --cover-package=sos tests/unittests --cover-html
+[flake8]
+exclude =
+ .git,
+ .tox,
+ debian,
+ docs
+
[pylint]
# C0114, # missing-module-docstring
# C0115, # missing-class-docstring
@@ -72,5 +79,13 @@ enable =
R0912, # too-many-branches
R0914, # too-many-locals
R1725, # super-with-arguments
- W1404 # implicit-str-concat
+ W1404, # implicit-str-concat
+ W4901, # deprecated-module
+ W4902, # deprecated-method
+ W4903 # deprecated-argument
max-line-length = 79
+recursive = y
+ignore =
+ .git,
+ .tox,
+ debian