Fix ruff 0.16 findings; bump dependency minimums to match
- pyproject [tool.ruff.lint]: ignore RUF022/RUF023 (deliberately grouped __all__/__slots__), SIM117, BLE001 (blind except is intentional at CFFI callback boundaries) - Legit fixes: dict/tuple instead of typing.Dict/Tuple in generate.py, unquoted annotations in raf.py, Self return for __enter__ methods, explicit check=False on subprocess.run, collapsed nested ifs, sorted test imports, unused-unpacked-variable in test_raises - Bump minimum versions to the synced toolchain: cffi 2.1.1, ruff 0.16.10, pytest 9.1.1, auditwheel 6.8.2, setuptools 84.0.0, setuptools-scm 10.3.4 (project deps and build-system requires)
This commit is contained in:
1 parent
1eb0b6e8c0
commit
b4404b42e6
10 files changed
+54
-42
No files matched your search
+19
-7
@@ -1,5 +1,5 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0", "cffi>=2.0.0", "setuptools-scm>=8.0"]
|
||||
requires = ["setuptools>=84.0.0", "cffi>=2.1.1", "setuptools-scm>=10.3.4"]
|
||||
build-backend = "build_backend"
|
||||
backend-path = ["tools"]
|
||||
|
||||
@@ -16,7 +16,7 @@ classifiers = [
|
||||
"Topic :: Security :: Cryptography",
|
||||
]
|
||||
dependencies = [
|
||||
"cffi>=2.0.0",
|
||||
"cffi>=2.1.1",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
@@ -25,11 +25,11 @@ Repository = "https://github.com/LeoVasanko/aegis-python"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"auditwheel>=6.5.0",
|
||||
"pytest>=8.4.2",
|
||||
"ruff>=0.14.4",
|
||||
"setuptools>=80.9.0",
|
||||
"setuptools-scm>=9.2.2",
|
||||
"auditwheel>=6.8.2",
|
||||
"pytest>=9.1.1",
|
||||
"ruff>=0.16.10",
|
||||
"setuptools>=84.0.0",
|
||||
"setuptools-scm>=10.3.4",
|
||||
]
|
||||
|
||||
[tool.setuptools]
|
||||
@@ -39,4 +39,16 @@ packages = ["aeg"]
|
||||
[tool.setuptools.package-data]
|
||||
aeg = ["*.h"]
|
||||
|
||||
[tool.ruff]
|
||||
# Disable formatting in Markdown files
|
||||
extend-exclude = ["*.md"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
ignore = [
|
||||
"RUF022", # __all__ is deliberately grouped with comments
|
||||
"RUF023", # __slots__ is deliberately grouped
|
||||
"SIM117", # nested with-statements are sometimes clearer
|
||||
"BLE001", # blind except is intentional at CFFI callback boundaries
|
||||
]
|
||||
|
||||
[tool.setuptools_scm]
|
||||
Reference in new issue
Block a user