Skip to content

Commit 8aa335c

Browse files
committed
Add a pre-commit setup.
1 parent 3df439a commit 8aa335c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: check-ast
6+
- id: check-docstring-first
7+
- id: check-toml
8+
- id: check-vcs-permalinks
9+
- id: check-yaml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
- id: mixed-line-ending
13+
args: [--fix, lf]
14+
- id: trailing-whitespace
15+
- repo: https://github.com/PyCQA/isort
16+
rev: 5.10.1
17+
hooks:
18+
- id: isort
19+
- repo: https://github.com/pycqa/flake8
20+
rev: '5.0.4'
21+
hooks:
22+
- id: flake8
23+
- repo: https://github.com/asottile/pyupgrade
24+
rev: v2.38.2
25+
hooks:
26+
- id: pyupgrade
27+
- repo: https://github.com/psf/black
28+
rev: 22.8.0
29+
hooks:
30+
- name: black
31+
id: black
32+
args: ["--line-length", "79"]

0 commit comments

Comments
 (0)