File: .pre-commit-config.yaml

package info (click to toggle)
python-inline-snapshot 0.31.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,708 kB
  • sloc: python: 9,261; makefile: 39; sh: 32
file content (103 lines) | stat: -rw-r--r-- 2,112 bytes parent folder | download
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
ci:
  autofix_pr: false
  autoupdate_commit_msg: 'style: pre-commit autoupdate'
  autofix_commit_msg: 'style: pre-commit fixed styling'
  autoupdate_schedule: monthly

repos:
- hooks:
  - id: check-ast
  - id: check-merge-conflict
  - id: trailing-whitespace
  - id: mixed-line-ending
  - id: fix-byte-order-marker
  - id: check-case-conflict
  - id: check-json
  - id: end-of-file-fixer
  repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v5.0.0
- hooks:
  - args:
    - --in-place
    - --expand-star-imports
    - --remove-all-unused-imports
    - --ignore-init-module-imports
    id: autoflake
  repo: https://github.com/myint/autoflake
  rev: v2.3.1

- repo: local
  hooks:
  - id: replace-words
    name: Replace Words
    entry: python3 scripts/replace_words.py
    language: system
    files: \.(md|py)$

- repo: https://github.com/asottile/setup-cfg-fmt
  rev: v2.8.0
  hooks:
  - id: setup-cfg-fmt

- repo: https://github.com/pycqa/isort
  rev: 6.0.1
  hooks:
  - id: isort
    name: isort (python)

- hooks:
  - args:
    - --py38-plus
    id: pyupgrade
  repo: https://github.com/asottile/pyupgrade
  rev: v3.20.0
- hooks:
  - id: black
  repo: https://github.com/psf/black
  rev: 25.1.0
- hooks:
  - id: blacken-docs
    args: [-l80]
  repo: https://github.com/adamchainz/blacken-docs
  rev: 1.19.1


- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
  rev: v2.15.0
  hooks:
  - id: pretty-format-yaml
    args: [--autofix, --indent, '2']

- hooks:
  - id: commitizen
    stages:
    - commit-msg
  repo: https://github.com/commitizen-tools/commitizen
  rev: v4.8.3


# - repo: https://github.com/PyCQA/docformatter
#   rev: v1.7.5
#   hooks:
#   - id: docformatter

- repo: https://github.com/abravalheri/validate-pyproject
  rev: v0.24.1
  hooks:
  - id: validate-pyproject

- repo: https://github.com/henryiii/validate-pyproject-schema-store
  rev: 2025.04.28
  hooks:
  - id: validate-pyproject


- repo: https://github.com/rhysd/actionlint
  rev: v1.7.7
  hooks:
  - id: actionlint

- repo: https://github.com/crate-ci/typos
  rev: v1
  hooks:
  - id: typos