Skip to content

Commit 0793f3a

Browse files
committed
add isort + black + flake8 pre-comit hooks
1 parent 5edf995 commit 0793f3a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-isort
3+
rev: v4.3.21
4+
hooks:
5+
- id: isort
6+
language_version: python3.7
7+
- repo: https://github.com/ambv/black
8+
rev: stable
9+
hooks:
10+
- id: black
11+
language_version: python3.7
12+
- repo: https://github.com/pre-commit/pre-commit-hooks
13+
rev: v2.3.0
14+
hooks:
15+
- id: flake8

requirements_dev.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Requirements of this dev
22
FireWorks==1.8.7
3-
GitPython==2.1.11
3+
GitPython==2.1.11
4+
black==19.3b0
5+
flake8==3.7.8
6+
isort==4.3.21
7+
pre-commit==1.18.3

0 commit comments

Comments
 (0)