Remove pylint, replacing with faster alternative.

This commit is contained in:
Itamar Turner-Trauring 2023-04-17 10:06:50 -04:00
parent 48a8c5deea
commit cda97e4fa6

11
tox.ini
View File

@ -100,9 +100,7 @@ commands =
[testenv:codechecks]
basepython = python3
deps =
# Make sure we get a version of PyLint that respects config, and isn't too
# old.
pylint < 2.18, >2.14
ruff
# On macOS, git inside of towncrier needs $HOME.
passenv = HOME
setenv =
@ -114,9 +112,10 @@ commands =
python misc/coding_tools/check-umids.py {posargs:{env:DEFAULT_FILES}}
python misc/coding_tools/check-debugging.py {posargs:{env:DEFAULT_FILES}}
python misc/coding_tools/find-trailing-spaces.py -r {posargs:{env:DEFAULT_FILES}}
# PyLint has other useful checks, might want to enable them:
# http://pylint.pycqa.org/en/latest/technical_reference/features.html
pylint --disable=all --enable=cell-var-from-loop {posargs:{env:DEFAULT_FILES}}
# B023: Find loop variables that aren't bound in a loop, equivalent of pylint
# cell-var-from-loop.
# ruff could probably replace flake8 and perhaps above tools as well...
ruff check --select=B023 {posargs:{env:DEFAULT_FILES}}
# If towncrier.check fails, you forgot to add a towncrier news
# fragment explaining the change in this branch. Create one at