Skip to content

Commit 066a1a1

Browse files
committed
Added basic pre-commit config and added pre-commit to requirements_dev
1 parent 514962b commit 066a1a1

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.1.0
4+
hooks:
5+
- id: check-ast
6+
- id: check-builtin-literals
7+
- id: check-merge-conflict
8+
- id: end-of-file-fixer
9+
- id: trailing-whitespace
10+
- id: debug-statements
11+
- id: fix-encoding-pragma
12+
args: [--remove]

requirements_dev.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ IPython>=7.2.0
3131

3232
# testing dependencies
3333
tox>=3.0.0
34-
flake8>=3.5.0
3534
pytest>=3.7.1
3635
pluggy>=0.7
3736
pytest-cov>=2.5.1
3837
pytest-runner>=2.11.1
3938
pytest-benchmark>=3.1.1
39+
40+
# code quality asurence
41+
flake8>=3.8.3
42+
pre-commit>=2.6.0

0 commit comments

Comments
 (0)