Skip to content

Commit f3d5fc1

Browse files
authored
chore(pyproject.toml): add explicit uv config (jxmorris12#206)
1 parent f3a3607 commit f3d5fc1

3 files changed

Lines changed: 69 additions & 54 deletions

File tree

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ To start developing, you can install all the necessary packages in your python e
2323
make install
2424
```
2525

26+
> **Note on dependency management**
27+
>
28+
> This project uses [uv](https://docs.astral.sh/uv/) with two constraints worth knowing:
29+
>
30+
> - **uv version**: a specific version range is required (see `pyproject.toml`). If uv refuses to run, update it with `uv self update`.
31+
> - **Dependency cooldown**: packages published to PyPI less than 7 days ago are ignored during resolution, as a supply chain security measure.
32+
2633
When pushing commits, please use the project naming conventions, which are available in [this guide](https://www.conventionalcommits.org/en/v1.0.0/).
2734
If you haven't respected these conventions, do a rebase before making the pull request.
2835

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ language_tool_python = "language_tool_python.__main__:main"
7272
requires = ["uv_build>=0.11.14,<0.12"]
7373
build-backend = "uv_build"
7474

75+
[tool.uv]
76+
exclude-newer = "7 days"
77+
required-version = ">=0.11.25,<0.12"
78+
7579
[tool.ruff]
7680
line-length = 88
7781
include = ["src/**/*.py", "tests/**/*.py"]

uv.lock

Lines changed: 58 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)