diff --git a/pyproject.toml b/pyproject.toml index 7ecbbe5f4f..93c1e68ee0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,7 @@ select = [ "F", # pyflakes "I", # isort "YTT", # flake8-2020 + "PT", # flake8-pytest-style ] extend-ignore = [ 'F403', # undefined-local-with-import-star @@ -54,6 +55,9 @@ extend-exclude = [ [tool.ruff.isort] combine-as-imports = true +[tool.ruff.flake8-pytest-style] +fixture-parentheses = false + [tool.mypy] python_version = "3.8" diff --git a/trio/_tests/test_exports.py b/trio/_tests/test_exports.py index e756e8ad69..71c9ffb198 100644 --- a/trio/_tests/test_exports.py +++ b/trio/_tests/test_exports.py @@ -113,7 +113,7 @@ def iter_modules( # they might be using a newer version of Python with additional symbols which # won't be reflected in trio.socket, and this shouldn't cause downstream test # runs to start failing. -@pytest.mark.redistributors_should_skip +@pytest.mark.redistributors_should_skip() # Static analysis tools often have trouble with alpha releases, where Python's # internals are in flux, grammar may not have settled down, etc. @pytest.mark.skipif( @@ -263,7 +263,7 @@ def no_underscores(symbols): # modules, instead of once per class. @slow # see comment on test_static_tool_sees_all_symbols -@pytest.mark.redistributors_should_skip +@pytest.mark.redistributors_should_skip() # Static analysis tools often have trouble with alpha releases, where Python's # internals are in flux, grammar may not have settled down, etc. @pytest.mark.skipif(