Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions patterns/P010-using-uv-and-pyproject-toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Dev-only tools (pytest, ruff, ty) are declared separately from runtime deps. The
[dependency-groups]
dev = [
"pytest>=8.0.0",
"ruff>=0.13",
"ruff>=0.16",
"ty>=0.0.19",
]
# install with: uv sync --group dev
Expand All @@ -114,7 +114,7 @@ dev = [
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"ruff>=0.13",
"ruff>=0.16",
]
# install with: uv sync --extra dev
```
Expand Down Expand Up @@ -213,7 +213,7 @@ requires-python = ">=3.13"
dependencies = [ ... ]

[project.optional-dependencies]
dev = ["pytest>=7", "ruff>=0.13", "ty>=0.0.1"]
dev = ["pytest>=7", "ruff>=0.16", "ty>=0.0.1"]

[tool.setuptools.dynamic]
version = { attr = "hermes_harness_plugin.__version__" }
Expand Down
6 changes: 3 additions & 3 deletions patterns/P011-using-ruff.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ruff is a Python package, so it goes in the dev dependencies — not in `mise.to

```toml title="pyproject.toml"
[project.optional-dependencies]
dev = ["pytest>=7", "ruff>=0.13", "ty>=0.0.1"]
dev = ["pytest>=7", "ruff>=0.16", "ty>=0.0.1"]
```

The exact version is resolved and pinned in the committed `uv.lock` (P010). When the version changes, edit `pyproject.toml` then `uv lock`.
Expand Down Expand Up @@ -115,7 +115,7 @@ Do not create a separate `ruff.toml`. Keep `target-version` in sync with

```toml title="pyproject.toml"
[project.optional-dependencies]
dev = ["pytest>=7", "ruff>=0.13", "ty>=0.0.1"]
dev = ["pytest>=7", "ruff>=0.16", "ty>=0.0.1"]

[tool.ruff]
line-length = 99
Expand All @@ -135,4 +135,4 @@ select = ["E", "F", "I", "UP", "B", "SIM"]
- use `ruff` for linting (`uv run ruff check`)
```

A Hermes Agent plugin. Declares ruff as a dev dep (`ruff>=0.13`, exact pin in `uv.lock`); configures it in `[tool.ruff]` with `line-length = 99` (per-project) and `target-version = "py313"` matching `requires-python = ">=3.13"`; selects a sensible rule set (`E`, `F`, `I`, `UP`, `B`, `SIM`); gates `ruff check .` as its own CI step. The formatter (`ruff format`) is not gated — ruff is used purely as a linter here.
A Hermes Agent plugin. Declares ruff as a dev dep (`ruff>=0.16`, exact pin in `uv.lock`); configures it in `[tool.ruff]` with `line-length = 99` (per-project) and `target-version = "py313"` matching `requires-python = ">=3.13"`; selects a sensible rule set (`E`, `F`, `I`, `UP`, `B`, `SIM`); gates `ruff check .` as its own CI step. The formatter (`ruff format`) is not gated — ruff is used purely as a linter here.
4 changes: 2 additions & 2 deletions patterns/P012-using-ty.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ty is a Python package, so it goes in the dev dependencies alongside ruff (P011)

```toml title="pyproject.toml"
[project.optional-dependencies]
dev = ["pytest>=7", "ruff>=0.13", "ty>=0.0.1"]
dev = ["pytest>=7", "ruff>=0.16", "ty>=0.0.1"]
```

ty is young (0.0.x). The exact version is resolved and pinned in the committed `uv.lock` (P010). When the version changes, edit `pyproject.toml` then `uv lock`.
Expand Down Expand Up @@ -98,7 +98,7 @@ not the whole repo.

```toml title="pyproject.toml"
[project.optional-dependencies]
dev = ["pytest>=7", "ruff>=0.13", "ty>=0.0.1"]
dev = ["pytest>=7", "ruff>=0.16", "ty>=0.0.1"]
```

```yaml title=".github/workflows/ci.yml"
Expand Down