forked from IMAP-Science-Operations-Center/imap_processing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.24 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
44
45
ci:
autofix_prs: false
autoupdate_schedule: 'quarterly'
skip: [poetry-lock]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ['--maxkb=1000']
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: mixed-line-ending
- id: trailing-whitespace
- id: no-commit-to-branch
args: [--branch, main, --branch, dev]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.3.4'
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
files: ^.*\.(py|md|rst|yml)$
- repo: https://github.com/python-poetry/poetry
rev: '1.8.0' # add version here
hooks:
- id: poetry-check
- id: poetry-lock
args: [--no-update]
- repo: https://github.com/numpy/numpydoc
rev: 'v1.7.0'
hooks:
- id: numpydoc-validation
exclude: '^imap_processing/tests/|.*test.*'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.10.0'
hooks:
- id: mypy
exclude: .*(tests|docs).*
additional_dependencies: [ numpy==1.26.4 ]