-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyrefly.toml
More file actions
34 lines (27 loc) · 852 Bytes
/
pyrefly.toml
File metadata and controls
34 lines (27 loc) · 852 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
project-includes = ["src"]
project-excludes = ["**/.[!/.]*", "**/tests"]
search-path = [""]
site-package-path = [".venv/lib/python3.12/site-packages"]
python-platform = "linux"
python-version = "3.12"
python-interpreter-path = ".venv/bin/python3.12"
replace-imports-with-any = [
"sympy.*",
"*.series",
]
ignore-errors-in-generated-code = true
# disable `bad-assignment` and `invalid-argument` for the whole project
[errors]
bad-assignment = false
invalid-argument = false
[[sub-config]]
# apply this to `sub/project/tests/file.py`
matches = "sub/project/tests/file.py"
# any unittest imports will by typed as `typing.Any`
replace-imports-with-any = ["unittest.*"]
[[sub-config]]
# apply this config to all files in `sub/project`
matches = "sub/project/**"
# enable `assert-type` errors in `sub/project`
[sub-config.errors]
assert-type = true