aiohttp

Форк
0
/
.pre-commit-config.yaml 
126 строк · 2.9 Кб
1
repos:
2
- repo: local
3
  hooks:
4
  - id: changelogs-rst
5
    name: changelog filenames
6
    language: fail
7
    entry: >-
8
      Changelog files must be named
9
      ####.(
10
      bugfix
11
      | feature
12
      | deprecation
13
      | breaking
14
      | doc
15
      | packaging
16
      | contrib
17
      | misc
18
      )(.#)?(.rst)?
19
    exclude: >-
20
      (?x)
21
      ^
22
        CHANGES/(
23
          \.gitignore
24
          |(\d+|[0-9a-f]{8}|[0-9a-f]{7}|[0-9a-f]{40})\.(
25
            bugfix
26
            |feature
27
            |deprecation
28
            |breaking
29
            |doc
30
            |packaging
31
            |contrib
32
            |misc
33
          )(\.\d+)?(\.rst)?
34
          |README\.rst
35
          |\.TEMPLATE\.rst
36
        )
37
      $
38
    files: ^CHANGES/
39
  - id: changelogs-user-role
40
    name: Changelog files should use a non-broken :user:`name` role
41
    language: pygrep
42
    entry: :user:([^`]+`?|`[^`]+[\s,])
43
    pass_filenames: true
44
    types: [file, rst]
45
  - id: check-changes
46
    name: Check CHANGES
47
    language: system
48
    entry: ./tools/check_changes.py
49
    pass_filenames: false
50
- repo: https://github.com/pre-commit/pre-commit-hooks
51
  rev: 'v4.6.0'
52
  hooks:
53
  - id: check-merge-conflict
54
- repo: https://github.com/asottile/yesqa
55
  rev: v1.5.0
56
  hooks:
57
  - id: yesqa
58
- repo: https://github.com/PyCQA/isort
59
  rev: '5.13.2'
60
  hooks:
61
  - id: isort
62
- repo: https://github.com/psf/black
63
  rev: '24.8.0'
64
  hooks:
65
    - id: black
66
      language_version: python3 # Should be a command that runs python
67
- repo: https://github.com/pre-commit/pre-commit-hooks
68
  rev: 'v4.6.0'
69
  hooks:
70
  - id: end-of-file-fixer
71
    exclude: >-
72
      ^docs/[^/]*\.svg$
73
  - id: requirements-txt-fixer
74
    files: requirements/.*\.in$
75
  - id: trailing-whitespace
76
  - id: file-contents-sorter
77
    args: ['--ignore-case']
78
    files: |
79
      CONTRIBUTORS.txt|
80
      docs/spelling_wordlist.txt|
81
      .gitignore|
82
      .gitattributes
83
  - id: check-case-conflict
84
  - id: check-json
85
  - id: check-xml
86
  - id: check-executables-have-shebangs
87
  - id: check-toml
88
  - id: check-yaml
89
  - id: debug-statements
90
  - id: check-added-large-files
91
  - id: check-symlinks
92
  - id: fix-byte-order-marker
93
  - id: fix-encoding-pragma
94
    args: ['--remove']
95
  - id: detect-aws-credentials
96
    args: ['--allow-missing-credentials']
97
  - id: detect-private-key
98
    exclude: ^examples/
99
- repo: https://github.com/asottile/pyupgrade
100
  rev: 'v3.17.0'
101
  hooks:
102
  - id: pyupgrade
103
    args: ['--py37-plus']
104
- repo: https://github.com/PyCQA/flake8
105
  rev: '7.1.1'
106
  hooks:
107
  - id: flake8
108
    additional_dependencies:
109
      - flake8-docstrings==1.6.0
110
      - flake8-no-implicit-concat==0.3.4
111
      - flake8-requirements==1.7.8
112
    exclude: "^docs/"
113
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup
114
  rev: v1.0.1
115
  hooks:
116
  - id: rst-linter
117
    files: >-
118
      ^[^/]+[.]rst$
119
    exclude: >-
120
      ^CHANGES\.rst$
121
- repo: https://github.com/codespell-project/codespell
122
  rev: v2.3.0
123
  hooks:
124
  - id: codespell
125
    additional_dependencies:
126
    - tomli
127

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

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

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

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