-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.35 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
repos:
- repo: https://github.com/psf/black
rev: 0a37888e79059018eef9293a724b14da59d3377a
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 848f775476419273bcb928a911170980f0124507
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: requirements-txt-fixer # Sorts entries in requirements.txt
- id: check-ast
- id: check-docstring-first
- id: check-merge-conflict
# - id: double-quote-string-fixer
- id: end-of-file-fixer
- id: name-tests-test
args: [--pytest-test-first]
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
hooks:
- id: mypy
exclude: tests/
- repo: https://github.com/pre-commit/mirrors-isort
rev: '32119baf69e913a72f2e1b1fbe0d56921b670ebb' # Use the revision sha / tag you want to point at
hooks:
- id: isort
- repo: local
hooks:
- id: run-unit-tests
name: Run unit tests
entry: npm run test
language: system
stages: [push]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.183
hooks:
- id: ruff
#- repo: https://github.com/pycqa/pydocstyle
# rev: 4.0.0 # pick a git hash / tag to point to
# hooks:
# - id: pydocstyle
# exclude: tests/