Skip to content

Commit

Permalink
WIP enable flake8-pytest-style
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Oct 19, 2023
1 parent b324b3a commit 482446d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ select = [
"F", # pyflakes
"I", # isort
"YTT", # flake8-2020
"PT", # flake8-pytest-style
]
extend-ignore = [
'F403', # undefined-local-with-import-star
Expand Down Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions trio/_tests/test_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 482446d

Please sign in to comment.