Skip to content

Commit dbc1e5f

Browse files
committed
chore(pre-commit): add isort step
1 parent a4338f2 commit dbc1e5f

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,25 @@ repos:
3939
types:
4040
- python
4141

42-
- repo: https://github.com/PyCQA/flake8
42+
- repo: https://github.com/pycqa/bandit
43+
rev: 1.8.6
44+
hooks:
45+
- id: bandit
46+
args: ["-ll"]
47+
files: .py$
48+
49+
- repo: https://github.com/pycqa/flake8
4350
rev: 7.3.0
4451
hooks:
4552
- id: flake8
4653
types:
4754
- python
4855

49-
- repo: https://github.com/pycqa/bandit
50-
rev: 1.8.6
56+
- repo: https://github.com/pycqa/isort
57+
rev: 7.0.0
5158
hooks:
52-
- id: bandit
53-
args: ["-ll"]
54-
files: .py$
59+
- id: isort
60+
args: ["--profile", "black"]
5561

5662
# esbenp.prettier-vscode defaults to using prettier@2.8.8. this mirror is the closest equivalent
5763
# another option would be to 'npm install prettier' explicitly in the Dockerfile, as the VS Code plugin will use it

0 commit comments

Comments
 (0)