Add basic python environment and precommit

This commit is contained in:
2024-02-27 22:40:17 -05:00
parent 780ccb4d51
commit 30200f082e
3 changed files with 1095 additions and 0 deletions

47
.pre-commit-config.yaml Normal file
View 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