Skip to content

Commit 4dda19e

Browse files
resolves the conversations
1 parent d7a449c commit 4dda19e

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed
File renamed without changes.

exasol/toolbox/nox/_lint.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,9 @@ def type_check(session: Session) -> None:
6666
@nox.session(name="import-lint", python=False)
6767
def import_lint(session: Session) -> None:
6868
"""Runs the import linter on the project"""
69-
70-
usage = "nox -s import-lint -- [options]"
71-
description = "Runs the import linter on the project"
7269
parser = argparse.ArgumentParser(
73-
description=description,
74-
usage=usage
70+
usage="nox -s import-lint -- [options]",
71+
description="Runs the import linter on the project"
7572
)
7673
parser.add_argument(
7774
"-c",
@@ -85,13 +82,12 @@ def import_lint(session: Session) -> None:
8582
file: str = args.config
8683
path: Path | None = None
8784
if file is None:
88-
path = getattr(PROJECT_CONFIG, "importlinter", Path(".importlinter"))
85+
path = getattr(PROJECT_CONFIG, "import_linter_config", Path(".import_linter_config"))
8986
else:
9087
path = Path(file)
91-
if path.exists():
92-
_import_lint(session=session, path=path)
93-
else:
88+
if not path.exists():
9489
session.error(
9590
"Please make sure you have a configuration file for the importlinter"
9691
)
92+
_import_lint(session=session, path=path)
9793

noxconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Config:
3434

3535
root: Path = Path(__file__).parent
3636
doc: Path = Path(__file__).parent / "doc"
37-
importlinter: Path = Path(__file__).parent / ".importlinter"
37+
importlinter: Path = Path(__file__).parent / ".import_linter_config"
3838
version_file: Path = Path(__file__).parent / "exasol" / "toolbox" / "version.py"
3939
path_filters: Iterable[str] = ("dist", ".eggs", "venv", "metrics-schema", "project-template")
4040
plugins = [UpdateTemplates]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ myst-parser = ">=2.0.0,<4"
5454
pluggy = "^1.5.0"
5555
shibuya = ">=2024.5.14"
5656
sphinx-design = ">=0.5.0,<1"
57+
import-linter = "^2.0"
5758

5859

59-
import-linter = "^2.0"
6060
[tool.poetry.group.dev.dependencies]
6161
autoimport = "^1.4.0"
6262

0 commit comments

Comments
 (0)