-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
38 lines (37 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
37
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.40.2
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: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.8.0'
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