-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathprecious.toml
More file actions
42 lines (41 loc) · 939 Bytes
/
precious.toml
File metadata and controls
42 lines (41 loc) · 939 Bytes
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
[commands."common.EOF"]
type = "tidy"
include = ["*"]
exclude = ["*.png"]
cmd = ["end-of-file-fixer"]
ok_exit_codes = [0, 1]
[commands."common.whitespace"]
type = "tidy"
include = ["*"]
exclude = ["*.png"]
cmd = ["trailing-whitespace-fixer", "--markdown-linebreak-ext=md"]
ok_exit_codes = [0, 1]
[commands."common.large-files"]
type = "lint"
include = ["*"]
cmd = ["check-added-large-files"]
ok_exit_codes = [0]
[commands."common.case"]
type = "lint"
include = ["*"]
cmd = ["check-case-conflict"]
ok_exit_codes = [0]
[commands."ruff.lint"]
type = "both"
include = ["*.py"]
cmd = ["ruff", "check", "--quiet"]
tidy_flags = ["--fix-only"]
ok_exit_codes = [0]
[commands."ruff.format"]
type = "both"
include = ["*.py"]
cmd = ["ruff", "format", "--quiet"]
lint_flags = ["--diff"]
ok_exit_codes = [0]
[commands.mypy]
type = "lint"
include = ["*.py"]
invoke = "once"
path_args = "none"
cmd = ["mypy", "src/ldlite/", "tests/"]
ok_exit_codes = [0]