xonsh/.pre-commit-config.yaml
pre-commit-ci[bot] 5be2fa0a1e
[pre-commit.ci] pre-commit autoupdate (#5712)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.8.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.9...v0.8.1)
- [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.13.0)

* chore: ignore UP031

* chore: ignore mypy error

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Noortheen Raja <jnoortheen@gmail.com>
2024-12-08 14:07:36 +00:00

39 lines
1 KiB
YAML

default_language_version:
# force all unspecified python hooks to run python3
python: python3.10
#ci:
# autofix_prs: false
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.8.1'
hooks:
- id: ruff
args: [., --fix, --exit-non-zero-on-fix]
pass_filenames: false
- id: ruff-format
args: ["xonsh", "xontrib", "tests", "xompletions"]
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0' # Use the sha / tag you want to point at
hooks:
- id: mypy
pass_filenames: false
additional_dependencies:
- types-ujson
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)^(
docs/_static/.+
)$
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: check-added-large-files