Skip to content

Commit ef5184f

Browse files
[pre-commit.ci] pre-commit autoupdate (#166)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2f413b5 commit ef5184f

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
hooks:
55
- id: trailing-whitespace
66
- repo: https://github.com/astral-sh/ruff-pre-commit
7-
rev: v0.5.7
7+
rev: v0.6.1
88
hooks:
99
- id: ruff
1010
args: [--fix, --exit-non-zero-on-fix]

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from sphinx.application import Sphinx
2222

2323

24-
@pytest.fixture()
24+
@pytest.fixture
2525
def make_app_setup(
2626
make_app: Callable[..., Sphinx], tmp_path: Path
2727
) -> Callable[..., Sphinx]:
@@ -32,7 +32,7 @@ def make_app_setup(**conf: Any) -> Sphinx: # noqa: ANN401
3232
return make_app_setup
3333

3434

35-
@pytest.fixture()
35+
@pytest.fixture
3636
def make_module(
3737
tmp_path: Path,
3838
) -> Generator[Callable[[str, str], ModuleType], None, None]:

tests/test_definition_list_typed_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from sphinx.application import Sphinx
1717

1818

19-
@pytest.fixture()
19+
@pytest.fixture
2020
def app(make_app_setup: Callable[..., Sphinx]) -> Sphinx:
2121
app = make_app_setup()
2222
app.setup_extension("scanpydoc.definition_list_typed_field")

tests/test_elegant_typehints.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __call__( # noqa: D102
4040
NONE_RTYPE = ":rtype: :sphinx_autodoc_typehints_type:`\\:py\\:obj\\:\\`None\\``"
4141

4242

43-
@pytest.fixture()
43+
@pytest.fixture
4444
def testmod(make_module: Callable[[str, str], ModuleType]) -> ModuleType:
4545
return make_module(
4646
"testmod",
@@ -59,7 +59,7 @@ class Gen(Generic[T]): pass
5959
)
6060

6161

62-
@pytest.fixture()
62+
@pytest.fixture
6363
def app(make_app_setup: Callable[..., Sphinx]) -> Sphinx:
6464
return make_app_setup(
6565
master_doc="index",
@@ -79,7 +79,7 @@ def app(make_app_setup: Callable[..., Sphinx]) -> Sphinx:
7979
)
8080

8181

82-
@pytest.fixture()
82+
@pytest.fixture
8383
def process_doc(app: Sphinx) -> ProcessDoc:
8484
listeners = sorted(
8585
(l for l in app.events.listeners["autodoc-process-docstring"]),
@@ -276,7 +276,7 @@ def test_typing_classes(app: Sphinx, annotation: type) -> None:
276276

277277
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires Python 3.10+")
278278
def test_union_type(app: Sphinx) -> None:
279-
union = eval("int | str") # noqa: S307, PGH001
279+
union = eval("int | str") # noqa: S307
280280
assert typehints_formatter(union, app.config) is None
281281

282282

tests/test_rtd_github_links.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
HERE = Path(__file__).parent
3838

3939

40-
@pytest.fixture()
40+
@pytest.fixture
4141
def config() -> Config:
4242
config = Config()
4343
config.add(
@@ -46,7 +46,7 @@ def config() -> Config:
4646
return config
4747

4848

49-
@pytest.fixture()
49+
@pytest.fixture
5050
def _env(monkeypatch: MonkeyPatch) -> None:
5151
monkeypatch.setattr("scanpydoc.rtd_github_links.github_base_url", "x")
5252

0 commit comments

Comments
 (0)