fix: package quality-debt CLI support
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a053ff-1d6f-7fe2-ac1c-a6eb40a42a0c
This commit is contained in:
parent
2343574a0c
commit
fc8ec49d9e
4 changed files with 35 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ from __future__ import annotations
|
|||
import argparse
|
||||
import json
|
||||
import sys
|
||||
import tomllib
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
|
@ -475,3 +476,20 @@ def test_fix_consistency_remote_requires_explicit_repo_or_all(monkeypatch, tmp_p
|
|||
|
||||
assert exc.value.code == 1
|
||||
assert calls == []
|
||||
|
||||
|
||||
def test_quality_debt_cli_support_files_ship_in_the_wheel():
|
||||
config = tomllib.loads(
|
||||
(Path(__file__).resolve().parents[1] / "pyproject.toml").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
)
|
||||
force_include = config["tool"]["hatch"]["build"]["targets"]["wheel"][
|
||||
"force-include"
|
||||
]
|
||||
|
||||
assert force_include["scripts/quality_debt.py"] == "scripts/quality_debt.py"
|
||||
assert (
|
||||
force_include["scripts/quality_assessment.py"]
|
||||
== "scripts/quality_assessment.py"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue