forked from xonsh/xonsh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
39 lines (36 loc) · 1 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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.5.2'
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.10.1' # 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: v4.6.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