Skip to content

Commit 482446d

Browse files
committed
WIP enable flake8-pytest-style
1 parent b324b3a commit 482446d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ select = [
2727
"F", # pyflakes
2828
"I", # isort
2929
"YTT", # flake8-2020
30+
"PT", # flake8-pytest-style
3031
]
3132
extend-ignore = [
3233
'F403', # undefined-local-with-import-star
@@ -54,6 +55,9 @@ extend-exclude = [
5455
[tool.ruff.isort]
5556
combine-as-imports = true
5657

58+
[tool.ruff.flake8-pytest-style]
59+
fixture-parentheses = false
60+
5761
[tool.mypy]
5862
python_version = "3.8"
5963

trio/_tests/test_exports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def iter_modules(
113113
# they might be using a newer version of Python with additional symbols which
114114
# won't be reflected in trio.socket, and this shouldn't cause downstream test
115115
# runs to start failing.
116-
@pytest.mark.redistributors_should_skip
116+
@pytest.mark.redistributors_should_skip()
117117
# Static analysis tools often have trouble with alpha releases, where Python's
118118
# internals are in flux, grammar may not have settled down, etc.
119119
@pytest.mark.skipif(
@@ -263,7 +263,7 @@ def no_underscores(symbols):
263263
# modules, instead of once per class.
264264
@slow
265265
# see comment on test_static_tool_sees_all_symbols
266-
@pytest.mark.redistributors_should_skip
266+
@pytest.mark.redistributors_should_skip()
267267
# Static analysis tools often have trouble with alpha releases, where Python's
268268
# internals are in flux, grammar may not have settled down, etc.
269269
@pytest.mark.skipif(

0 commit comments

Comments
 (0)