Skip to content

Commit

Permalink
chore: clean pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed Feb 4, 2024
1 parent b6f6fb1 commit 65994d9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files # Prevent giant files from being committed
args: ['--maxkb=1500']
- id: fix-byte-order-marker # Prevents weird UTF-8 encoding edge cases
- id: check-case-conflict # Check if case-insensitive filesystems would bork
- id: check-docstring-first # Check for if docstring was misplaced
Expand Down Expand Up @@ -30,16 +32,16 @@ repos:
exclude: '^addons/gd-plug/'
- repo: local
hooks:
- id: lower-case-only
name: lower case only
- id: check-filenames-are-lowercase
name: check that filenames are lowercase
entry: filenames must be lower-case or lower_case only
language: fail
files: '[^a-z0-9._/-]'
exclude: |
(?x)^(
.godot/|
.reuse/|
addons/|
addons/gd-plug/|
CHANGELOG.md|
CONTRIBUTING.md|
CREDITS.md|
Expand All @@ -49,13 +51,13 @@ repos:
public/|
README.md
)
- id: check-shaders
name: check shaders
- id: format-shaders
name: format shaders
entry: clang-format
args:
- --style=llvm
- -Werror
- -i
language: system
files: \.gdshader$
exclude: ^addons/
exclude: ^addons/gd-plug/

0 comments on commit 65994d9

Please sign in to comment.