Upgrade pylint to version 2.1.1. (#47036)

* Fix issues reported by the latest pylint.
* Split pylint runs into more contexts.
* Upgrade pylint.
This commit is contained in:
Matt Clay
2018-10-14 22:59:52 -07:00
committed by GitHub
parent 9ddceaf78d
commit 76bf861308
8 changed files with 76 additions and 23 deletions

View File

@@ -1,13 +1,9 @@
coverage >= 4.2, != 4.3.2 # features in 4.2+ required, avoid known bug in 4.3.2 on python 2.6
cryptography < 2.2 ; python_version < '2.7' # cryptography 2.2 drops support for python 2.6
pywinrm >= 0.3.0 # message encryption support
astroid == 1.5.3 ; python_version >= '3.5' # newer versions of astroid require newer versions of pylint to avoid bugs
pylint == 1.7.4 ; python_version >= '3.5' # versions before 1.7.1 hang or fail to install on python 3.x
pylint == 1.6.5 ; python_version <= '2.7' # versions after 1.6.5 hang or fail during test on python 2.x
sphinx < 1.6 ; python_version < '2.7' # sphinx 1.6 and later require python 2.7 or later
wheel < 0.30.0 ; python_version < '2.7' # wheel 0.30.0 and later require python 2.7 or later
yamllint != 1.8.0 ; python_version < '2.7' # yamllint 1.8.0 requires python 2.7+ while earlier/later versions do not
isort < 4.2.8 # 4.2.8 changes import sort order requirements which breaks previously passing pylint tests
pycrypto >= 2.6 # Need features found in 2.6 and greater
ncclient >= 0.5.2 # Need features added in 0.5.2 and greater
idna < 2.6 # requests requires idna < 2.6, but cryptography will cause the latest version to be installed instead
@@ -21,3 +17,13 @@ openshift >= 0.6.2 # merge_type support
virtualenv < 16.0.0 ; python_version < '2.7' # virtualenv 16.0.0 and later require python 2.7 or later
pyopenssl < 18.0.0 ; python_version < '2.7' # pyOpenSSL 18.0.0 and later require python 2.7 or later
pyfmg == 0.6.1 # newer versions do not pass current unit tests
# freeze pylint and its requirements for consistent test results
astroid == 2.0.4
isort == 4.3.4
lazy-object-proxy == 1.3.1
mccabe == 0.6.1
pylint == 2.1.1
six == 1.11.0
typed-ast == 1.1.0
wrapt == 1.10.11

View File

@@ -3,7 +3,7 @@ jinja2
mock
paramiko
pycodestyle
pylint ; python_version >= '2.7' # pylint 1.5.3+ is required for non-buggy JSON output, but 1.4+ requires python 2.7+
pylint ; python_version >= '3.5' # pylint 2.0.0 and later require python 3+
pytest
rstcheck ; python_version >= '2.7' # rstcheck requires python 2.7+
sphinx