Skip to content

Commit fe5ba4d

Browse files
authored
fixes in prep for ruff 0.12 (#13089)
1 parent 5496cbb commit fe5ba4d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/_ext/linkcode_res.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,5 @@ def linkcode_resolve(domain, info):
102102
if "dev" in cryptography.__version__:
103103
return url % ("main", fn, linespec)
104104
else:
105-
version = ".".join(cryptography.__version__.split(".")[:2] + ["x"])
105+
version = ".".join([*cryptography.__version__.split(".")[:2], "x"])
106106
return url % (version, fn, linespec)

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ line-length = 79
179179
lint.ignore = ['N818']
180180
lint.select = ['E', 'F', 'I', 'N', 'W', 'UP', 'RUF']
181181

182+
[tool.ruff.per-file-target-version]
183+
".github/bin/merge_rust_coverage.py" = "py313"
184+
182185
[tool.ruff.lint.isort]
183186
known-first-party = ["cryptography", "cryptography_vectors", "tests"]
184187

0 commit comments

Comments
 (0)