@@ -203,6 +203,9 @@ toplevel = ["attr", "attrs"]
203203src = [" src" , " tests" , " conftest.py" , " docs" ]
204204line-length = 79
205205
206+ [tool .ruff .per-file-target-version ]
207+ "tests/test_pattern_matching.py" = " py310"
208+
206209[tool .ruff .lint ]
207210select = [" ALL" ]
208211ignore = [
@@ -221,6 +224,7 @@ ignore = [
221224 " ISC001" , # conflicts with ruff format
222225 " N" , # we need more naming freedom
223226 " PD" , # we're not pandas
227+ " PLC0415" , # sometimes, imports have to live elsewhere
224228 " PLR0912" , # we're complex software
225229 " PLR0913" , # yes, many arguments, but most have defaults
226230 " PLR0915" , # we're complex software
@@ -247,6 +251,7 @@ ignore = [
247251 " DTZ" , # datetime best practices don't matter in tests
248252 " EM" , # no need for exception msg hygiene in tests
249253 " PLE0309" , # hash doesn't have to return anything in tests
254+ " PLW1641" , # it's OK to rely object's __hash__
250255 " PLR0124" , # pointless comparison in tests aren't pointless
251256 " PT011" , # broad is fine
252257 " PT012" , # sometimes we need more than a single stmt
0 commit comments