Skip to content

Commit dabab41

Browse files
committed
Add pre-commit configuration
1 parent ca36cea commit dabab41

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.pre-commit-config.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## https://pre-commit.com
2+
# pre-commit install --install-hooks
3+
#
4+
# Run hooks on repo:
5+
# pre-commit run --all-files [hook-id]
6+
#
7+
# Update repos:
8+
# pre-commit autoupdate
9+
---
10+
minimum_pre_commit_version: 2.4.0
11+
default_language_version:
12+
python: python3
13+
default_stages: [commit]
14+
fail_fast: false
15+
exclude: ^$
16+
repos:
17+
- repo: https://github.com/pre-commit/pre-commit-hooks
18+
rev: v3.3.0
19+
hooks:
20+
- id: check-merge-conflict
21+
- id: check-yaml
22+
- id: debug-statements
23+
- id: end-of-file-fixer
24+
- id: mixed-line-ending
25+
files: \.(py|md)$
26+
args: [--fix=lf]
27+
- id: requirements-txt-fixer
28+
- id: trailing-whitespace
29+
30+
- repo: https://github.com/asottile/pyupgrade
31+
rev: v2.7.2
32+
hooks:
33+
- id: pyupgrade
34+
args: [--py36-plus]
35+
36+
- repo: https://gitlab.com/pycqa/flake8
37+
rev: 3.8.4
38+
hooks:
39+
- id: flake8

0 commit comments

Comments
 (0)