Added pre-commit

This commit is contained in:
2021-11-06 00:04:57 +01:00
parent f8e72443f4
commit 66b8ff5f90
13 changed files with 275 additions and 69 deletions
+17
View File
@@ -0,0 +1,17 @@
default_language_version:
python: python3.8
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.6.0
hooks:
- id: reorder-python-imports