diff --git a/.importlinter b/.importlinter index c135952..d3d3d90 100644 --- a/.importlinter +++ b/.importlinter @@ -1,6 +1,6 @@ [importlinter] root_packages= - copywriter + src.copywriter tests include_external_packages=True @@ -9,6 +9,6 @@ include_external_packages=True name = Application code should not import non-application code (i.e. tests, devtools) type = forbidden source_modules = - copywriter + src.copywriter forbidden_modules = tests diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ac00f4a..69d4641 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,6 +27,12 @@ repos: # Preserve markdown hard line breaks args: ["--markdown-linebreak-ext", "md"] + # Import-linter to check project structure + - repo: https://github.com/seddonym/import-linter/ + rev: "v2.0" + hooks: + - id: import-linter + # Ruff for linting - repo: https://github.com/charliermarsh/ruff-pre-commit rev: "v0.1.13"