-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (45 loc) · 1.51 KB
/
.pre-commit-config.yaml
File metadata and controls
45 lines (45 loc) · 1.51 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
- id: detect-private-key
- id: end-of-file-fixer
exclude: ^requirements(-dev)?\.txt$
- id: requirements-txt-fixer
exclude: ^requirements(-dev)?\.txt$
- id: trailing-whitespace
exclude: ^tests/.*data/.*$
- id: name-tests-test
args: [--pytest-test-first]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.12.7
hooks:
# Run the linter.
- id: ruff
args:
[
"--fix",
"--select=ALL",
"--ignore=RUF100,BLE001,COM812,ISC001,D100,D104,D105,D107,D205,D211,D212,E203,E266,ANN204,ANN401,S104,S602,ERA001,PGH003,PLR0913,TRY400,N803,N805,N815,UP046,FBT001,FBT002",
"--line-length=100",
]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/PyCQA/pylint
rev: v3.3.7
hooks:
- id: pylint
args:
- "--rcfile=pylintrc"
# run pylint across multiple cpu cores to speed it up-
# https://pylint.pycqa.org/en/latest/user_guide/run.html?#parallel-execution to know more
- "--jobs=0"
- "--fail-under=9.0" # minimum score to pass pylint