haystack

Форк
0
/
.pre-commit-config.yaml 
43 строки · 1.3 Кб
1
fail_fast: true
2

3
repos:
4
- repo: https://github.com/pre-commit/pre-commit-hooks
5
  rev: v4.4.0
6
  hooks:
7
    - id: check-ast   # checks Python syntax
8
    - id: check-json  # checks JSON syntax
9
    - id: check-merge-conflict  # checks for no merge conflict strings
10
    - id: check-shebang-scripts-are-executable  # checks all shell scripts have executable permissions
11
    - id: check-toml  # checks TOML syntax
12
    - id: check-yaml  # checks YAML syntax
13
    - id: end-of-file-fixer  # checks there is a newline at the end of the file  # FIXME: pydoc-markdown conflicts with this
14
    - id: mixed-line-ending  # normalizes line endings
15
    - id: no-commit-to-branch  # prevents committing to main
16
    - id: trailing-whitespace  # trims trailing whitespace
17
      args: [--markdown-linebreak-ext=md]
18

19
- repo: https://github.com/psf/black
20
  rev: 23.9.1
21
  hooks:
22
  - id: black-jupyter
23

24
- repo: https://github.com/astral-sh/ruff-pre-commit
25
  rev: v0.0.290
26
  hooks:
27
  - id: ruff
28
    args: [--fix, --exit-non-zero-on-fix]
29

30
- repo: https://github.com/codespell-project/codespell
31
  rev: v2.2.5
32
  hooks:
33
  - id: codespell
34
    additional_dependencies:
35
      - tomli
36

37
- repo: https://github.com/rhysd/actionlint
38
  rev: v1.6.25
39
  hooks:
40
  - id: actionlint-docker
41
    args: ["-ignore", "SC2102"]
42

43
# TODO we can make pylint run at this stage too, once their execution gets normalized
44

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

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

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

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