Skip to content

Commit 4f97be0

Browse files
committed
add pre-commit hook using poetry
1 parent 706aade commit 4f97be0

3 files changed

Lines changed: 407 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
fail_fast: true
2+
repos:
3+
- repo: local
4+
hooks:
5+
- id: black
6+
name: black
7+
entry: poetry run black
8+
language: system
9+
types: [file, python]
10+
- id: isort
11+
name: isort
12+
entry: poetry run isort --profile black
13+
language: system
14+
types: [file, python]

0 commit comments

Comments
 (0)