Skip to content

Commit 49c1cd2

Browse files
committed
🔧 Add pre-commit config
Similar to graphene and graphene-sqlalchemy
1 parent f6ec068 commit 49c1cd2

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.pre-commit-config.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
default_language_version:
2+
python: python3.9
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.2.0
6+
hooks:
7+
- id: check-merge-conflict
8+
- id: check-json
9+
- id: check-yaml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
exclude: ^docs/.*$
13+
- id: pretty-format-json
14+
args:
15+
- --autofix
16+
- id: trailing-whitespace
17+
exclude: README.md
18+
- repo: https://github.com/asottile/pyupgrade
19+
rev: v2.32.1
20+
hooks:
21+
- id: pyupgrade
22+
- repo: https://github.com/ambv/black
23+
rev: 22.3.0
24+
hooks:
25+
- id: black
26+
- repo: https://github.com/PyCQA/flake8
27+
rev: 4.0.1
28+
hooks:
29+
- id: flake8

0 commit comments

Comments
 (0)