@@ -91,27 +91,28 @@ allowed-confusables = ["–"]
9191src = [" src/trio" , " notes-to-self" ]
9292
9393select = [
94- " RUF" , # Ruff-specific rules
95- " F" , # pyflakes
96- " E" , # Error
97- " W" , # Warning
98- " I" , # isort
99- " UP" , # pyupgrade
100- " B" , # flake8-bugbear
101- " YTT" , # flake8-2020
102- " ASYNC" , # flake8-async
103- " PYI" , # flake8-pyi
104- " SIM" , # flake8-simplify
105- " TCH" , # flake8-type-checking
106- " PT" , # flake8-pytest-style
94+ " ASYNC" , # flake8-async
95+ " B" , # flake8-bugbear
96+ " C4" , # flake8-comprehensions
97+ " E" , # Error
98+ " F" , # pyflakes
99+ " I" , # isort
100+ " PT" , # flake8-pytest-style
101+ " PYI" , # flake8-pyi
102+ " RUF" , # Ruff-specific rules
103+ " SIM" , # flake8-simplify
104+ " TCH" , # flake8-type-checking
105+ " UP" , # pyupgrade
106+ " W" , # Warning
107+ " YTT" , # flake8-2020
107108]
108109extend-ignore = [
109- ' F403 ' , # undefined-local-with-import-star
110- ' F405 ' , # undefined-local-with-import-star-usage
111- ' E402 ' , # module-import-not-at-top-of-file (usually OS-specific)
112- ' E501 ' , # line-too-long
113- ' SIM117 ' , # multiple-with- statements (messes up lots of context-based stuff and looks bad)
114- ' PT012 ' , # multiple statements in pytest.raises block
110+ ' E402 ' , # module-import-not-at-top-of-file (usually OS-specific)
111+ ' E501 ' , # line-too-long
112+ ' F403 ' , # undefined-local-with-import-star
113+ ' F405 ' , # undefined-local-with-import-star-usage
114+ ' PT012 ' , # multiple statements in pytest.raises block
115+ ' SIM117 ' , # multiple-with- statements (messes up lots of context-based stuff and looks bad)
115116]
116117
117118include = [" *.py" , " *.pyi" , " **/pyproject.toml" ]
0 commit comments