-
-
Notifications
You must be signed in to change notification settings - Fork 314
/
.pre-commit-config.yaml
43 lines (38 loc) · 1.17 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
exclude: ^tests/cassettes/
- id: end-of-file-fixer
- repo: https://github.com/crate-ci/typos
rev: typos-dict-v0.11.35
hooks:
- id: typos
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
- id: ruff-format
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.23
hooks:
- id: validate-pyproject
name: validate-pyproject
- repo: https://github.com/PyCQA/doc8
rev: v1.1.2
hooks:
- id: doc8
description: This hook runs doc8 for linting docs
require_serial: true
- repo: local
hooks:
- id: changelog-fragment-filenames
name: changelog fragment
language: fail
entry: changelog fragment files must be named *.(breaking|change|provider|refiner|deprecation|doc|misc).rst
exclude:
^changelog.d/(\..*|towncrier_template.rst|.*\.(breaking|change|provider|refiner|deprecation|doc|misc).rst)
files: ^changelog.d/