Skip to content

Commit 7957429

Browse files
authored
Add initial Pyrefly configuration file (#13579)
1 parent cffaf3d commit 7957429

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ translations = [
158158
]
159159
types = [
160160
"mypy==1.15.0",
161+
"pyrefly",
161162
"pyright==1.1.400",
162163
{ include-group = "type-stubs" },
163164
]

pyrefly.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Configuration file for Pyrefly_.
2+
# n.b. Pyrefly is early in development.
3+
# Sphinx's current primary/reference type-checker is mypy.
4+
#
5+
# .. _Pyrefly: https://pyrefly.org/en/docs/configuration/
6+
7+
project_includes = [
8+
"doc/conf.py",
9+
"doc/development/tutorials/examples/autodoc_intenum.py",
10+
"doc/development/tutorials/examples/helloworld.py",
11+
"sphinx",
12+
"tests",
13+
"utils",
14+
]
15+
project_excludes = [
16+
"**/tests/roots*",
17+
]
18+
python_version = "3.11"
19+
replace_imports_with_any = [
20+
"imagesize",
21+
"pyximport",
22+
"snowballstemmer",
23+
]
24+
25+
# https://pyrefly.org/en/docs/error-kinds/
26+
[errors]
27+
implicitly-defined-attribute = false # many false positives

0 commit comments

Comments
 (0)