-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (31 loc) · 942 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (31 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Pre-commit configuration for minFM
repos:
# Ruff linter and formatter
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
# Run the linter
- id: ruff
args: [ --fix ]
# Run the formatter
- id: ruff-format
# Additional useful pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
# Check for files that would conflict in case-insensitive filesystems
- id: check-case-conflict
# Check for files that contain merge conflict strings
- id: check-merge-conflict
# Check YAML files for parseable syntax
- id: check-yaml
# Check TOML files for parseable syntax
- id: check-toml
# Ensure that a file is either empty or ends with one newline
- id: end-of-file-fixer
types: [ python ]
# Remove trailing whitespace (including spaces/tabs on blank lines)
- id: trailing-whitespace
types: [ python ]
default_language_version:
python: python3