Skip to content

Commit

Permalink
Pre-commit + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Diaoul committed May 21, 2020
1 parent 5180ace commit 039716d
Show file tree
Hide file tree
Showing 26 changed files with 3,150 additions and 1,734 deletions.
7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
max-line-length = 88
extend-ignore = E203
per-file-ignores = __init__.py:F401
exclude =
docs/*
migrations/*
6 changes: 6 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[settings]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
repos:
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
# language_version: python3.7

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
hooks:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
Loading

0 comments on commit 039716d

Please sign in to comment.