Repository navigation
Expand file tree
/
Copy pathpyrefly.toml
More file actions
103 lines (97 loc) · 2.39 KB
/
Copy pathpyrefly.toml
File metadata and controls
103 lines (97 loc) · 2.39 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Pyrefly 1.0.0 keeps these command behaviors CLI-only:
# - check: --check-all -remove-unused-ignores
# - infer: --containers --return-types --parameter-types --imports
project-includes = ["numberlink"]
project-excludes = [
"**/.pixi",
"**/__pycache__",
"**/.pytest_cache",
"**/.mypy_cache",
"**/.ruff_cache",
"**/*.egg-info",
"**/build",
"**/dist",
"**/.git",
"**/.venv",
"**/node_modules",
"**/bower_components",
"**/logs",
"**/outputs",
"**/checkpoints",
"**/.cache",
"**/.tox",
"**/.eggs",
"**/docs/_*",
"results",
"slurm",
"docs",
"**/outputs/",
"**/tests/",
"**/build/",
"**/docs/",
"**/.git/",
"**/.github/",
"**/__pycache__/",
]
disable-project-excludes-heuristics = true
search-path = ["."]
disable-search-path-heuristics = false
site-package-path = []
python-interpreter-path = ".pixi/envs/dev/bin/python"
python-platform = "linux"
python-version = "3.10.0"
replace-imports-with-any = [
"matplotlib",
"matplotlib.*",
"numpy",
"numpy.*",
"orjson",
"torch",
"torch.*",
]
ignore-missing-imports = []
ignore-errors-in-generated-code = false
enabled-ignores = ["type", "pyrefly"]
disable-type-errors-in-ide = false
infer-with-first-use = false
check-unannotated-defs = true
infer-return-types = "checked"
strict-callable-subtyping = true
spec-compliant-overloads = false
use-ignore-files = true
recursion-depth-limit = 0
recursion-overflow-handler = "break-with-placeholder"
[errors]
bad-argument-count = "error"
bad-argument-type = "error"
bad-index = "error"
bad-assignment = "error"
bad-return = "error"
bad-override = "error"
deprecated = "warn"
implicit-any = "error"
implicit-any-attribute = "error"
implicit-any-empty-container = "error"
implicit-any-parameter = "error"
implicit-any-type-argument = "error"
implicit-import = "error"
invalid-annotation = "error"
missing-argument = "error"
missing-attribute = "error"
missing-import = "error"
missing-module-attribute = "error"
missing-source = "ignore"
missing-source-for-stubs = "ignore"
no-matching-overload = "error"
redundant-cast = "warn"
redundant-condition = "warn"
redefinition = "error"
unexpected-keyword = "error"
unannotated-return = "error"
unbound-name = "error"
unnecessary-comparison = "warn"
unreachable = "warn"
unknown-name = "error"
untyped-import = "ignore"
unused-coroutine = "error"
unused-ignore = "error"