generated from astropy-learn/tutorial--template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (33 loc) · 1.13 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (33 loc) · 1.13 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
ci:
autoupdate_commit_msg: "chore: update pre-commit hooks"
autofix_commit_msg: "style: pre-commit fixes"
autofix_prs: true
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.13"
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --show-fixes]
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: '.*\.fits$'
- id: end-of-file-fixer
exclude_types: [csv]
exclude: '.*\.fits$'
- id: check-yaml
# prevent addition of (presumably data) files >= 10 MB
# (for such files, see https://learn.astropy.org/contributing/how-to-contribute)
- id: check-added-large-files
args: ["--maxkb=10000"]
- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
hooks:
- id: nbstripout
args: ["--extra-keys=metadata.kernelspec metadata.language_info.version metadata.toc"]