haystack
/
.pre-commit-config.yaml
43 строки · 1.3 Кб
1fail_fast: true2
3repos:4- repo: https://github.com/pre-commit/pre-commit-hooks5rev: v4.4.06hooks:7- id: check-ast # checks Python syntax8- id: check-json # checks JSON syntax9- id: check-merge-conflict # checks for no merge conflict strings10- id: check-shebang-scripts-are-executable # checks all shell scripts have executable permissions11- id: check-toml # checks TOML syntax12- id: check-yaml # checks YAML syntax13- id: end-of-file-fixer # checks there is a newline at the end of the file # FIXME: pydoc-markdown conflicts with this14- id: mixed-line-ending # normalizes line endings15- id: no-commit-to-branch # prevents committing to main16- id: trailing-whitespace # trims trailing whitespace17args: [--markdown-linebreak-ext=md]18
19- repo: https://github.com/psf/black20rev: 23.9.121hooks:22- id: black-jupyter23
24- repo: https://github.com/astral-sh/ruff-pre-commit25rev: v0.0.29026hooks:27- id: ruff28args: [--fix, --exit-non-zero-on-fix]29
30- repo: https://github.com/codespell-project/codespell31rev: v2.2.532hooks:33- id: codespell34additional_dependencies:35- tomli36
37- repo: https://github.com/rhysd/actionlint38rev: v1.6.2539hooks:40- id: actionlint-docker41args: ["-ignore", "SC2102"]42
43# TODO we can make pylint run at this stage too, once their execution gets normalized
44