generated from readthedocs/tutorial-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
36 lines (34 loc) · 1.01 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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
# - id: check-added-large-files
# args: ["--maxkb=5000"]
- id: check-toml
- id: check-json
- id: check-symlinks
- id: debug-statements
- id: detect-private-key
- id: check-yaml
args:
- --unsafe
- id: trailing-whitespace
exclude: \.(fits|pha|arf|rmf)$ # Exclude .fits, .pha, .arf, .rmf files
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.6
hooks:
- id: ruff
args: ["--fix", "--output-format=full"]
exclude: ^docs/|\.(fits|pha|arf|rmf)$ # Exclude docs and .fits, .pha, .arf, .rmf files
- id: ruff-format
exclude: \.(fits|pha|arf|rmf)$ # Exclude .fits, .pha, .arf, .rmf files
# - repo: local
# hooks:
# - id: tests
# name: tests
# language: system
# types: [python]
# pass_filenames: false
# entry: poetry run pytest