Skip to content
Merged
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
15 changes: 0 additions & 15 deletions .coveragerc

This file was deleted.

14 changes: 0 additions & 14 deletions .jules/bolt.md

This file was deleted.

14 changes: 0 additions & 14 deletions .jules/sentinel.md

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); version

## [Unreleased]

### Changed
- Repo hygiene: `pytest.ini` and `.coveragerc` folded into `pyproject.toml` (`[tool.pytest.ini_options]`, `[tool.coverage.*]`); removed the `.jules/` bot-notes directory. Test/coverage behavior unchanged; sdists still carry the full test config via `pyproject.toml`.

## [0.2.0] - 2026-07-23

### Changed
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ include SECURITY.md
include CHANGELOG.md
include MANIFEST.in
include pyproject.toml
include pytest.ini

# Agent JSON contracts (machine + human). Not the quality/planning docs.
include docs/api.md
Expand Down
2 changes: 1 addition & 1 deletion docs/quality-roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ of silent rot vs the old 79 gate.

### Residual coverage policy

Integration-heavy and platform/TTY/process paths may carry `# pragma: no cover` when unit tests already cover the pure/decision branches and remaining lines are I/O loops (MQTT ack, FTPS resume, interactive wizard, Orca process). Measured coverage is computed under `.coveragerc` with those exclusions. Do not pragma pure helpers that have no tests.
Integration-heavy and platform/TTY/process paths may carry `# pragma: no cover` when unit tests already cover the pure/decision branches and remaining lines are I/O loops (MQTT ack, FTPS resume, interactive wizard, Orca process). Measured coverage is computed under `[tool.coverage.report]` in `pyproject.toml` with those exclusions. Do not pragma pure helpers that have no tests.

---

Expand Down
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,36 @@ plate = "bambu_cli.bambu:main"
where = ["."]
include = ["bambu_cli*"]

[tool.pytest.ini_options]
testpaths = ["tests"]
# live_printer_smoke.py is collectable but marked `live` — CI and default local
# runs use `-m "not live"` so it never touches a printer without BAMBU_LIVE=1.
python_files = ["test_*.py", "live_printer_smoke.py"]
addopts = "--cov=bambu_cli --cov-report=term-missing"
markers = [
"security: SSRF, TLS pin, archive, and other security-sensitive cases",
"contract: agent-facing JSON shape / schema contracts",
"live: requires a real printer (never run in default CI; needs BAMBU_LIVE=1)",
"slow: longer-running tests",
]

[tool.coverage.run]
branch = true
source = ["bambu_cli"]

[tool.coverage.report]
precision = 1
# Honest coverage: do not hide except Exception/pass/continue.
# Only exclude lines that are definitionally unmeasurable or non-executable.
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"\\.\\.\\.",
]

[tool.ruff]
target-version = "py39"
line-length = 120
Expand Down
11 changes: 0 additions & 11 deletions pytest.ini

This file was deleted.

Loading