Repository navigation
Expand file tree
/
Copy pathty.toml
More file actions
54 lines (49 loc) · 1.71 KB
/
Copy pathty.toml
File metadata and controls
54 lines (49 loc) · 1.71 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
[analysis]
respect-type-ignore-comments = false
# These imports are intentionally optional and are also ignored by mypy and pyright.
allowed-unresolved-imports = [
"branca",
"folium",
"pydot",
"pygraphviz.**",
"scipy.**",
"twisted.**",
"xyzservices",
]
[rules]
# Incompatible overrides and deprecations are inherited from the implementation
# and are not actionable in typeshed. Keep in sync with pyrightconfig.json.
deprecated = "ignore"
invalid-attribute-override = "ignore"
invalid-method-override = "ignore"
override-of-final-method = "ignore"
# Some `__init__` self annotations retain class-scoped type variables for mypy
# compatibility (https://github.com/python/typeshed/pull/11780). Disable ty's
# check; Pyright checks the stubs it covers, with targeted ignores where needed.
invalid-init-type-variable = "ignore"
# Several existing annotations conflict with ty's variance checks.
# Ignore these errors temporarily in the affected files until they can be
# handled individually.
[[overrides]]
include = [
"stdlib/_collections_abc.pyi",
"stdlib/builtins.pyi",
"stdlib/email/_policybase.pyi",
"stdlib/email/message.pyi",
"stdlib/functools.pyi",
"stdlib/mailbox.pyi",
"stdlib/types.pyi",
"stdlib/typing.pyi",
"stubs/WebOb/webob/dec.pyi",
"stubs/boltons/boltons/tbutils.pyi",
"stubs/psycopg2/psycopg2/_range.pyi",
"stubs/tensorflow/tensorflow/data/__init__.pyi",
]
[overrides.rules]
invalid-generic-class = "ignore"
# `types.pyi` already has an inline `invalid-generic-class` ignore; suppress
# `unused-ignore-comment` while the rule is ignored for the whole file.
[[overrides]]
include = ["stdlib/types.pyi"]
[overrides.rules]
unused-ignore-comment = "ignore"