-
Notifications
You must be signed in to change notification settings - Fork 61
/
.pre-commit-config.yaml
57 lines (57 loc) · 1.68 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
46
47
48
49
50
51
52
53
54
55
56
57
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
name: Trim trailing whitespace
- id: end-of-file-fixer
name: Fix end of files
- id: check-toml
name: Check toml syntax
- id: check-yaml
name: Check yaml syntax
- id: check-added-large-files
- id: check-merge-conflict
args: [--assume-in-merge]
exclude: api.rst
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
hooks:
- id: black
name: Format with black
- repo: https://github.com/PyCQA/isort
rev: 5.13.0
hooks:
- id: isort
name: Order imports with isort
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
name: Lint with flake8
additional_dependencies: [flake8-bugbear, flake8-comprehensions, flake8-quotes, pep8-naming]
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
name: Check docstring style with pydocstyle
exclude: tests
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
name: Check types with mypy
additional_dependencies: [types-PyYAML, types-toml]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.376
hooks:
- id: pyright
name: Check types with pyright
additional_dependencies: [jax_dataclasses, hydra-core]
args: ['src/deepqmc']
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
name: Check spelling
args: ['--ignore-words', '.codespellignore']