mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-15 04:48:01 +00:00
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:
1 parent
c80090b3ce
commit
7e57196d76
75 files changed
+284
-174
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user