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 7
7
pull_request :
8
8
9
9
jobs :
10
+ ruff :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v5
14
+ - uses : astral-sh/ruff-action@v3
15
+
10
16
Windows :
11
17
name : ' Windows (${{ matrix.python }})'
12
18
runs-on : ' windows-latest'
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def setup(app):
101
101
# built documents.
102
102
#
103
103
# The short X.Y version.
104
- import pytest_trio
104
+ import pytest_trio # noqa: E402
105
105
106
106
version = pytest_trio .__version__
107
107
# The full version, including alpha/beta/rc tags.
@@ -143,7 +143,7 @@ def setup(app):
143
143
# We have to set this ourselves, not only because it's useful for local
144
144
# testing, but also because if we don't then RTD will throw away our
145
145
# html_theme_options.
146
- import sphinx_rtd_theme
146
+ import sphinx_rtd_theme # noqa: E402
147
147
148
148
html_theme = "sphinx_rtd_theme"
149
149
html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
Original file line number Diff line number Diff line change 1
1
"""Top-level package for pytest-trio."""
2
2
3
- from ._version import __version__
3
+ from ._version import __version__ # noqa: F401
4
4
from .plugin import trio_fixture
5
5
6
6
__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
3
3
4
4
from .helpers import enable_trio_mode
5
5
Original file line number Diff line number Diff line change 1
- import pytest
1
+ import pytest # noqa: F401
2
2
3
3
from .helpers import enable_trio_mode
4
4
@@ -139,7 +139,7 @@ async def test():
139
139
140
140
141
141
def 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 " )
143
143
testdir .makepyfile (qtrio = qtrio_text )
144
144
145
145
test_text = """
@@ -159,7 +159,7 @@ async def test():
159
159
160
160
161
161
def 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 " )
163
163
testdir .makepyfile (qtrio = qtrio_text )
164
164
165
165
test_text = """
You can’t perform that action at this time.
0 commit comments