Add basic python environment and precommit
This commit is contained in:
47
.pre-commit-config.yaml
Normal file
47
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
---
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: end-of-file-fixer
|
||||
name: Fix whitespace at EOF
|
||||
entry: end-of-file-fixer
|
||||
language: system
|
||||
types:
|
||||
- text
|
||||
|
||||
- id: trailing-whitespace-fixer
|
||||
name: Fix trailing line whitespace
|
||||
entry: trailing-whitespace-fixer
|
||||
language: system
|
||||
types:
|
||||
- text
|
||||
|
||||
- id: black
|
||||
name: Enforce python formatting
|
||||
entry: black
|
||||
language: system
|
||||
types:
|
||||
- python
|
||||
|
||||
- id: check-toml
|
||||
name: Check TOML file syntax
|
||||
entry: check-toml
|
||||
language: system
|
||||
types:
|
||||
- toml
|
||||
|
||||
- id: check-yaml
|
||||
name: Check YAML file syntax
|
||||
entry: check-yaml
|
||||
language: system
|
||||
args:
|
||||
- "--unsafe"
|
||||
types:
|
||||
- yaml
|
||||
|
||||
- id: check-merge-conflict
|
||||
name: Check for unresolved git conflicts
|
||||
entry: check-merge-conflict
|
||||
language: system
|
||||
types:
|
||||
- text
|
||||
Reference in New Issue
Block a user