Add isort to CI and pre-commit (#29739)
* add isort to CI and pre-commit * disable wrong-import-order in pylintrc * ✏️ Tweak Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
1 parent
7d68e88d31
commit
c58c10ab7c
5 files changed
+16
-1
No files matched your search
@@ -35,6 +35,10 @@ repos:
|
||||
- --format=custom
|
||||
- --configfile=tests/bandit.yaml
|
||||
files: ^(homeassistant|script|tests)/.+\.py$
|
||||
- repo: https://github.com/pre-commit/mirrors-isort
|
||||
rev: v4.3.21
|
||||
hooks:
|
||||
- id: isort
|
||||
# Using a local "system" mypy instead of the mypy hook, because its
|
||||
# results depend on what is installed. And the mypy hook runs in a
|
||||
# virtualenv of its own, meaning we'd need to install and maintain
|
||||
|
||||
Reference in new issue
Block a user