Skip to content

Commit a0d4472

Browse files
author
Charles Larivier
committed
feat: add pre-commit hooks
1 parent 3ffa887 commit a0d4472

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.2.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
10+
- repo: https://github.com/psf/black
11+
rev: 21.11b0
12+
hooks:
13+
- id: black
14+
15+
- repo: https://github.com/PyCQA/isort
16+
rev: 5.10.1
17+
hooks:
18+
- id: isort

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ requires = [
44
"wheel"
55
]
66
build-backend = "setuptools.build_meta"
7+
8+
[tool.isort]
9+
profile = "black"

0 commit comments

Comments
 (0)