Update tox.ini to work with tox 4
This change will allow this repo to pass zuul now that this has merged: https://review.opendev.org/c/zuul/zuul-jobs/+/866943 Tox 4 deprecated whitelist_externals. Replace whitelist_externals with allowlist_externals Fix pylint zuul failures This removes some invalid config entries, and suppresses some additional checks. Partial-Bug: #2000399 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I96951a2c8eef3f45e5bfa08e705e03b5e8b77947
This commit is contained in:
parent
5dbacb19f7
commit
43fd914274
10
pylint.rc
10
pylint.rc
@ -37,6 +37,7 @@ load-plugins=
|
||||
# W0212 protected-access
|
||||
# W0221 arguments-differ
|
||||
# W0235 useless-super-delegation
|
||||
# W0237 arguments-renamed
|
||||
# W0401 wildcard-import
|
||||
# W0402 deprecated-module
|
||||
# W0404 reimported
|
||||
@ -57,6 +58,7 @@ load-plugins=
|
||||
# W1302 bad-format-string
|
||||
# W1308 duplicate-string-formatting-argument
|
||||
# W1401 anomalous-backslash-in-string
|
||||
# W1512 deprecated-class
|
||||
#
|
||||
# E0102 function-redefined
|
||||
# E0401 import-error
|
||||
@ -68,12 +70,12 @@ load-plugins=
|
||||
#
|
||||
disable=C,R,
|
||||
W0102,W0105,W0107,W0120,W0123,W0150,
|
||||
W0201,W0212,W0221,W0235,
|
||||
W0201,W0212,W0221,W0235,W0237,
|
||||
W0401,W0402,W0404,
|
||||
W0511,
|
||||
W0601,W0603,W0611,W0612,W0613,W0621,W0622,W0632,
|
||||
W0702,W0703,W0706,W0707,
|
||||
W1113,W1302,W1308,W1401,
|
||||
W1113,W1302,W1308,W1401,W1512,
|
||||
E0102,E0401,E0611,E0711,E1102,E1120,E1136,E1305
|
||||
|
||||
|
||||
@ -85,7 +87,7 @@ output-format=text
|
||||
# Put messages in a separate file for each module / package specified on the
|
||||
# command line instead of printing them on stdout. Reports (if any) will be
|
||||
# written in a file name "pylint_global.[txt|html]".
|
||||
files-output=no
|
||||
# files-output=no
|
||||
|
||||
# Tells whether to display a full report or only the messages
|
||||
reports=no
|
||||
@ -137,7 +139,7 @@ generated-members=
|
||||
|
||||
[BASIC]
|
||||
# List of builtins function names that should not be used, separated by a comma
|
||||
bad-functions=map,filter,apply,input
|
||||
# bad-functions=map,filter,apply,input
|
||||
|
||||
# Regular expression which should only match correct module names
|
||||
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
|
||||
|
@ -1,5 +1,5 @@
|
||||
hacking
|
||||
pylint
|
||||
pylint<2.16
|
||||
PyYAML>=3.1.0
|
||||
yamllint>=0.5.2
|
||||
doc8
|
||||
|
6
tox.ini
6
tox.ini
@ -17,11 +17,11 @@ deps = -r{toxinidir}/doc/requirements.txt
|
||||
commands =
|
||||
rm -rf doc/build
|
||||
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
|
||||
whitelist_externals = rm
|
||||
allowlist_externals = rm
|
||||
|
||||
[testenv:linters]
|
||||
basepython = python3
|
||||
whitelist_externals = bash
|
||||
allowlist_externals = bash
|
||||
commands =
|
||||
bash -c "find {toxinidir} \
|
||||
\( -name .tox -prune \) \
|
||||
@ -99,7 +99,7 @@ deps = -r{toxinidir}/doc/requirements.txt
|
||||
commands =
|
||||
rm -rf releasenotes/build
|
||||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
whitelist_externals =
|
||||
allowlist_externals =
|
||||
rm
|
||||
reno
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user