-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
49 lines (47 loc) · 1.43 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
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.6.4'
hooks:
- id: ruff
files: ^src/.*\.py$
exclude: gen/|\.git|\.hg|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist
args:
- --fix
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
name: Check for typos in code
additional_dependencies: [tomli]
exclude: docs/docs/changelog/changelog.md
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
files: ^(src/)
exclude: tests|conftest.py
args: ['--config-file=./pyproject.toml']
additional_dependencies:
- types-PyYAML
- pydantic
- numpy
- types-requests
- pandas-stubs
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.17.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/econchick/interrogate
rev: 1.7.0
hooks:
- id: interrogate
exclude: tests|neqsim|fixtures|conftest
- repo: https://github.com/trufflesecurity/trufflehog
rev: v3.81.10
hooks:
- id: trufflehog
stages: ["pre-commit"]
entry: trufflehog git file://. --since-commit HEAD --fail -x .trufflehogignore