-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.34 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
# 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]
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ['--maxkb=5000']
- id: end-of-file-fixer
- id: check-case-conflict
- id: detect-private-key
- id: check-docstring-first
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.3.0'
hooks:
- id: ruff
- repo: https://github.com/netromdk/vermin
rev: v1.6.0
hooks:
- id: vermin-all
args: ['-t=3.9-', '--no-tips', '--violations', '.']
- 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.6
hooks:
- id: loc-summarize
args: ['.']
pass_filenames: false
verbose: true
- id: check-version
args: ['--dist-dir', 'dist', '--changelog', 'CHANGELOG.md']
pass_filenames: false
verbose: true
# before pushing, require the git tag match the package version
# - id: check-version
# args: ['--check-tag', '--dist-dir', 'dist', '--changelog', 'CHANGELOG.md']
# pass_filenames: false
# verbose: true
# stages: [push]