-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (48 loc) · 1.54 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (48 loc) · 1.54 KB
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
40
41
42
43
44
45
46
47
48
repos:
# - repo: https://github.com/PyCQA/docformatter
# rev: 7798699c0a9ddcc41a16b4dd7b8e216443f78792
# hooks:
# - id: docformatter
# args: ["-r", "--in-place", "--pre-summary-newline", "--make-summary-multi", "--black"]
# This should be before any formatting hooks like isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.14.14"
hooks:
- id: ruff-check
args: ["--fix", "--unsafe-fixes"]
- id: ruff-format
- repo: https://github.com/PyCQA/isort
rev: 7.0.0
hooks:
- id: isort
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|irispy/extern)$"
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.11.1
hooks:
- id: pyproject-fmt
- repo: https://github.com/tox-dev/tox-toml-fmt
rev: v1.2.1
hooks:
- id: tox-toml-fmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: trailing-whitespace
- id: check-yaml
- id: debug-statements
- id: check-added-large-files
args: ["--enforce-all", "--maxkb=5682"]
- id: end-of-file-fixer
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|.json)$|^CITATION.rst$"
- id: mixed-line-ending
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*)$"
# See https://github.com/python-trio/trio/pull/3255
- repo: https://github.com/adhtruong/mirrors-typos
rev: v1.43.5
hooks:
- id: typos
ci:
autofix_prs: false
autoupdate_schedule: "quarterly"