diff options
author | Arif Ali <arif.ali@canonical.com> | 2024-04-12 16:54:30 +0100 |
---|---|---|
committer | Jake Hunsaker <jacob.r.hunsaker@gmail.com> | 2024-05-03 15:03:09 -0400 |
commit | 5eef0576d6ec2fba042ee1178c2542dcf6a96ca4 (patch) | |
tree | 7bb388c7af371e6cada2953017e0e2d9e90e18b0 /tox.ini | |
parent | 799425b80267fe215f9b9191348c8032deec013c (diff) | |
download | sos-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.ini | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -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 |