| # 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. | |
| [build-system] | |
| requires = ["hatchling"] | |
| build-backend = "hatchling.build" | |
| [project] | |
| name = "setup-preflight" | |
| version = "0.1.0" | |
| description = "Deterministic setup pre-flight: resolve a project's Magpie configuration state and one skill's fingerprint into a machine-readable verdict." | |
| readme = "README.md" | |
| requires-python = ">=3.14" | |
| license = { text = "Apache-2.0" } | |
| # stdlib-only — JSON parsing and deep-diff are built into Python. | |
| dependencies = [] | |
| [project.scripts] | |
| setup-preflight = "setup_preflight.cli:main" | |
| [tool.hatch.build.targets.wheel] | |
| packages = ["src/setup_preflight"] | |
| [tool.hatch.build.targets.wheel.force-include] | |
| "src/setup_preflight/sections" = "setup_preflight/sections" | |
| "src/setup_preflight/guides" = "setup_preflight/guides" | |
| [tool.ruff] | |
| extend = "../dev/shared/ruff.toml" | |
| src = ["src", "tests"] | |
| [tool.ruff.lint.per-file-ignores] | |
| "tests/**" = ["ANN", "B", "SIM"] | |
| [tool.pytest.ini_options] | |
| minversion = "8.0" | |
| addopts = "-ra -q" | |
| testpaths = ["tests"] | |
| [dependency-groups] | |
| # The shared toolchain (mypy, pytest, ruff) comes from `magpie-dev` | |
| # (tools/dev), declared once for the whole workspace. The checks run each tool | |
| # via `uv run --directory <member> --project . python -m <tool>` — see | |
| # tools/dev/run-workspace-check.sh. | |
| dev = ["magpie-dev"] |