File tree Expand file tree Collapse file tree 5 files changed +14
-8
lines changed
Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 77 pull_request :
88
99jobs :
10+ ruff :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v5
14+ - uses : astral-sh/ruff-action@v3
15+
1016 Windows :
1117 name : ' Windows (${{ matrix.python }})'
1218 runs-on : ' windows-latest'
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def setup(app):
101101# built documents.
102102#
103103# The short X.Y version.
104- import pytest_trio
104+ import pytest_trio # noqa: E402
105105
106106version = pytest_trio .__version__
107107# The full version, including alpha/beta/rc tags.
@@ -143,7 +143,7 @@ def setup(app):
143143# We have to set this ourselves, not only because it's useful for local
144144# testing, but also because if we don't then RTD will throw away our
145145# html_theme_options.
146- import sphinx_rtd_theme
146+ import sphinx_rtd_theme # noqa: E402
147147
148148html_theme = "sphinx_rtd_theme"
149149html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
Original file line number Diff line number Diff line change 11"""Top-level package for pytest-trio."""
22
3- from ._version import __version__
3+ from ._version import __version__ # noqa: F401
44from .plugin import trio_fixture
55
66__all__ = ["trio_fixture" ]
Original file line number Diff line number Diff line change 1- import pytest
2- from pytest_trio import trio_fixture
1+ import pytest # noqa: F401
2+ from pytest_trio import trio_fixture # noqa: F401
33
44from .helpers import enable_trio_mode
55
Original file line number Diff line number Diff line change 1- import pytest
1+ import pytest # noqa: F401
22
33from .helpers import enable_trio_mode
44
@@ -139,7 +139,7 @@ async def test():
139139
140140
141141def test_closest_explicit_run_wins (testdir ):
142- testdir .makefile (".ini" , pytest = f "[pytest]\n trio_mode = true\n trio_run = trio\n " )
142+ testdir .makefile (".ini" , pytest = "[pytest]\n trio_mode = true\n trio_run = trio\n " )
143143 testdir .makepyfile (qtrio = qtrio_text )
144144
145145 test_text = """
@@ -159,7 +159,7 @@ async def test():
159159
160160
161161def test_ini_run_wins_with_blank_marker (testdir ):
162- testdir .makefile (".ini" , pytest = f "[pytest]\n trio_mode = true\n trio_run = qtrio\n " )
162+ testdir .makefile (".ini" , pytest = "[pytest]\n trio_mode = true\n trio_run = qtrio\n " )
163163 testdir .makepyfile (qtrio = qtrio_text )
164164
165165 test_text = """
You can’t perform that action at this time.
0 commit comments