xonsh/.pre-commit-config.yaml

40 lines
1 KiB
YAML
Raw Normal View History

2022-07-01 21:17:01 +05:30
default_language_version:
# force all unspecified python hooks to run python3
python: python3.13
2022-07-01 21:17:01 +05:30
#ci:
# autofix_prs: false
2022-07-01 21:17:01 +05:30
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
2023-04-19 18:29:32 +05:30
# Ruff version.
rev: 'v0.8.3'
hooks:
2023-04-19 18:29:32 +05:30
- id: ruff
args: [., --fix, --exit-non-zero-on-fix]
pass_filenames: false
- id: ruff-format
args: ["xonsh", "xontrib", "tests", "xompletions"]
pass_filenames: false
2022-07-01 21:17:01 +05:30
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0' # Use the sha / tag you want to point at
2022-07-01 21:17:01 +05:30
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
2022-07-01 21:17:01 +05:30
exclude: |
(?x)^(
docs/_static/.+
)$
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: check-added-large-files