2022-07-01 21:17:01 +05:30
|
|
|
default_language_version:
|
|
|
|
# force all unspecified python hooks to run python3
|
2024-12-12 15:00:26 +07:00
|
|
|
python: python3.13
|
2022-07-01 21:17:01 +05:30
|
|
|
|
2024-04-15 17:40:17 +05:30
|
|
|
#ci:
|
|
|
|
# autofix_prs: false
|
2022-07-01 21:17:01 +05:30
|
|
|
|
2019-07-13 14:46:47 -05:00
|
|
|
repos:
|
2023-07-12 01:10:01 +06:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2023-04-19 18:29:32 +05:30
|
|
|
# Ruff version.
|
2024-12-18 19:22:20 +05:30
|
|
|
rev: 'v0.8.3'
|
2019-07-13 14:46:47 -05:00
|
|
|
hooks:
|
2023-04-19 18:29:32 +05:30
|
|
|
- id: ruff
|
|
|
|
args: [., --fix, --exit-non-zero-on-fix]
|
2021-05-27 01:45:34 +05:30
|
|
|
pass_filenames: false
|
2024-04-15 17:40:17 +05:30
|
|
|
- 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
|
2024-12-08 14:07:36 +00:00
|
|
|
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
|
2021-05-27 01:45:34 +05:30
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-10-07 22:40:38 +02:00
|
|
|
rev: v5.0.0
|
2021-05-27 01:45:34 +05:30
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
2022-07-01 21:17:01 +05:30
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
docs/_static/.+
|
|
|
|
)$
|
2021-05-27 01:45:34 +05:30
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-added-large-files
|