Skip to content

Commit 930817b

Browse files
committed
chore: add pre-commit config
fix: add flake8 config fix: bump black version
1 parent 419a239 commit 930817b

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length = 88
3+
extend-ignore = E203

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: https://github.com/psf/black
9+
rev: 22.8.0
10+
hooks:
11+
- id: black
12+
- repo: https://github.com/pycqa/isort
13+
rev: 5.10.1
14+
hooks:
15+
- id: isort
16+
name: isort
17+
- repo: https://github.com/pycqa/flake8
18+
rev: 5.0.4
19+
hooks:
20+
- id: flake8

0 commit comments

Comments
 (0)