summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChuck Short <chucks@redhat.com>2018-10-11 15:08:16 -0400
committerChuck Short <chucks@redhat.com>2018-10-11 15:13:49 -0400
commit4d0abb4a149eea597e51f79c8e76d9d2284d65ee (patch)
treedf4f86f1c99cf07ffb7fd0fedf1d09743c1fa3d3 /tox.ini
parentb18bae3b99ec66e06023d9103a7b0adb6373c305 (diff)
Simplify running pylint
This commit does several things: - Setup and run pylint directly rather than running through a script. This allows the user to see what is happening while the user is running through pylint. - Allow the user to either run pylint on a particular changeset, or the entire manila tree. - Allow the user to run on a particular changeset. Using like HEAD~1, etc. - I disabled the tests that were reported by pylint. The thought here would be go through the failures and correct them. - Update pylint to 2.1.1. Change-Id: I398d1ba01a3fd7f1c86ad4065a7984d276f33383 Signed-off-by: Chuck Short <chucks@redhat.com>
Notes
Notes (review): Code-Review+2: Tom Barron <tpb@dyncloud.net> Code-Review+2: Rodrigo Barbieri <rodrigo.barbieri2010@gmail.com> Workflow+1: Rodrigo Barbieri <rodrigo.barbieri2010@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 16 Oct 2018 18:03:43 +0000 Reviewed-on: https://review.openstack.org/609791 Project: openstack/manila Branch: refs/heads/master
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 98dad5e..394e340 100644
--- a/tox.ini
+++ b/tox.ini
@@ -104,9 +104,9 @@ commands =
104[testenv:pylint] 104[testenv:pylint]
105basepython = python3 105basepython = python3
106deps = -r{toxinidir}/requirements.txt 106deps = -r{toxinidir}/requirements.txt
107 pylint==1.9.0 107 pylint==2.1.1
108whitelist_externals = bash 108whitelist_externals = bash
109commands = bash tools/lintstack.sh 109commands = bash ./tools/coding-checks.sh --pylint {posargs}
110 110
111[testenv:lint] 111[testenv:lint]
112basepython = python3 112basepython = python3