Skip to content

Commit fd1f1bb

Browse files
committed
fix: cli
1 parent 28106bb commit fd1f1bb

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ source = "version-pioneer"
1515

1616
[tool.version-pioneer]
1717
versionscript = "src/python_import/_version.py" # CHANGE
18-
versionfile-source = "src/python_import/_version.py" # CHANGE
18+
versionfile-sdist = "src/python_import/_version.py" # CHANGE
1919
versionfile-build = "python_import/_version.py" # CHANGE
2020

2121
[project]

src/python_import/cli/main.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# ruff: noqa: T201
1+
# ruff: noqa: T201 TC003
22
from __future__ import annotations
33

44
import json
55
import subprocess
66
from collections import defaultdict
7-
from typing import TYPE_CHECKING
7+
from pathlib import Path
88

99
import tree_sitter_python as tspython
1010
import typer
@@ -13,9 +13,6 @@
1313
import python_import
1414
from python_import.utils import get_all_imports_in_file_as_absolute
1515

16-
if TYPE_CHECKING:
17-
from pathlib import Path
18-
1916
PY_LANGUAGE = Language(tspython.language())
2017

2118
app = typer.Typer(

0 commit comments

Comments
 (0)