@@ -59,7 +59,7 @@ select = [
5959 " G" , # flake8-logging-format
6060 " INP" , # flake8-no-pep420
6161 " PYI" , # flake8-pyi
62- # "PT", # flake8-pytest-style
62+ " PT" , # flake8-pytest-style
6363 " Q" , # flake8-quotes
6464 " RSE" , # flake8-raise
6565 # "RET", # flake8-return
@@ -101,13 +101,13 @@ select = [
101101
102102ignore = [
103103 # Temporarily disabled rules
104- " RUF100" , # unused-noqa (TODO: remove this once all linters are enabled)
105104 " PERF203" , # try-except-in-loop (most of these are unavoidable)
106105 " S110" , # try-except-pass (Bandit wants us to log the exception, which is usually pointless. Spot check these later)
107106 " PLW0603" , # global-statement (this is currently used extensively)
108107 " PLW2901" , # redefined-loop-name (frequently used, not generally an issue)
109108 " PLR" , # Pylint Recommendations (too many to fix all at once)
110109 " E722" , # bare-except (too many to fix all at once)
110+ " PT012" , # pytest-raises-with-multiple-statements (too many to fix all at once)
111111 # Permanently disabled rules
112112 " UP006" , # non-pep585-annotation (not compatible with Python 3.7 or 3.8)
113113 " D203" , # incorrect-blank-line-before-class
@@ -144,6 +144,9 @@ ignore = [
144144 " PLR2004" , # magic-value-comparison (comparing to constant values)
145145 " ASYNC251" , # blocking-sleep-in-async-function (acceptable in tests)
146146 " B904" , # raise-without-from-inside-except (not necessary in tests)
147+ " PT006" , # pytest-parametrize-names-wrong-type (style choice)
148+ " PT007" , # pytest-parametrize-values-wrong-type (style choice)
149+ " PT011" , # pytest-raises-too-broad (we frequently test for generic errors)
147150]
148151"newrelic/admin/*" = [
149152 # Disabled rules in admin scripts
0 commit comments