-
Notifications
You must be signed in to change notification settings - Fork 17
/
.pre-commit-config.yaml
38 lines (37 loc) · 1.21 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more git_hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: .(tsv|csv|json)$
- id: check-ast
- id: debug-statements
- repo: https://github.com/compilerla/conventional-pre-commit
rev: 'v3.1.0'
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/ikamensh/flynt/
rev: '1.0.1'
hooks:
- id: flynt
- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black
args: [--line-length=100]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.1.14'
hooks:
- id: ruff
args: [--line-length=100, --select, "D,E,F,I", --ignore, "D212", --per-file-ignores, "tests/test*.py:D100,tests/test*.py:D101,tests/test*.py:D102,tests/test*.py:D103,rsmtool/utils/constants.py:E501"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.8.0'
hooks:
- id: mypy
args: [--ignore-missing-imports]
additional_dependencies: ["wandb"]
exclude: tests/