Skip to content

Commit d11d390

Browse files
committed
Add pre-commit
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
1 parent f56829d commit d11d390

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-merge-conflict
8+
- id: check-symlinks
9+
- id: check-yaml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
- id: mixed-line-ending
13+
- id: trailing-whitespace
14+
15+
- repo: https://github.com/psf/black
16+
rev: 23.3.0
17+
hooks:
18+
- id: black
19+
20+
- repo: https://github.com/pycqa/flake8
21+
rev: "6.0.0"
22+
hooks:
23+
- id: flake8
24+
args:
25+
- --max-line-length=120

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ test_cov = [
4646
]
4747
dev = [
4848
"click-option-group[test]",
49+
"pre-commit",
4950
]
5051
docs = [
5152
'sphinx',
@@ -66,4 +67,4 @@ build.targets.wheel.packages = ['click-option-group']
6667

6768

6869
[tool.pytest.ini_options]
69-
testpaths = ["tests"]
70+
testpaths = ["tests"]

0 commit comments

Comments
 (0)