pyproject.toml: update to newer syntax

We've been using `uv 0.4` syntax, but we only support `uv` 0.5.1+. The
newer `uv 0.5` syntax follows an approved PEP, and the older syntax will
probably be removed at some point.

I also updated a few comments.
This commit is contained in:
Ilya Grigoriev 2025-02-03 18:16:21 -08:00
parent 0bcddff473
commit e5d126fba4

View file

@ -1,4 +1,4 @@
# The `dev-dependencies` section sets up tools for building `jj` # The `dev` dependency group sets up tools for building `jj`
# documentation. `uv` will install these in a virtual environment. # documentation. `uv` will install these in a virtual environment.
[project] [project]
@ -8,10 +8,9 @@ requires-python = ">=3.9"
version = "0.1.0" version = "0.1.0"
dependencies = [] dependencies = []
[tool.uv] [dependency-groups]
package = false
# These can be updated with `uv add --dev`. # These can be updated with `uv add --dev`.
dev-dependencies = [ dev = [
"mkdocs<1.7,>=1.6", "mkdocs<1.7,>=1.6",
# Pin mkdocs-material to the exact version b/c it sometimes breaks thing # Pin mkdocs-material to the exact version b/c it sometimes breaks thing
"mkdocs-material==9.5.39", "mkdocs-material==9.5.39",
@ -24,9 +23,14 @@ dev-dependencies = [
"mkdocs-redirects<2.0.0,>=1.2.1", "mkdocs-redirects<2.0.0,>=1.2.1",
# Used for the CLI reference # Used for the CLI reference
"mkdocs-include-markdown-plugin<7.0.0,>=6.0.4", "mkdocs-include-markdown-plugin<7.0.0,>=6.0.4",
# Unrelated to docs
"codespell[toml]>=2.4.0", "codespell[toml]>=2.4.0",
] ]
[tool.uv]
package = false
[tool.codespell] [tool.codespell]
check-filenames=true check-filenames=true
check-hidden=true check-hidden=true