123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- exclude: ^data/.*$
- ci:
- autoupdate_commit_msg: "build(pre-commit): update hooks"
- autofix_commit_msg: "style: pre-commit fixes"
- repos:
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.6.0
- hooks:
- - id: check-added-large-files
- - id: check-case-conflict
- - id: check-docstring-first
- - id: check-executables-have-shebangs
- - id: check-shebang-scripts-are-executable
- - id: check-merge-conflict
- - id: destroyed-symlinks
- - id: check-yaml
- - id: check-toml
- - id: debug-statements
- - id: end-of-file-fixer
- - id: mixed-line-ending
- - id: name-tests-test
- args: [--pytest-test-first]
- - id: requirements-txt-fixer
- - id: detect-private-key
- - id: trailing-whitespace
- - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
- rev: v2.13.0
- hooks:
- - id: pretty-format-ini
- args: [--autofix]
- - id: pretty-format-toml
- args: [--autofix]
- - repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.5.0
- hooks:
- - id: ruff
- types_or: [python, pyi, jupyter]
- args: [--fix]
- # Run the formatter.
- - id: ruff-format
- types_or: [python, pyi, jupyter]
- - repo: https://github.com/pre-commit/mirrors-prettier
- rev: v4.0.0-alpha.8
- hooks:
- - id: prettier
- files: \.(yaml|yml|md|html|css|scss|js|json)$
- args: [--prose-wrap=preserve]
- - repo: https://github.com/pre-commit/pygrep-hooks
- rev: v1.10.0
- hooks:
- - id: python-use-type-annotations
- - id: rst-backticks
- - id: rst-directive-colons
- - id: rst-inline-touching-normal
- # should be replaced in the future ref https://github.com/astral-sh/ruff/issues/458
- - repo: https://github.com/jsh9/pydoclint
- rev: 0.5.3
- hooks:
- - id: pydoclint
- - repo: https://github.com/codespell-project/codespell
- rev: v2.3.0
- hooks:
- - id: codespell
- additional_dependencies:
- - tomli
- - repo: https://github.com/shellcheck-py/shellcheck-py
- rev: v0.10.0.1
- hooks:
- - id: shellcheck
- args: [-x]
- - repo: https://github.com/commitizen-tools/commitizen
- rev: v3.27.0
- hooks:
- - id: commitizen
|