mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-06-26 22:00:13 +00:00

* Fix linting * Fix linting * Update error suppression * Update pre commit * Update pyproject.toml
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
fail_fast: true
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
- id: check-ast # checks Python syntax
|
|
- id: check-json # checks JSON syntax
|
|
- id: check-merge-conflict # checks for no merge conflict strings
|
|
- id: check-shebang-scripts-are-executable # checks all shell scripts have executable permissions
|
|
- id: check-toml # checks TOML syntax
|
|
- id: check-yaml # checks YAML syntax
|
|
- id: end-of-file-fixer # checks there is a newline at the end of the file
|
|
- id: mixed-line-ending # normalizes line endings
|
|
- id: no-commit-to-branch # prevents committing to main
|
|
- id: trailing-whitespace # trims trailing whitespace
|
|
args: [--markdown-linebreak-ext=md]
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.12.0
|
|
hooks:
|
|
- id: ruff-check
|
|
args: [ --fix ]
|
|
- id: ruff-format
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.3.0
|
|
hooks:
|
|
- id: codespell
|
|
exclude: "haystack/data/abbreviations"
|
|
args: ["--toml", "pyproject.toml"]
|
|
additional_dependencies:
|
|
- tomli
|
|
|
|
- repo: https://github.com/rhysd/actionlint
|
|
rev: v1.7.1
|
|
hooks:
|
|
- id: actionlint-docker
|
|
args: ["-ignore", "SC2102"]
|