Skip to content

Commit 871c4ca

Browse files
committed
Removing unused imports.
1 parent 839a67b commit 871c4ca

File tree

10 files changed

+6
-19
lines changed

10 files changed

+6
-19
lines changed

repo_helper/_docs_shields.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
import datetime
2828
from typing import Union
2929

30-
# 3rd party
31-
from typing_extensions import Literal
32-
3330
# this package
3431
from repo_helper.shields import (
3532
make_conda_platform_shield,

repo_helper/configuration/packaging.py

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

2626
# stdlib
2727
import warnings
28-
from typing import Any, Dict, List, Mapping, Optional
28+
from typing import Any, Dict, List, Optional
2929

3030
# 3rd party
3131
from configconfig.configvar import ConfigVar

repo_helper/files/packaging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
# stdlib
2727
import copy
2828
import pathlib
29-
import re
3029
import textwrap
3130
from typing import Any, List
3231

repo_helper/files/pre_commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import re
3131
from io import StringIO
3232
from textwrap import indent
33-
from typing import Iterable, List, Mapping, MutableMapping, Union
33+
from typing import Iterable, List, MutableMapping, Union
3434

3535
# 3rd party
3636
import attr

repo_helper/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import re
3131
import textwrap
3232
from datetime import date, timedelta
33-
from typing import TYPE_CHECKING, Callable, Dict, Iterable, List, Optional, TypeVar, Union
33+
from typing import Callable, Dict, Iterable, List, Optional, Union
3434

3535
# 3rd party
3636
import dulwich.repo
@@ -49,10 +49,6 @@
4949
# this package
5050
from repo_helper.configupdater2 import ConfigUpdater
5151

52-
if TYPE_CHECKING:
53-
# this package
54-
from repo_helper.core import RepoHelper
55-
5652
__all__ = [
5753
"IniConfigurator",
5854
"discover_entry_points",

tests/test_cli/test_conda_recipe.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# stdlib
22
import os
3-
import pathlib
43
import re
54

65
# 3rd party

tests/test_cli/test_show.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
import pytest
66
from click.testing import CliRunner, Result
77
from domdf_python_tools.paths import PathPlus, in_directory
8-
from domdf_python_tools.testing import check_file_regression, min_version, not_pypy, not_windows, only_windows
8+
from domdf_python_tools.testing import check_file_regression, min_version, not_pypy, not_windows
99
from pytest_regressions.file_regression import FileRegressionFixture
1010

1111
# this package
1212
from repo_helper.cli.commands import show
13-
from repo_helper.configuration import metadata
1413

1514

1615
def test_version(tmp_repo, file_regression: FileRegressionFixture):

tests/test_core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# stdlib
2-
import datetime
32
import os
4-
import pathlib
53
import re
6-
from tempfile import TemporaryDirectory
74

85
# 3rd party
96
import pytest

tests/test_files/test_linting.py

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

55
# this package
66
from repo_helper.files.linting import make_pylintrc
7-
from repo_helper.files.old import make_lint_roller, remove_lint_roller
7+
from repo_helper.files.old import remove_lint_roller
88

99

1010
def test_pylintrc(tmp_pathplus, demo_environment, file_regression: FileRegressionFixture):

tests/test_import_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
def test_import_main():
55
# this package
6-
import repo_helper.__main__
6+
import repo_helper.__main__ # noqa: F401

0 commit comments

Comments
 (0)