Add import linter (#13248)

* add import-linter

* move machine imports to plugin space

* clean up samples

* extend scope

* extend checks

* move plugin internals into a seperat folder

* remove unneeded re-export

* adjust import

* update import checker

* update src ref

* fix mocks
This commit is contained in:
Matthias Mair authored and GitHub committed 2026-11-12 18:41:59 +11:00
1 parent c80090b3ce
commit 7e57196d76
75 files changed
+284 -174

No files matched your search

+8
View File
@@ -64,6 +64,14 @@ repos:
rev: v1.36.4
hooks:
- id: djlint-django
- repo: local
hooks:
- id: import-linter
name: import-linter
entry: bash -c 'cd src/backend/InvenTree && lint-imports --config ../../../pyproject.toml'
language: python
additional_dependencies: [import-linter==2.16]
pass_filenames: false
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks: