-
Notifications
You must be signed in to change notification settings - Fork 370
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (58 loc) · 1.79 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (58 loc) · 1.79 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
exclude: '^(\.github/|\.vscode/).*|CODE_OF_CONDUCT\.md|CHANGELOG\.md'
repos:
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.3.3
hooks:
- id: cspell # Spell check changed files
- id: cspell # Spell check the commit message
name: check commit message spelling
args:
- --no-must-find-files
- --no-progress
- --no-summary
- --files
- .git/COMMIT_EDITMSG
stages: [commit-msg]
always_run: true # This might not be necessary.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--unsafe]
- id: check-added-large-files
- id: check-shebang-scripts-are-executable
- id: check-executables-have-shebangs
# Python: Ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.13
hooks:
# Run the linter
- id: ruff
args: [--fix]
# Run the formatter
- id: ruff-format
# Markdown: Markdownlint
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.47.0
hooks:
- id: markdownlint
args: [--config, .github/linters/.markdownlint.json]
# CSS: Stylelint
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v14.4.0
hooks:
- id: stylelint
args: ["--fix", "**/*.css"]
additional_dependencies:
- stylelint
- stylelint-config-standard
# CSS: Prettier (Formatting)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
name: prettier-css
types: [css] # Only run on CSS files
# If you want it to run on EVERYTHING (JS, JSON, MD), remove the 'types' line.