Skip to content

Commit 9275d79

Browse files
feat(pre-commit): isort, end-of-file-fixer hooks are added
1 parent 112cbc2 commit 9275d79

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.flake8

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[flake8]
22
max-line-length = 88
3-
ignore = E203
3+
ignore = E203, W503
4+
exclude =
5+
updates
6+
venv

.pre-commit-config.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: end-of-file-fixer
6+
- repo: https://github.com/PyCQA/isort
7+
rev: 5.12.0
8+
hooks:
9+
- id: isort
10+
args: ['--profile','black']
211
- repo: https://github.com/psf/black
312
rev: 22.12.0
413
hooks:
@@ -7,4 +16,4 @@ repos:
716
- repo: https://github.com/PyCQA/flake8
817
rev: 6.0.0
918
hooks:
10-
- id: flake8
19+
- id: flake8

0 commit comments

Comments
 (0)