Skip to content

Commit 662d4d8

Browse files
committed
add pre-commit
1 parent f5f78f5 commit 662d4d8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.pre-commit-config.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Install the pre-commit hooks below with
2+
# 'pre-commit install'
3+
4+
# Auto-update the version of the hooks with
5+
# 'pre-commit autoupdate'
6+
7+
# Run the hooks on all files with
8+
# 'pre-commit run --all'
9+
10+
repos:
11+
- repo: https://github.com/pre-commit/pre-commit-hooks
12+
rev: v4.4.0
13+
hooks:
14+
- id: end-of-file-fixer
15+
# only include python files
16+
files: \.py$
17+
- id: debug-statements
18+
# only include python files
19+
files: \.py$
20+
- id: trailing-whitespace
21+
# only include python files
22+
files: \.py$
23+
24+
- repo: https://github.com/pycqa/flake8
25+
rev: '6.1.0'
26+
hooks:
27+
- id: flake8

0 commit comments

Comments
 (0)