cookiecutter
/
.pre-commit-config.yaml
77 строк · 2.1 Кб
1---
2repos:
3- repo: meta
4hooks:
5- id: check-hooks-apply
6- id: check-useless-excludes
7
8- repo: https://github.com/PyCQA/doc8
9rev: v1.1.1
10hooks:
11- id: doc8
12name: doc8
13description: This hook runs doc8 for linting docs.
14entry: python -m doc8
15language: python
16files: \.rst$
17require_serial: true
18
19- repo: https://github.com/pre-commit/pre-commit-hooks
20rev: v4.5.0
21hooks:
22- id: trailing-whitespace
23- id: mixed-line-ending
24name: "Enforce LF newlines on most files"
25args:
26- "--fix=lf"
27# Exclude files with "crlf" in their names.
28exclude: "crlf"
29- id: mixed-line-ending
30name: "Enforce CRLF newlines on files named '*crlf*'"
31args:
32- "--fix=crlf"
33files: "crlf"
34- id: end-of-file-fixer
35- id: fix-byte-order-marker
36- id: check-executables-have-shebangs
37- id: check-shebang-scripts-are-executable
38- id: check-merge-conflict
39- id: check-symlinks
40- id: check-case-conflict
41- id: check-docstring-first
42- id: pretty-format-json
43args:
44- "--autofix"
45- "--indent=2"
46- "--no-sort-keys"
47- "--no-ensure-ascii"
48exclude: "invalid-syntax.json|tests/fake-repo-bad-json/cookiecutter.json|tests/fake-repo/cookiecutter.json"
49- id: check-toml
50- id: check-xml
51- id: check-yaml
52exclude: "not_rendered.yml|invalid-config.yaml|invalid-config-w-multiple-docs.yaml"
53
54- repo: https://github.com/mgedmin/check-manifest
55rev: "0.49"
56hooks:
57- id: check-manifest
58
59- repo: https://github.com/astral-sh/ruff-pre-commit
60rev: v0.3.5
61hooks:
62- id: ruff
63args: [--fix]
64- id: ruff-format
65
66- repo: https://github.com/pre-commit/mirrors-mypy
67rev: "v1.9.0"
68hooks:
69- id: mypy
70additional_dependencies:
71- rich
72- jinja2
73- click
74- types-python-slugify
75- types-PyYAML
76- types-requests
77pass_filenames: false
78