-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
43 lines (39 loc) · 1.3 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
40
41
42
43
default_stages: [pre-commit]
repos:
- repo: meta # this repo checks pre-commit itself
hooks:
- id: check-hooks-apply # configured hooks apply to at least one file
- id: check-useless-excludes # ensures exclude directives apply to at least one file
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict # check for case conflicts on case-insensitive filesystems
- id: check-merge-conflict
- id: check-vcs-permalinks # version control system permalinks
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.5
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]
# - repo: local
# hooks:
# - id: pytest
# name: pytest
# entry: bash -c "source $CONDA_PREFIX_1/etc/profile.d/conda.sh && conda activate PyAmpTools && pytest -v"
# language: system
# types: [python]
# fail_fast: true
# stages: [pre-push]