Skip to content

Commit 71f94ff

Browse files
committed
Add pre-commit
Fixes #106
1 parent c7c3a76 commit 71f94ff

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-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+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.2.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- repo: https://github.com/psf/black
12+
rev: 22.3.0
13+
hooks:
14+
- id: black
15+
- repo: https://gitlab.com/pycqa/flake8
16+
rev: 4.0.1
17+
hooks:
18+
- id: flake8

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ dev =
5656
pytest-cov >= 2.12.1
5757
black
5858
isort
59+
pre-commit
5960
docs =
6061
sphinx >= 4.0.0
6162
sphinx_rtd_theme

0 commit comments

Comments
 (0)