Skip to content

Commit bea9175

Browse files
committed
Add pre-commit hooks
1 parent a6437c0 commit bea9175

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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: check-added-large-files
8+
- id: check-ast
9+
- id: check-merge-conflict
10+
- id: check-yaml
11+
- id: detect-private-key
12+
- id: end-of-file-fixer
13+
- id: trailing-whitespace
14+
15+
- repo: https://github.com/asottile/reorder_python_imports
16+
rev: v3.9.0
17+
hooks:
18+
- id: reorder-python-imports
19+
20+
- repo: https://github.com/psf/black
21+
rev: 22.10.0
22+
hooks:
23+
- id: black
24+
language_version: python3.10
25+
26+
- repo: https://github.com/python-poetry/poetry
27+
rev: 1.6.1
28+
hooks:
29+
- id: poetry-check
30+
#- id: poetry-lock
31+
- id: poetry-export
32+
#- id: poetry-install

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ poetry:
1818
install:
1919
poetry install
2020
poetry run python scripts/download-tools.py
21+
poetry run pre-commit install
2122

2223
export:
2324
poetry export -f requirements.txt --output requirements.txt

0 commit comments

Comments
 (0)