-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (52 loc) · 1.52 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (52 loc) · 1.52 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
49
50
51
52
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: end-of-file-fixer
types: [python]
- repo: https://github.com/google/yapf
rev: v0.43.0
hooks:
- id: yapf
- repo: local
hooks:
- id: check-licenses
name: Check Licenses
description: Checks that all files have correct copyright licenses
entry: python -m CheckLicensesInFiles
language: python
types: [python]
- repo: local
hooks:
- id: check-release-notes-format
name: Check Release Notes Format
description: Validate release note filename and contents format before commit
entry: python -m CheckReleaseNoteFormat
language: python
files: ^docs/release_notes/next/
additional_dependencies: [requests]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.17.1"
hooks:
- id: mypy
files: ^mantidimaging/
args: [--ignore-missing-imports]
additional_dependencies: [types-docutils, types-PyYAML, types-requests]
- repo: local
hooks:
- id: pyright
name: pyright
description: Checks that all files pass pyright checks
entry: pyright
language: system
types: [python]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.3
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
hooks:
- id: prettier
files: \.(json|ya?ml)$
exclude: ^conda/