@@ -20,6 +20,7 @@ extend-select = [
2020 " I" , # isort
2121 " PERF" , # Perflint
2222 " PGH" , # pygrep-hooks (blanket-* rules)
23+ " PT" , # flake8-pytest-style
2324 " PYI" , # flake8-pyi
2425 " RUF10" , # unused-noqa & redirected-noqa
2526 " TRY" , # tryceratops
@@ -28,6 +29,11 @@ extend-select = [
2829]
2930ignore = [
3031 " PERF203" , # try-except-in-loop, micro-optimisation with many false-positive. Worth checking but don't block CI
32+ " PT004" , # deprecated https://github.com/astral-sh/ruff/issues/8796#issuecomment-2057143531
33+ " PT005" , # deprecated https://github.com/astral-sh/ruff/issues/8796#issuecomment-2057143531
34+ " PT007" , # temporarily disabled, TODO: configure and standardize to preference
35+ " PT011" , # temporarily disabled, TODO: tighten expected error
36+ " PT012" , # pytest-raises-with-multiple-statements, avoid extra dummy methods for a few lines, sometimes we explicitly assert in case of no error
3137 " TRY003" , # raise-vanilla-args, avoid multitude of exception classes
3238 " TRY301" , # raise-within-try, it's handy
3339 " UP015" , # redundant-open-modes, explicit is preferred
@@ -80,6 +86,9 @@ sections.delayed = ["distutils"]
8086[lint .flake8-annotations ]
8187ignore-fully-untyped = true
8288
89+ [lint .flake8-pytest-style ]
90+ parametrize-names-type = " csv"
91+
8392[format ]
8493# Enable preview to get hugged parenthesis unwrapping and other nice surprises
8594# See https://github.com/jaraco/skeleton/pull/133#issuecomment-2239538373
0 commit comments