Skip to content

Commit a614f0f

Browse files
authored
MPT-12322: update Ruff ignore rules (add D107, remove UP046 and UP047) (#4)
Update Ruff ignore rules: * Add D107: https://docs.astral.sh/ruff/rules/undocumented-public-init/ * Remove UP046 and UP047: stop ignoring [PEP 695](https://peps.python.org/pep-0695/), for those places that still need to use the ParamSpec type, we can ignore them using -> # noqa: UP046, UP047
2 parents 994e538 + 9ee256e commit a614f0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ ignore = [
138138
"D100",
139139
"D104",
140140
"D106",
141+
"D107",
141142
"D203",
142143
"D212",
143144
"D401",
@@ -150,8 +151,6 @@ ignore = [
150151
"PLR6301", # do not require classmethod / staticmethod when self not used
151152
"PT011", # pytest.raises({exception}) is too broad, set the match parameter or use a more specific exception
152153
"TRY003", # long exception messages from `tryceratops`
153-
"UP046", # Doesn't properly work with ParamSpec and python 3.12
154-
"UP047", # Doesn't properly work with ParamSpec and python 3.12
155154
]
156155
external = [ "WPS" ]
157156

0 commit comments

Comments
 (0)