Add precommit config and dependencies

This commit is contained in:
2021-04-22 16:07:30 -04:00
parent 3cca47da4c
commit cedd73996f
3 changed files with 441 additions and 1 deletions

41
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,41 @@
---
repos:
- repo: local
hooks:
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
language: system
types: [text]
- id: fix-encoding-pragma
name: fix-encoding-pragma
entry: fix-encoding-pragma
args:
- "--remove"
language: system
types: [python]
- id: trailing-whitespace-fixer
name: trailing-whitespace-fixer
entry: trailing-whitespace-fixer
language: system
types: [text]
- id: check-merge-conflict
name: check-merge-conflict
entry: check-merge-conflict
language: system
types: [text]
- id: reorder-python-imports
name: reorder-python-imports
entry: reorder-python-imports
language: system
types: [python]
- id: black
name: black
entry: black
language: system
types: [python]