-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathty.toml
More file actions
40 lines (35 loc) · 1.15 KB
/
ty.toml
File metadata and controls
40 lines (35 loc) · 1.15 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
# ty.toml: ty type checker configuration
# Reference: https://docs.astral.sh/ty/reference/configuration/
[environment]
python-version = "3.14"
# Rules references: https://docs.astral.sh/ty/reference/rules/
# Most rules have a default value already ("error", "warn", "ignore")
# This overwrites some of those rules
[rules]
# Existing rules
invalid-ignore-comment = "error"
possibly-missing-attribute = "error"
possibly-missing-import = "error"
redundant-cast = "error"
undefined-reveal = "error"
unresolved-global = "error"
unsupported-base = "error"
division-by-zero = "error"
possibly-unresolved-reference = "error"
unused-ignore-comment = "error"
# Upgraded from warn → error
ambiguous-protocol-member = "error"
deprecated = "error"
ignore-comment-unknown-rule = "error"
ineffective-final = "error"
invalid-enum-member-annotation = "error"
invalid-legacy-positional-parameter = "error"
mismatched-type-name = "error"
possibly-missing-submodule = "error"
unused-type-ignore-comment = "error"
useless-overload-body = "error"
# Enabled from ignore
unsupported-dynamic-base = "warn"
# Preview rules explicitly enabled
unused-awaitable = "error"
call-abstract-method = "error"