Skip to content

Commit 2ce6778

Browse files
authored
Add initial Ty configuration file (#13843)
1 parent 7988c0c commit 2ce6778

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ types = [
132132
"mypy==1.17.1",
133133
"pyrefly",
134134
"pyright==1.1.400",
135+
"ty",
135136
{ include-group = "type-stubs" },
136137
]
137138
type-stubs = [

ty.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Configuration file for Ty_.
2+
# n.b. Ty is early in development.
3+
# Sphinx's current primary/reference type-checker is mypy.
4+
#
5+
# .. _Ty: https://docs.astral.sh/ty/
6+
7+
[src]
8+
include = [
9+
"doc/conf.py",
10+
"doc/development/tutorials/examples/autodoc_intenum.py",
11+
"doc/development/tutorials/examples/helloworld.py",
12+
"sphinx",
13+
"tests",
14+
"utils",
15+
]
16+
exclude = [
17+
"tests/roots/test-pycode/cp_1251_coded.py", # Not UTF-8
18+
# This panics (2025-08-18; ty 0.0.1-alpha.18).
19+
# See https://github.com/astral-sh/ty/issues/256
20+
"tests/test_config/test_config.py",
21+
]

0 commit comments

Comments
 (0)