Skip to content

Commit 13d8fa6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 306c628 commit 13d8fa6

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ url = https://github.com/pytask-dev/pytask-stata
77
author = Tobias Raabe
88
author_email = [email protected]
99
license = MIT
10-
license_file = LICENSE
10+
license_files = LICENSE
1111
platforms = any
1212
classifiers =
1313
Development Status :: 4 - Beta
@@ -26,7 +26,7 @@ packages = find:
2626
install_requires =
2727
click
2828
pytask>=0.3
29-
python_requires = >=3.7
29+
python_requires = >=3.8
3030
include_package_data = True
3131
package_dir = =src
3232
zip_safe = False

src/pytask_stata/collect.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
import functools
55
import subprocess
6-
from pathlib import Path
76
from types import FunctionType
8-
from typing import Any
7+
from typing import Any, TYPE_CHECKING
98

109
from pytask import depends_on
1110
from pytask import has_mark
@@ -19,6 +18,9 @@
1918
from pytask_stata.shared import convert_task_id_to_name_of_log_file
2019
from pytask_stata.shared import stata
2120

21+
if TYPE_CHECKING:
22+
from pathlib import Path
23+
2224

2325
def run_stata_script(
2426
executable: str, script: Path, options: list[str], log_name: list[str], cwd: Path

src/pytask_stata/plugin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
from __future__ import annotations
33

44
from _pytask.config import hookimpl
5-
from pluggy import PluginManager
65
from pytask_stata import cli
76
from pytask_stata import collect
87
from pytask_stata import config
98
from pytask_stata import execute
109
from pytask_stata import parametrize
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from pluggy import PluginManager
1114

1215

1316
@hookimpl

src/pytask_stata/shared.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
from __future__ import annotations
33

44
import sys
5-
from pathlib import Path
65
from typing import Any
76
from typing import Iterable
8-
from typing import Sequence
7+
from typing import Sequence, TYPE_CHECKING
8+
9+
if TYPE_CHECKING:
10+
from pathlib import Path
911

1012

1113
if sys.platform == "darwin":

0 commit comments

Comments
 (0)