Skip to content

Commit 9d1b435

Browse files
fix
1 parent 80fac75 commit 9d1b435

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

exasol/toolbox/nox/_lint.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _type_check(session: Session, files: Iterable[str]) -> None:
3939
)
4040

4141

42-
def _import_lint(session: Session, path: str) -> None:
42+
def _import_lint(session: Session, path: Path) -> None:
4343
session.run(
4444
"poetry",
4545
"run",
@@ -84,10 +84,11 @@ def import_lint(session: Session) -> None:
8484
args: argparse.Namespace = parser.parse_args(args=session.posargs)
8585
file: str = args.config
8686
print(f"-{file}-")
87+
path: Path
8788
if file is None:
88-
path: path = getattr(PROJECT_CONFIG, "importlinter", Path(".importlinter"))
89+
path = getattr(PROJECT_CONFIG, "importlinter", Path(".importlinter"))
8990
else:
90-
path: path = Path(file)
91+
path = Path(file)
9192
if path.exists():
9293
_import_lint(session=session, path=path)
9394
else:

0 commit comments

Comments
 (0)