Skip to content

Commit 2d5bbf4

Browse files
committed
Pre-commit hooks
1 parent 7977cff commit 2d5bbf4

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
**pycache**
22
.vscode*
3-
.pre-commit-config.yaml

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
args: ['--maxkb=2000']
10+
- repo: https://github.com/psf/black
11+
rev: 23.3.0
12+
hooks:
13+
- id: black
14+
args: ["--line-length", "140"]
15+
- repo: https://github.com/pycqa/flake8
16+
rev: 4.0.1
17+
hooks:
18+
- id: flake8
19+
args: ["--ignore=E722,E501"]
20+
- repo: https://github.com/pycqa/isort
21+
rev: 5.12.0
22+
hooks:
23+
- id: isort
24+
args: ["--profile", "black", "--filter-files"]

0 commit comments

Comments
 (0)