Skip to content

Commit 98f47c0

Browse files
committed
feat: replace most of the remote precommit hooks with the same local format that cookiecutter-hypermodern-python used
1 parent 74f17a7 commit 98f47c0

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

{{cookiecutter.project_name}}/.pre-commit-config.yaml

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,53 @@
33
default_stages: [pre-commit]
44

55
repos:
6-
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v5.0.0
6+
- repo: local
87
hooks:
98
- id: check-added-large-files
10-
args: ["--maxkb=2000"]
11-
- id: check-yaml
9+
name: Check for added large files
10+
entry: check-added-large-files
11+
language: system
1212
- id: check-toml
13+
name: Check Toml
14+
entry: check-toml
15+
language: system
16+
types: [toml]
17+
- id: check-yaml
18+
name: Check Yaml
19+
entry: check-yaml
20+
language: system
21+
types: [yaml]
22+
- id: darglint
23+
name: darglint
24+
entry: darglint
25+
language: system
26+
types: [python]
27+
stages: [manual]
1328
- id: end-of-file-fixer
29+
name: Fix End of Files
30+
entry: end-of-file-fixer
31+
language: system
32+
types: [text]
33+
stages: [commit, push, manual]
34+
- id: ruff-lint
35+
name: Ruff Lint
36+
entry: ruff check
37+
language: system
38+
types: [python]
39+
require_serial: true
40+
args: [--fix]
41+
- id: ruff-format
42+
name: Ruff Format
43+
entry: ruff format
44+
language: system
45+
types: [python]
46+
require_serial: true
1447
- id: trailing-whitespace
48+
name: Trim Trailing Whitespace
49+
entry: trailing-whitespace-fixer
50+
language: system
51+
types: [text]
52+
stages: [commit, push, manual]
1553

1654
- repo: https://github.com/astral-sh/ruff-pre-commit
1755
rev: v0.11.11

0 commit comments

Comments
 (0)