gridfinity-rebuilt-openscad/.pre-commit-config.yaml
Arthur Moore 728fff110a Update Github CI and Pre-Commit hooks
* Fixes CI not running.
* Allows markdown files to have hard linebreaks.
* Ads additional checks.
2024-10-13 17:55:30 -04:00

24 lines
631 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-json
- id: check-yaml
#- id: name-tests-test # Ensure's pytest files end in "_test.py
- id: no-commit-to-branch # Prevent accidental commits to main
- repo: local
hooks:
- id: no-stl
name: Forbid STL files
entry: Do not commit STL files.
language: fail
files: \.stl
types: [binary]