Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
164 lines (155 loc) · 6.49 KB
/
Copy pathpyproject.toml
File metadata and controls
164 lines (155 loc) · 6.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# Root pyproject.toml — frames the framework root as a uv-managed
# project so the `[tool.uv] exclude-newer` cooldown below actually
# applies to the root-level tooling (`prek` and `zizmor`, declared
# under `[dependency-groups] dev`). `uv tool install` ignores
# pyproject.toml settings, so prek is installed into a uv-managed
# environment via `uv sync --group dev` instead.
#
# Not a Python package — `[tool.uv] package = false` below tells uv
# not to try to build a wheel from the framework root. The actual
# Python projects live under
# `tools/{vulnogram/generate-cve-json,gmail/oauth-draft}/` with their
# own pyproject.toml + uv.lock.
[project]
# Package name matches the project's canonical name. Not published to
# PyPI — this name only frames the framework root as a uv-managed project.
name = "apache-magpie"
version = "0.9.0.dev202609262258"
description = "Reusable, governance-agnostic framework of agentic skills for maintaining open-source projects."
requires-python = ">=3.11"
[dependency-groups]
# Dev tooling installed at the framework root.
#
# - `prek` is the static-check / pre-commit runner. CI installs it
# via `uv sync --group dev` and invokes `uv run prek …`.
# - `magpie-dev` (tools/dev) carries the shared static-analysis +
# test toolchain — ruff, mypy, pytest — declared in ONE place and
# depended on by every workspace member's own `dev` group, so each
# sub-project's environment is still self-contained. The workspace
# checks run each tool against the member's own project via
# `uv run --directory <member> --project . …` (see
# `tools/dev/run-workspace-check.sh`), so a member is never
# dependent on tools leaking in from the shared root environment.
#
# Bump a toolchain version in `tools/dev/pyproject.toml` and the
# whole workspace moves together. The previous arrangement repeated
# the three pins in every member with an instruction to keep them in
# lockstep, and they had already drifted into three different mypy
# floors, two pytest floors, and two ruff floors.
# - `zizmor` is the GitHub Actions security analyser run by
# `.github/workflows/zizmor.yml`. It is declared here rather than
# invoked through `zizmorcore/zizmor-action` because that action runs
# the tool via `docker pull` + `docker run` and aborts with "Cannot
# run this action without Docker" — and there is no Docker daemon on
# the container-based `ubuntu-slim` runners this repo uses.
# Installing the CLI from PyPI also brings zizmor under the
# `exclude-newer` cooldown and the root lockfile, and makes
# `uv run zizmor` reproduce CI locally.
#
# Lower bounds mirror what individual tools needed at their last
# bump; the upper bound is enforced implicitly by the 7-day
# `[tool.uv] exclude-newer` cooldown below, so the resolved version
# is "the most recent that is at least 7 days old".
dev = [
"prek>=0.4.12",
"magpie-dev",
"zizmor>=1.30.0",
]
[tool.uv]
# Pin the minimum uv version. Latest at the time of writing — bump
# manually when adopting features from newer uv releases.
required-version = ">=0.11.8"
# 7-day cooldown on dependency-resolution snapshots: a just-released
# package version has had a week to settle (retags, withdrawals,
# upstream incident reports) before uv will pick it up here. Same
# rationale as the 7-day cooldown on the Dependabot updates in
# `.github/dependabot.yml`.
exclude-newer = "7 days"
# This pyproject.toml is purely a settings file; do not build or
# install it as a package.
package = false
# Workspace declaration — `apache-magpie` is the root of a uv
# workspace whose members are every Python project under `tools/`.
# Adding a new tool is a one-line edit here; everything downstream
# (pre-commit hooks, CI matrix, root uv.lock) follows automatically.
# See `tools/dev/run-workspace-check.sh` for the iteration helper
# and `.github/workflows/tests.yml` for the dynamic CI matrix.
#
# Trade-off: workspace dependency resolution is shared across
# members, so a version conflict between two members becomes a
# workspace-level problem (caught at `uv sync` time, not at
# per-tool install time). This is desired — drift between tools'
# pinned versions is harder to spot when each has its own lock
# file.
[tool.uv.sources]
# `magpie-dev` is the workspace's shared dev toolchain (tools/dev). Declared
# here once so every member can name it in its `dev` group without repeating
# the source; workspace members inherit the root's sources.
magpie-dev = { workspace = true }
checker = { workspace = true }
jira-bridge = { workspace = true }
[tool.uv.workspace]
members = [
"ai-tutors",
"plugins",
"tools/agent-guard",
"tools/dev",
"tools/agent-isolation",
"tools/bitbucket",
"tools/egress-gateway",
"tools/container-gateway",
"tools/contributor-metrics",
"tools/cve-tool-vulnogram/generate-cve-json",
"tools/cve-tool-vulnogram/oauth-api",
"tools/github-body-field",
"tools/github-rollup",
"tools/gmail/oauth-draft",
"tools/jira",
"tools/maildir",
"tools/mail-source/imap",
"tools/maven-artifact-verify",
"tools/permission-audit",
"tools/pr-management-stats",
"tools/preflight-audit",
"tools/privacy-llm/checker",
"tools/privacy-llm/redactor",
"tools/release-config",
"tools/release-verify",
"tools/reproducible-archive",
"tools/sandbox-lint",
"tools/security-tracker-stats-dashboard",
"tools/setup-preflight",
"tools/skill-and-tool-validator",
"tools/skill-evals",
"tools/pilot-report-validator",
"tools/spec-inventory",
"tools/skill-reconciler-diff",
"tools/spec-status-index",
"tools/spec-validator",
"tools/symlink-lint",
"tools/vcs",
"tools/vendor-neutrality-score",
"tools/skill-token-count",
"tools/adversarial-review",
"tools/vetted-ops",
"tools/fossil",
"tools/sourcehut",
"tools/gitlab",
"tools/typed-decision",
]