Initial commit
This commit is contained in:
71
.pre-commit-config.yaml
Normal file
71
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,71 @@
|
||||
---
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: end-of-file-fixer
|
||||
name: Enforce end of file format
|
||||
entry: end-of-file-fixer
|
||||
language: system
|
||||
types: [text]
|
||||
|
||||
- id: trailing-whitespace-fixer
|
||||
name: Enforce removal of trailing whitespace
|
||||
entry: trailing-whitespace-fixer
|
||||
language: system
|
||||
types: [text]
|
||||
|
||||
- id: black
|
||||
name: Enforce black formatting for python
|
||||
entry: black
|
||||
language: system
|
||||
types: [python]
|
||||
|
||||
- id: blacken-docs
|
||||
name: Enforce black formatting for python documentation
|
||||
entry: blacken-docs
|
||||
language: system
|
||||
types: [text]
|
||||
|
||||
- id: reorder-python-imports
|
||||
name: Enforce import ordering for python
|
||||
entry: isort
|
||||
args:
|
||||
- --filter-files
|
||||
language: system
|
||||
require_serial: true
|
||||
types: [python]
|
||||
|
||||
- id: mdformat
|
||||
name: Enforce mdformat formatting for markdown
|
||||
entry: mdformat
|
||||
language: system
|
||||
args:
|
||||
- "--number"
|
||||
- "--wrap=90"
|
||||
types: [markdown]
|
||||
|
||||
- id: check-toml
|
||||
name: Check for valid TOML file syntax
|
||||
entry: check-toml
|
||||
language: system
|
||||
types: [toml]
|
||||
|
||||
- id: check-json
|
||||
name: Check for valid JSON file syntax
|
||||
entry: check-json
|
||||
language: system
|
||||
types: [json]
|
||||
|
||||
- id: check-yaml
|
||||
name: Check for valid YAML file syntax
|
||||
entry: check-yaml
|
||||
args:
|
||||
- "--unsafe"
|
||||
language: system
|
||||
types: [yaml]
|
||||
|
||||
- id: check-merge-conflict
|
||||
name: Check for unresolved merge conflicts
|
||||
entry: check-merge-conflict
|
||||
language: system
|
||||
types: [text]
|
||||
Reference in New Issue
Block a user