Skip to content

Commit 31a0363

Browse files
committed
Lint
1 parent 6a54ac1 commit 31a0363

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

seed_intersphinx_mapping/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
# this package
4949
from seed_intersphinx_mapping.cache import cache
50-
from seed_intersphinx_mapping.extension import setup
50+
from seed_intersphinx_mapping.extension import setup # noqa: F401
5151

5252
__author__: str = "Dominic Davis-Foster"
5353
__copyright__: str = "2020 Dominic Davis-Foster"

seed_intersphinx_mapping/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
__all__ = ["clear_cache"]
3636

3737

38-
def clear_cache():
38+
def clear_cache() -> int:
3939
"""
4040
Clear any cached URLs.
4141
"""

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
# 3rd party
66
import pytest
7+
from sphinx.application import Sphinx
78
from sphinx.testing.path import path
89

910
if sys.version_info >= (3, 10):
@@ -15,13 +16,13 @@
1516

1617

1718
@pytest.fixture(scope="session")
18-
def rootdir():
19+
def rootdir() -> path:
1920
rdir = pathlib.Path(__file__).parent.absolute() / "doc-test"
2021
if not (rdir / "test-root").is_dir():
2122
(rdir / "test-root").mkdir(parents=True)
2223
return path(rdir)
2324

2425

2526
@pytest.fixture()
26-
def the_app(app):
27+
def the_app(app: Sphinx) -> Sphinx:
2728
return app

tests/test_integration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 3rd party
22
import pytest
33
from domdf_python_tools.paths import PathPlus
4+
from sphinx.application import Sphinx
45

56

67
@pytest.fixture()
@@ -17,7 +18,7 @@ def requirements(tmp_pathplus: PathPlus) -> None:
1718

1819

1920
@pytest.mark.usefixtures("requirements")
20-
def test_integration(the_app):
21+
def test_integration(the_app: Sphinx):
2122
# app is a Sphinx application object for default sphinx project (`tests/doc-test/test-root`).
2223
the_app.build()
2324

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
def test_importable():
22
# this package
3-
import seed_intersphinx_mapping.__main__
3+
import seed_intersphinx_mapping.__main__ # noqa: F401
44

55

66
# TODO: test the clear cache function

tests/test_setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ def __init__(self):
1616
self.directives = []
1717
self.connections = []
1818

19-
def add_config_value(self, *args, **kwargs):
19+
def add_config_value(self, *args, **kwargs) -> None:
2020
self.config_values.append(args)
2121

22-
def add_directive(self, *args, **kwargs):
22+
def add_directive(self, *args, **kwargs) -> None:
2323
self.directives.append(args)
2424

25-
def connect(self, *args, **kwargs):
25+
def connect(self, *args, **kwargs) -> None:
2626
self.connections.append(args)
2727

2828

0 commit comments

Comments
 (0)