mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 16:15:42 +02:00
Set up ruff so that test files have at least some linting (#10399)
Alternative implementation for #7908. In this PR: - set up ruff in CI (add to `tox.ini`, mark dep in `certbot/setup.py`) - add a `ruff.toml` that ignores particularly annoying errors. I think line length isn't actually necessary to set with this workflow since we're not checking it but putting it there for future usage. - either fix or ignore the rest of the errors that come with the default linting configuration. fixed errors are mostly unused variables. ignored are usually where we're doing weird import things for a specific reason.
This commit is contained in:
@@ -2,28 +2,28 @@
|
||||
# that script.
|
||||
apacheconfig==0.3.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
asn1crypto==0.24.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
astroid==3.3.9 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
astroid==3.3.11 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
attrs==25.3.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
beautifulsoup4==4.13.4 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
boto3==1.15.15 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
botocore==1.18.15 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
cachetools==5.5.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
certifi==2025.4.26 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
certifi==2025.8.3 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
cffi==1.12.3 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
chardet==3.0.4 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
cloudflare==2.19.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
colorama==0.4.6 ; python_full_version >= "3.9.2" and python_version < "3.10" and sys_platform == "win32"
|
||||
configargparse==1.5.3 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
configobj==5.0.6 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
coverage==7.8.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
coverage==7.10.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
cryptography==43.0.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
cython==0.29.37 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
dill==0.4.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
distlib==0.3.9 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
distlib==0.4.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
distro==1.0.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
dns-lexicon==3.15.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
dnspython==2.6.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
exceptiongroup==1.2.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
exceptiongroup==1.3.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
execnet==2.1.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
filelock==3.18.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
funcsigs==0.4 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
@@ -37,58 +37,62 @@ iniconfig==2.1.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
ipaddress==1.0.16 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
isort==6.0.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
jmespath==0.10.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
josepy==2.0.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
josepy==2.1.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
jsonlines==4.0.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
mccabe==0.7.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
mypy-extensions==1.1.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
mypy==1.15.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
mypy==1.17.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
ndg-httpsclient==0.3.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
oauth2client==4.1.3 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
packaging==25.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
parsedatetime==2.4 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pathspec==0.12.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pbr==1.8.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pip==25.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
platformdirs==4.3.7 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pluggy==1.5.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pip==25.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
platformdirs==4.3.8 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pluggy==1.6.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
ply==3.4 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
py==1.11.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pyasn1-modules==0.4.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pyasn1==0.4.8 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pycparser==2.14 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pylint==3.3.6 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pygments==2.19.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pylint==3.3.7 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pyopenssl==25.0.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pyotp==2.9.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pyparsing==2.4.7 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pyrfc3339==1.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pytest-cov==6.1.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pytest-xdist==3.6.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pytest==8.3.5 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pytest-cov==6.2.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pytest-xdist==3.8.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pytest==8.4.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
python-augeas==0.5.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
python-dateutil==2.9.0.post0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
python-digitalocean==1.11 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pywin32==310 ; python_full_version >= "3.9.2" and python_version < "3.10" and sys_platform == "win32"
|
||||
pytz==2025.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
pywin32==311 ; python_full_version >= "3.9.2" and python_version < "3.10" and sys_platform == "win32"
|
||||
pyyaml==6.0.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
requests-file==2.1.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
requests==2.20.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
rsa==4.9.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
ruff==0.12.8 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
s3transfer==0.3.7 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
setuptools==80.0.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
setuptools==80.9.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
six==1.11.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
soupsieve==2.7 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
tldextract==5.3.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
tomli==2.2.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
tomlkit==0.13.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
tomlkit==0.13.3 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
tox==1.9.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-httplib2==0.22.0.20250401 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-httplib2==0.22.0.20250622 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-pyrfc3339==2.0.1.20241107 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-python-dateutil==2.9.0.20241206 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-pywin32==310.0.0.20250429 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-python-dateutil==2.9.0.20250708 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-pywin32==311.0.0.20250801 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-requests==2.31.0.6 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-setuptools==80.0.0.20250429 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-setuptools==80.9.0.20250801 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-urllib3==1.26.25.14 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
typing-extensions==4.13.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
typing-extensions==4.14.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
uritemplate==3.0.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
urllib3==1.24.2 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
virtualenv==20.30.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
virtualenv==20.33.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
wheel==0.45.1 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
zipp==3.21.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
zipp==3.23.0 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
|
||||
+16
-15
@@ -7,7 +7,7 @@
|
||||
# for more info.
|
||||
alabaster==0.7.16 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
alabaster==1.0.0 ; python_version >= "3.10" and python_version < "4.0"
|
||||
anyio==4.9.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
anyio==4.10.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
apacheconfig==0.3.2 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
astroid==3.3.11 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
asttokens==3.0.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
@@ -18,12 +18,12 @@ babel==2.17.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
backports-tarfile==1.2.0 ; python_full_version >= "3.9.2" and python_version < "3.12"
|
||||
bcrypt==4.3.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
beautifulsoup4==4.13.4 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
boto3==1.39.16 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
botocore==1.39.16 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
build==1.2.2.post1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
boto3==1.40.5 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
botocore==1.40.5 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
build==1.3.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
cachecontrol==0.14.3 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
cachetools==5.5.2 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
certifi==2025.7.14 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
certifi==2025.8.3 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
cffi==1.17.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
chardet==5.2.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
charset-normalizer==3.4.2 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
@@ -34,9 +34,9 @@ cloudflare==2.19.4 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
colorama==0.4.6 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
configargparse==1.7.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
configobj==5.0.9 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
coverage==7.10.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
coverage==7.10.2 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
crashtest==0.4.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
cryptography==45.0.5 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
cryptography==45.0.6 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
cython==0.29.37 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
decorator==5.2.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
deprecated==1.2.18 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
@@ -55,7 +55,7 @@ fastjsonschema==2.21.1 ; python_full_version >= "3.9.2" and python_version < "4.
|
||||
filelock==3.18.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
findpython==0.6.3 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
google-api-core==2.25.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
google-api-python-client==2.177.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
google-api-python-client==2.178.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
google-auth-httplib2==0.2.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
google-auth==2.40.3 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
googleapis-common-protos==1.70.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
@@ -103,19 +103,19 @@ mypy==1.9.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
nh3==0.3.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
oauthlib==3.3.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
packaging==25.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
paramiko==3.5.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
paramiko==4.0.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
parsedatetime==2.6 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
parso==0.8.4 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
pbs-installer==2025.7.23 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
pbs-installer==2025.8.7 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
pexpect==4.9.0 ; python_full_version >= "3.9.2" and python_version < "4.0" and (sys_platform != "win32" and sys_platform != "emscripten" or python_version < "3.10") and sys_platform != "win32"
|
||||
pip==25.1.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
pip==25.2 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
pkginfo==1.12.1.2 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
platformdirs==4.3.8 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
pluggy==1.6.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
ply==3.11 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
poetry-core==2.1.3 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
poetry-plugin-export==1.9.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
poetry==2.1.3 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
poetry==2.1.4 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
prompt-toolkit==3.0.51 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
proto-plus==1.26.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
protobuf==6.31.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
@@ -152,6 +152,7 @@ rfc3986==2.0.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
rich==14.1.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
roman-numerals-py==3.1.0 ; python_version >= "3.11" and python_version < "4.0"
|
||||
rsa==4.9.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
ruff==0.12.8 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
s3transfer==0.13.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
secretstorage==3.3.3 ; python_full_version >= "3.9.2" and python_version < "4.0" and sys_platform == "linux"
|
||||
semantic-version==2.10.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
@@ -180,15 +181,15 @@ tomlkit==0.13.3 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
towncrier==24.8.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
tox==4.27.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
traitlets==5.14.3 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
trove-classifiers==2025.5.9.12 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
trove-classifiers==2025.8.6.13 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
twine==6.1.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
types-httplib2==0.22.0.20250622 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
types-pyrfc3339==2.0.1.20241107 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
types-python-dateutil==2.9.0.20250708 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
types-pywin32==311.0.0.20250728 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
types-pywin32==311.0.0.20250801 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
types-requests==2.31.0.6 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
types-requests==2.32.4.20250611 ; python_version >= "3.10" and python_version < "4.0"
|
||||
types-setuptools==80.9.0.20250529 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
types-setuptools==80.9.0.20250801 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
types-urllib3==1.26.25.14 ; python_full_version >= "3.9.2" and python_version < "3.10"
|
||||
typing-extensions==4.14.1 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
uritemplate==4.2.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
|
||||
|
||||
Reference in New Issue
Block a user