-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
45 lines (41 loc) · 1.23 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
exclude: ^((tests/(.*/)?snapshots/.*)|(.*)/qcreport/template.html)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
exclude: "^(conda-recipe)/(.*)$"
- id: end-of-file-fixer
exclude: "^(tests/report/assets/(.*))$"
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.6.1"
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.1" # Use the sha / tag you want to point at
hooks:
- id: mypy
exclude: "(^cue.mod/)|(^docs/)"
additional_dependencies:
- numpy
- types-requests
- types-setuptools
- lxml-stubs
- types-Pygments
- types-annoy
- types-colorama
- types-psutil
- types-pywin32
- repo: local
hooks:
- id: copyright-checker
name: Copyright notice checker
description: Checks that there is a copyright header in all files
entry: ./utils/check_copyright.py
language: python
pass_filenames: true
types: [file, python]
exclude: "^(docs)/(.*)$"