gridfinity-rebuilt-openscad/.pre-commit-config.yaml

25 lines
631 B
YAML
Raw Normal View History

2023-09-22 06:10:38 +00:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
2023-09-22 06:10:38 +00:00
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: fix-byte-order-marker
2023-09-22 06:10:38 +00:00
- 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]