-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
46 lines (46 loc) · 1.39 KB
/
.pre-commit-config.yaml
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: [commit-msg, pre-commit, pre-push]
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ['--maxkb=5000']
- id: end-of-file-fixer
exclude: fancy_dataclass/docs/.*
- id: check-case-conflict
- id: detect-private-key
- id: check-docstring-first
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.8.3
hooks:
- id: ruff
- repo: https://github.com/netromdk/vermin
rev: v1.6.0
hooks:
- id: vermin-all
args: ['.']
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.25.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/jeremander/gadzooks
rev: v0.2.8
hooks:
- id: build-docs
# args: ['--src-docs', 'docs', '--', 'mkdocs', 'build', '--strict', '--no-directory-urls', '-d', 'fancy_dataclass/docs']
args: ['--src-docs', 'docs', '--check-only']
pass_filenames: false
verbose: true
- id: loc-summarize
args: ['fancy_dataclass/*.py']
pass_filenames: false
verbose: true
- id: check-version
args: ['--dist-dir', 'dist', '--changelog', 'docs/CHANGELOG.md']
pass_filenames: false
verbose: true
stages: [pre-commit]