Skip to content

Commit 465b822

Browse files
committed
Enable flake8-pytest-style linter
1 parent f3a58d1 commit 465b822

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
@@ -141,6 +141,9 @@ ignore = [
141141
"PLR2004", # magic-value-comparison (comparing to constant values)
142142
"ASYNC251", # blocking-sleep-in-async-function (acceptable in tests)
143143
"B904", # raise-without-from-inside-except (not necessary in tests)
144+
"PT006", # pytest-parametrize-names-wrong-type (style choice)
145+
"PT007", # pytest-parametrize-values-wrong-type (style choice)
146+
"PT011", # pytest-raises-too-broad (we frequently test for generic errors)
144147
]
145148
"newrelic/admin/*" = [
146149
# Disabled rules in admin scripts

0 commit comments

Comments
 (0)