Skip to content

Commit 0ef1771

Browse files
A couple mypy/ruff fixes (#13001)
* A couple mypy issues Option `warn_unused_configs` requires turning off incremental mode: https://mypy.readthedocs.io/en/stable/config_file.html#confval-warn_unused_configs * The current directory is the default ruff target No need to specify it explicitly, the same way we don't specifiy it with mypy or sidst-check. * Use a decently recent version of ruff * Partially revert "A couple mypy issues" This partially reverts commit 34de867.
1 parent beaf103 commit 0ef1771

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

noxfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ def flake(session: nox.Session) -> None:
202202
*pyproject_data["project"]["optional-dependencies"]["nox"],
203203
)
204204

205-
session.run("ruff", "check", ".")
206-
session.run("ruff", "format", "--check", ".")
205+
session.run("ruff", "check")
206+
session.run("ruff", "format", "--check")
207207
session.run(
208208
"mypy",
209209
"src/cryptography/",
@@ -286,8 +286,8 @@ def local(session: nox.Session):
286286
verbose=False,
287287
)
288288

289-
session.run("ruff", "format", ".")
290-
session.run("ruff", "check", ".")
289+
session.run("ruff", "format")
290+
session.run("ruff", "check")
291291

292292
session.run("cargo", "fmt", "--all", external=True)
293293
session.run("cargo", "check", "--all", "--tests", external=True)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ docstest = [
8686
sdist = ["build >=1.0.0"]
8787
# `click` included because its needed to type check `release.py`
8888
pep8test = [
89-
"ruff >=0.3.6",
90-
"mypy >=1.4",
89+
"ruff >=0.11.11",
90+
"mypy >=1.14",
9191
"check-sdist",
9292
"click >=8.0.1",
9393
]

0 commit comments

Comments
 (0)