cookiecutter

Форк
0
/
.pre-commit-config.yaml 
77 строк · 2.1 Кб
1
---
2
repos:
3
  - repo: meta
4
    hooks:
5
      - id: check-hooks-apply
6
      - id: check-useless-excludes
7

8
  - repo: https://github.com/PyCQA/doc8
9
    rev: v1.1.1
10
    hooks:
11
      - id: doc8
12
        name: doc8
13
        description: This hook runs doc8 for linting docs.
14
        entry: python -m doc8
15
        language: python
16
        files: \.rst$
17
        require_serial: true
18

19
  - repo: https://github.com/pre-commit/pre-commit-hooks
20
    rev: v4.5.0
21
    hooks:
22
      - id: trailing-whitespace
23
      - id: mixed-line-ending
24
        name: "Enforce LF newlines on most files"
25
        args:
26
          - "--fix=lf"
27
        # Exclude files with "crlf" in their names.
28
        exclude: "crlf"
29
      - id: mixed-line-ending
30
        name: "Enforce CRLF newlines on files named '*crlf*'"
31
        args:
32
          - "--fix=crlf"
33
        files: "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
43
        args:
44
          - "--autofix"
45
          - "--indent=2"
46
          - "--no-sort-keys"
47
          - "--no-ensure-ascii"
48
        exclude: "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
52
        exclude: "not_rendered.yml|invalid-config.yaml|invalid-config-w-multiple-docs.yaml"
53

54
  - repo: https://github.com/mgedmin/check-manifest
55
    rev: "0.49"
56
    hooks:
57
      - id: check-manifest
58

59
  - repo: https://github.com/astral-sh/ruff-pre-commit
60
    rev: v0.3.5
61
    hooks:
62
      - id: ruff
63
        args: [--fix]
64
      - id: ruff-format
65

66
  - repo: https://github.com/pre-commit/mirrors-mypy
67
    rev: "v1.9.0"
68
    hooks:
69
      - id: mypy
70
        additional_dependencies:
71
          - rich
72
          - jinja2
73
          - click
74
          - types-python-slugify
75
          - types-PyYAML
76
          - types-requests
77
        pass_filenames: false
78

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.