Skip to content

Commit 589143a

Browse files
committed
Bump Ruff and mypy
1 parent a36b7ba commit 589143a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ check = [
114114

115115
# local
116116

117-
# Removal of deprecated UP027, PT004 & PT005 astral-sh/ruff#14383
118-
"ruff >= 0.8.0; sys_platform != 'cygwin'",
117+
# Get requires-python from pyproject.toml automatically astral-sh/ruff#16319
118+
"ruff >= 0.11.0; sys_platform != 'cygwin'",
119119
]
120120

121121
cover = [
@@ -135,7 +135,7 @@ type = [
135135
# pin mypy version so a new version doesn't suddenly cause the CI to fail,
136136
# until types-setuptools is removed from typeshed.
137137
# For help with static-typing issues, or mypy update, ping @Avasam
138-
"mypy==1.14.*",
138+
"mypy==1.15.*",
139139
# Typing fixes in version newer than we require at runtime
140140
"importlib_metadata>=7.0.2; python_version < '3.10'",
141141
# Imported unconditionally in tools/finalize.py

ruff.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# extend pyproject.toml for requires-python (workaround astral-sh/ruff#10299)
2-
extend = "pyproject.toml"
3-
41
exclude = [
52
"**/_vendor",
63
"setuptools/_distutils",
@@ -68,7 +65,6 @@ ignore = [
6865
"TRY003", # raise-vanilla-args, avoid multitude of exception classes
6966
"TRY301", # raise-within-try, it's handy
7067
"UP015", # redundant-open-modes, explicit is preferred
71-
"UP038", # Using `X | Y` in `isinstance` call is slower and more verbose https://github.com/astral-sh/ruff/issues/7871
7268
# Only enforcing return type annotations for public functions
7369
"ANN202", # missing-return-type-private-function
7470
"ANN204", # missing-return-type-special-method

0 commit comments

Comments
 (0)