-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathratchets.toml
More file actions
58 lines (55 loc) · 1.6 KB
/
Copy pathratchets.toml
File metadata and controls
58 lines (55 loc) · 1.6 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
46
47
48
49
50
51
52
53
54
55
56
57
58
# ratchets v2 schema (installed ratchets >= 0.3.1).
#
# v2 is explicit opt-in: a rule fires only when listed in `enabled_ratchets`
# (directly or via a `$set-name`). The list below mirrors `ratchet-counts.toml`
# 1:1 — every rule with a tracked budget is enabled here, preserving the
# enforcement that v1 provided by enabling all built-ins by default.
#
# Rules that were explicitly disabled under v1 (`no-dataclasses-import`,
# `rust-no-todo-comments`) are simply absent from this list, so they stay off.
#
# Migration reference:
# https://github.com/imbue-ai/ratchets/blob/main/docs/upgrade-v1-to-v2.md
enabled_ratchets = [
"no-args-in-docstrings",
"no-asyncio-import",
"no-bare-except",
"no-bare-generic-types",
"no-bare-print",
"no-base-exception",
"no-broad-exception",
"no-builtin-exception-raises",
"no-click-echo",
"no-eval-usage",
"no-exec-usage",
"no-expect",
"no-fixme-comments",
"no-fstring-logging",
"no-global-keyword",
"no-if-elif-without-else",
"no-import-datetime",
"no-init-docstrings",
"no-init-in-non-exception-classes",
"no-inline-functions",
"no-inline-imports",
"no-literal-multi-options",
"no-namedtuple-usage",
"no-num-prefix",
"no-pandas-import",
"no-panic",
"no-relative-imports",
"no-returns-in-docstrings",
"no-time-sleep",
"no-todo-comments",
"no-trailing-comments",
"no-typing-builtin-imports",
"no-underscore-imports",
"no-unwrap",
"no-while-true",
"no-yaml-usage",
]
[ratchets]
version = "2"
languages = ["rust", "python"]
[output]
format = "human"