Skip to content

Commit 467fa03

Browse files
author
Frankie Robertson
committed
Add pre commit hooks
1 parent f50eed3 commit 467fa03

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.isort.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[settings]
2+
multi_line_output = 3
3+
include_trailing_comma = true
4+
force_grid_wrap = 0
5+
use_parentheses = true
6+
line_length = 88

.pre-commit-config.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
repos:
2-
- repo: https://github.com/ambv/black
3-
rev: cb67a322423cb2b4bcfb2faa68fb769326741d6a
2+
- repo: https://github.com/psf/black
3+
rev: 19.10b0
44
hooks:
55
- id: black
6-
args: []
7-
python_version: python3.8
8-
- repo: git://github.com/pre-commit/pre-commit-hooks
9-
rev: master
6+
- repo: git://github.com/pycqa/flake8
7+
rev: 3.8.2
108
hooks:
119
- id: flake8
1210
- repo: git://github.com/timothycrosley/isort

run_checks.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
#!/usr/bin/env bash
2+
13
pre-commit run --all-files

0 commit comments

Comments
 (0)