Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

Commit a969572

Browse files
committed
Add initial pre-commit configuration
1 parent 2116492 commit a969572

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+
# 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: v4.3.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: requirements-txt-fixer
11+
files: requirements.in
12+
13+
- repo: https://github.com/psf/black
14+
rev: 22.8.0
15+
hooks:
16+
- id: black
17+
name: Format Python
18+
language_version: python3.10
19+
20+
- repo: https://github.com/pycqa/isort
21+
rev: 5.10.1
22+
hooks:
23+
- id: isort
24+
name: Format Python imports
25+
args:
26+
- --profile=black
27+
28+
- repo: https://github.com/jazzband/pip-tools
29+
rev: 6.8.0
30+
hooks:
31+
- id: pip-compile
32+
name: Compile Python requirements
33+
34+
35+
- id: pip-compile
36+
name: Upgrade Python dependencies
37+
stages: [manual]
38+
args:
39+
- --upgrade

0 commit comments

Comments
 (0)