Skip to content

Commit 8bc9a65

Browse files
authored
Allow uv run to be used without --no-project (#13599)
1 parent f6e99d2 commit 8bc9a65

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ analyze.py
6868
# Mypy cache
6969
.mypy_cache/
7070

71-
# pyenv local python version
71+
# pyenv and uv local python version
7272
.python-version
73+
# we don't use uv's lock as we're not actually a project
74+
uv.lock
7375

7476
# deliberately local test configuration files
7577
stdlib/@tests/stubtest_allowlists/*.local

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
[project]
2+
# This section is needed to avoid writing --no-project everytime when using "uv run"
3+
# https://github.com/astral-sh/uv/issues/8666
4+
name = "typeshed"
5+
version = "0"
6+
requires-python = ">=3.9" # Minimum version to run tests, used by uv run
7+
18
[tool.black]
29
line-length = 130
310
target-version = ["py310"]

0 commit comments

Comments
 (0)