Skip to content

Commit

Permalink
Add pre-commit formatting and sanitizing
Browse files Browse the repository at this point in the history
  • Loading branch information
emesik committed Nov 30, 2021
1 parent b27ef7b commit 2044a65
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
!.editorconfig
!.gitignore
!.travis.yml
!.pre-commit-config.yaml
*.py[co]
*~
*.bak
Expand Down
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 2044a65

Please sign in to comment.