Add pre-commit formatting and sanitizing

pull/105/head
Michał Sałaban 2 years ago
parent 6a97bce0b9
commit 983b22e3d3

1
.gitignore vendored

@ -2,6 +2,7 @@
!.editorconfig
!.gitignore
!.travis.yml
!.pre-commit-config.yaml
*.py[co]
*~
*.bak

@ -0,0 +1,18 @@
exclude:
^(build/|dist/|docs/|htmlcov/|venv/)
repos:
- repo: https://github.com/psf/black
rev: 21.11b1
hooks:
- id: black
language_version: python3
#- repo: https://github.com/pycqa/isort
# rev: 5.10.1
# hooks:
# - id: isort
# name: isort (python)
#- repo: https://gitlab.com/PyCQA/flake8
# rev: 4.0.1
# hooks:
# - id: flake8
# args: [--max-line-length=127]
Loading…
Cancel
Save