deployproof 0.1.5__tar.gz → 0.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {deployproof-0.1.5/src/deployproof.egg-info → deployproof-0.1.6}/PKG-INFO +29 -15
- {deployproof-0.1.5 → deployproof-0.1.6}/README.md +22 -9
- {deployproof-0.1.5 → deployproof-0.1.6}/pyproject.toml +16 -6
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/__init__.py +1 -1
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/dependencies.py +1 -1
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/reporter.py +1 -1
- {deployproof-0.1.5 → deployproof-0.1.6/src/deployproof.egg-info}/PKG-INFO +29 -15
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_cli.py +3 -3
- {deployproof-0.1.5 → deployproof-0.1.6}/LICENSE +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/setup.cfg +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/cli.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/control_flow.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/diff.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/mocks.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/mutator.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/secrets.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/symlinks.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof/wsl.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof.egg-info/SOURCES.txt +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof.egg-info/dependency_links.txt +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof.egg-info/entry_points.txt +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof.egg-info/requires.txt +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/src/deployproof.egg-info/top_level.txt +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_cli_dependency_scan.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_control_flow.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_dependencies_extractor.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_dependencies_pypi.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_diff.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_edge_cases_validation.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_mocks.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_mutation_suites.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_mutator.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_secrets.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_stress_regressions.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_symlinks.py +0 -0
- {deployproof-0.1.5 → deployproof-0.1.6}/tests/test_wsl.py +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: deployproof
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: A deterministic AI-code deployability checker that catches what coverage misses.
|
|
5
|
-
Author: SVS Praveen
|
|
5
|
+
Author-email: SVS Praveen <svspraveens@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/SVSPraveen/
|
|
8
|
-
Project-URL: Documentation, https://github.com/SVSPraveen/
|
|
9
|
-
Project-URL: Repository, https://github.com/SVSPraveen/
|
|
10
|
-
Project-URL: Bug Tracker, https://github.com/SVSPraveen/
|
|
7
|
+
Project-URL: Homepage, https://github.com/SVSPraveen/DeployProof
|
|
8
|
+
Project-URL: Documentation, https://github.com/SVSPraveen/DeployProof#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/SVSPraveen/DeployProof.git
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/SVSPraveen/DeployProof/issues
|
|
11
|
+
Keywords: ai-code,mutation-testing,security-scanner,slopsquatting,ghostapproval,pre-push-verification,ast-analysis,dependency-security
|
|
11
12
|
Classifier: Development Status :: 3 - Alpha
|
|
12
13
|
Classifier: Intended Audience :: Developers
|
|
13
14
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -29,18 +30,18 @@ Dynamic: license-file
|
|
|
29
30
|
|
|
30
31
|
# DeployProof
|
|
31
32
|
|
|
32
|
-
>
|
|
33
|
+
> Deterministic pre-push verification for AI-assisted codebases: AST mutation testing, credential scanning, sandbox-escape detection, mock-usage alerts, swallowed-exception checks, and dependency hallucination defense.
|
|
33
34
|
|
|
34
|
-
[](https://pypi.org/project/deployproof/)
|
|
36
|
+
[](https://pypi.org/project/deployproof/)
|
|
37
|
+
[](https://github.com/SVSPraveen/DeployProof)
|
|
37
38
|
[](LICENSE)
|
|
38
39
|
|
|
39
40
|
---
|
|
40
41
|
|
|
41
42
|
## Why This Exists
|
|
42
43
|
|
|
43
|
-
AI-assisted development introduces failure modes that standard tools miss: test suites with high line coverage but near-zero mutation scores, hardcoded credentials generated in passing, symlinks that deceive approval prompts into escaping the repository sandbox, and package names hallucinated by LLMs that don't exist on PyPI. DeployProof catches these at the pre-push stage, before they reach CI or production.
|
|
44
|
+
AI-assisted development introduces subtle failure modes that standard linters and coverage tools miss: test suites with high line coverage but near-zero mutation scores, hardcoded credentials generated in passing, symlinks that deceive approval prompts into escaping the repository sandbox, silently swallowed exceptions, and package names hallucinated by LLMs that don't exist on PyPI. DeployProof catches these at the pre-push stage, before they reach CI or production.
|
|
44
45
|
|
|
45
46
|
## Install
|
|
46
47
|
|
|
@@ -58,13 +59,26 @@ Initialize in your repository:
|
|
|
58
59
|
deployproof init
|
|
59
60
|
```
|
|
60
61
|
|
|
61
|
-
Run all verification checks against changes in the current session:
|
|
62
|
+
Run all verification checks against changes in the current session (git diff):
|
|
62
63
|
|
|
63
64
|
```bash
|
|
64
65
|
deployproof check
|
|
65
66
|
```
|
|
66
67
|
|
|
67
|
-
Output includes a section for each check — symlink scan, secrets scan, dependency scan, mock detection, control flow analysis, and mutation score — with a pass/fail line at the bottom. Exit code is non-zero on any finding that should block a push.
|
|
68
|
+
Output includes a section for each check — symlink scan, secrets scan, dependency scan, mock detection, control flow analysis, and mutation score — with a pass/fail line at the bottom. Exit code is non-zero on any finding that should block a push.
|
|
69
|
+
|
|
70
|
+
### CLI Options & Flags
|
|
71
|
+
|
|
72
|
+
| Flag | Description |
|
|
73
|
+
|---|---|
|
|
74
|
+
| `deployproof check` | Run all 6 pre-push verification checks (informational warnings for mocks and error handling). |
|
|
75
|
+
| `deployproof check --json` | Output structured, machine-readable JSON for CI/CD pipelines, IDEs, and automation. |
|
|
76
|
+
| `deployproof check --strict-mocks` | Fail the gate (exit code 1) if new `unittest.mock`, `mocker`, or `monkeypatch` usage is introduced. |
|
|
77
|
+
| `deployproof check --strict-error-handling` | Fail the gate (exit code 1) if bare excepts, swallowed exceptions, or dead code are detected. |
|
|
78
|
+
| `deployproof check --files <paths...>` | Explicitly evaluate specific files (bypasses git diff). |
|
|
79
|
+
| `deployproof check --threshold <float>` | Minimum mutation score percentage required to pass (default: `80.0`). |
|
|
80
|
+
| `deployproof check --base <ref>` | Base git ref (branch/commit/tag) to diff against. |
|
|
81
|
+
| `deployproof check --wsl` | Delegate mutation testing to `mutmut` inside WSL (Windows only). |
|
|
68
82
|
|
|
69
83
|
### Machine-Readable Output (`--json`)
|
|
70
84
|
|
|
@@ -78,7 +92,7 @@ deployproof check --json
|
|
|
78
92
|
|
|
79
93
|
```json
|
|
80
94
|
{
|
|
81
|
-
"version": "0.1.
|
|
95
|
+
"version": "0.1.6",
|
|
82
96
|
"status": "passed",
|
|
83
97
|
"summary": {
|
|
84
98
|
"target_files_count": 1,
|
|
@@ -177,7 +191,7 @@ Fixtures cover weak test suites, zero-test orphan modules, planted OpenAI/AWS cr
|
|
|
177
191
|
|
|
178
192
|
## Status & Roadmap
|
|
179
193
|
|
|
180
|
-
- **Current (v0.1.
|
|
194
|
+
- **Current (v0.1.6):** Diff-scoped AST mutation testing, secrets scanner (including unquoted .env values), GhostApproval symlink sandbox-escape detector, PyPI dependency hallucination / slopsquatting scanner (with recursive `-r` requirements scanning and dynamic import detection via `importlib` / `__import__`), mock-introduction detector (`--strict-mocks`), control-flow / swallowed-exception scanner (`--strict-error-handling`), machine-readable `--json` output, and Tier 2 CI verification via GitHub Actions (mutmut).
|
|
181
195
|
- **Next:** Multi-language mutation support and expanded ecosystem rule packs.
|
|
182
196
|
|
|
183
197
|
## Contributing
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# DeployProof
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Deterministic pre-push verification for AI-assisted codebases: AST mutation testing, credential scanning, sandbox-escape detection, mock-usage alerts, swallowed-exception checks, and dependency hallucination defense.
|
|
4
4
|
|
|
5
|
-
[](https://pypi.org/project/deployproof/)
|
|
6
|
+
[](https://pypi.org/project/deployproof/)
|
|
7
|
+
[](https://github.com/SVSPraveen/DeployProof)
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
## Why This Exists
|
|
13
13
|
|
|
14
|
-
AI-assisted development introduces failure modes that standard tools miss: test suites with high line coverage but near-zero mutation scores, hardcoded credentials generated in passing, symlinks that deceive approval prompts into escaping the repository sandbox, and package names hallucinated by LLMs that don't exist on PyPI. DeployProof catches these at the pre-push stage, before they reach CI or production.
|
|
14
|
+
AI-assisted development introduces subtle failure modes that standard linters and coverage tools miss: test suites with high line coverage but near-zero mutation scores, hardcoded credentials generated in passing, symlinks that deceive approval prompts into escaping the repository sandbox, silently swallowed exceptions, and package names hallucinated by LLMs that don't exist on PyPI. DeployProof catches these at the pre-push stage, before they reach CI or production.
|
|
15
15
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
@@ -29,13 +29,26 @@ Initialize in your repository:
|
|
|
29
29
|
deployproof init
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Run all verification checks against changes in the current session:
|
|
32
|
+
Run all verification checks against changes in the current session (git diff):
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
35
|
deployproof check
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Output includes a section for each check — symlink scan, secrets scan, dependency scan, mock detection, control flow analysis, and mutation score — with a pass/fail line at the bottom. Exit code is non-zero on any finding that should block a push.
|
|
38
|
+
Output includes a section for each check — symlink scan, secrets scan, dependency scan, mock detection, control flow analysis, and mutation score — with a pass/fail line at the bottom. Exit code is non-zero on any finding that should block a push.
|
|
39
|
+
|
|
40
|
+
### CLI Options & Flags
|
|
41
|
+
|
|
42
|
+
| Flag | Description |
|
|
43
|
+
|---|---|
|
|
44
|
+
| `deployproof check` | Run all 6 pre-push verification checks (informational warnings for mocks and error handling). |
|
|
45
|
+
| `deployproof check --json` | Output structured, machine-readable JSON for CI/CD pipelines, IDEs, and automation. |
|
|
46
|
+
| `deployproof check --strict-mocks` | Fail the gate (exit code 1) if new `unittest.mock`, `mocker`, or `monkeypatch` usage is introduced. |
|
|
47
|
+
| `deployproof check --strict-error-handling` | Fail the gate (exit code 1) if bare excepts, swallowed exceptions, or dead code are detected. |
|
|
48
|
+
| `deployproof check --files <paths...>` | Explicitly evaluate specific files (bypasses git diff). |
|
|
49
|
+
| `deployproof check --threshold <float>` | Minimum mutation score percentage required to pass (default: `80.0`). |
|
|
50
|
+
| `deployproof check --base <ref>` | Base git ref (branch/commit/tag) to diff against. |
|
|
51
|
+
| `deployproof check --wsl` | Delegate mutation testing to `mutmut` inside WSL (Windows only). |
|
|
39
52
|
|
|
40
53
|
### Machine-Readable Output (`--json`)
|
|
41
54
|
|
|
@@ -49,7 +62,7 @@ deployproof check --json
|
|
|
49
62
|
|
|
50
63
|
```json
|
|
51
64
|
{
|
|
52
|
-
"version": "0.1.
|
|
65
|
+
"version": "0.1.6",
|
|
53
66
|
"status": "passed",
|
|
54
67
|
"summary": {
|
|
55
68
|
"target_files_count": 1,
|
|
@@ -148,7 +161,7 @@ Fixtures cover weak test suites, zero-test orphan modules, planted OpenAI/AWS cr
|
|
|
148
161
|
|
|
149
162
|
## Status & Roadmap
|
|
150
163
|
|
|
151
|
-
- **Current (v0.1.
|
|
164
|
+
- **Current (v0.1.6):** Diff-scoped AST mutation testing, secrets scanner (including unquoted .env values), GhostApproval symlink sandbox-escape detector, PyPI dependency hallucination / slopsquatting scanner (with recursive `-r` requirements scanning and dynamic import detection via `importlib` / `__import__`), mock-introduction detector (`--strict-mocks`), control-flow / swallowed-exception scanner (`--strict-error-handling`), machine-readable `--json` output, and Tier 2 CI verification via GitHub Actions (mutmut).
|
|
152
165
|
- **Next:** Multi-language mutation support and expanded ecosystem rule packs.
|
|
153
166
|
|
|
154
167
|
## Contributing
|
|
@@ -4,13 +4,23 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "deployproof"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.6"
|
|
8
8
|
description = "A deterministic AI-code deployability checker that catches what coverage misses."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
license = "MIT"
|
|
12
12
|
authors = [
|
|
13
|
-
{ name = "SVS Praveen" }
|
|
13
|
+
{ name = "SVS Praveen", email = "svspraveens@gmail.com" }
|
|
14
|
+
]
|
|
15
|
+
keywords = [
|
|
16
|
+
"ai-code",
|
|
17
|
+
"mutation-testing",
|
|
18
|
+
"security-scanner",
|
|
19
|
+
"slopsquatting",
|
|
20
|
+
"ghostapproval",
|
|
21
|
+
"pre-push-verification",
|
|
22
|
+
"ast-analysis",
|
|
23
|
+
"dependency-security",
|
|
14
24
|
]
|
|
15
25
|
classifiers = [
|
|
16
26
|
"Development Status :: 3 - Alpha",
|
|
@@ -34,10 +44,10 @@ dev = [
|
|
|
34
44
|
]
|
|
35
45
|
|
|
36
46
|
[project.urls]
|
|
37
|
-
Homepage = "https://github.com/SVSPraveen/
|
|
38
|
-
Documentation = "https://github.com/SVSPraveen/
|
|
39
|
-
Repository = "https://github.com/SVSPraveen/
|
|
40
|
-
"Bug Tracker" = "https://github.com/SVSPraveen/
|
|
47
|
+
Homepage = "https://github.com/SVSPraveen/DeployProof"
|
|
48
|
+
Documentation = "https://github.com/SVSPraveen/DeployProof#readme"
|
|
49
|
+
Repository = "https://github.com/SVSPraveen/DeployProof.git"
|
|
50
|
+
"Bug Tracker" = "https://github.com/SVSPraveen/DeployProof/issues"
|
|
41
51
|
|
|
42
52
|
[project.scripts]
|
|
43
53
|
deployproof = "deployproof.cli:main"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""DeployProof: Deterministic deployability verification for AI-assisted code."""
|
|
2
|
-
__version__ = "0.1.
|
|
2
|
+
__version__ = "0.1.6"
|
|
@@ -891,7 +891,7 @@ def query_pypi_registry(
|
|
|
891
891
|
url = f"https://pypi.org/pypi/{norm_name}/json"
|
|
892
892
|
req = urllib.request.Request(
|
|
893
893
|
url,
|
|
894
|
-
headers={"User-Agent": "DeployProof/0.1.
|
|
894
|
+
headers={"User-Agent": "DeployProof/0.1.6 (https://github.com/SVSPraveen/DeployProof)"},
|
|
895
895
|
)
|
|
896
896
|
|
|
897
897
|
try:
|
|
@@ -26,7 +26,7 @@ def format_json_report(
|
|
|
26
26
|
strict_error_handling: bool = False,
|
|
27
27
|
repo_root: Optional[Path] = None,
|
|
28
28
|
threshold: float = 80.0,
|
|
29
|
-
version: str = "0.1.
|
|
29
|
+
version: str = "0.1.6",
|
|
30
30
|
) -> str:
|
|
31
31
|
"""Format all scan findings and mutation results as a structured JSON string."""
|
|
32
32
|
root = (repo_root or Path.cwd()).resolve()
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: deployproof
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: A deterministic AI-code deployability checker that catches what coverage misses.
|
|
5
|
-
Author: SVS Praveen
|
|
5
|
+
Author-email: SVS Praveen <svspraveens@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/SVSPraveen/
|
|
8
|
-
Project-URL: Documentation, https://github.com/SVSPraveen/
|
|
9
|
-
Project-URL: Repository, https://github.com/SVSPraveen/
|
|
10
|
-
Project-URL: Bug Tracker, https://github.com/SVSPraveen/
|
|
7
|
+
Project-URL: Homepage, https://github.com/SVSPraveen/DeployProof
|
|
8
|
+
Project-URL: Documentation, https://github.com/SVSPraveen/DeployProof#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/SVSPraveen/DeployProof.git
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/SVSPraveen/DeployProof/issues
|
|
11
|
+
Keywords: ai-code,mutation-testing,security-scanner,slopsquatting,ghostapproval,pre-push-verification,ast-analysis,dependency-security
|
|
11
12
|
Classifier: Development Status :: 3 - Alpha
|
|
12
13
|
Classifier: Intended Audience :: Developers
|
|
13
14
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -29,18 +30,18 @@ Dynamic: license-file
|
|
|
29
30
|
|
|
30
31
|
# DeployProof
|
|
31
32
|
|
|
32
|
-
>
|
|
33
|
+
> Deterministic pre-push verification for AI-assisted codebases: AST mutation testing, credential scanning, sandbox-escape detection, mock-usage alerts, swallowed-exception checks, and dependency hallucination defense.
|
|
33
34
|
|
|
34
|
-
[](https://pypi.org/project/deployproof/)
|
|
36
|
+
[](https://pypi.org/project/deployproof/)
|
|
37
|
+
[](https://github.com/SVSPraveen/DeployProof)
|
|
37
38
|
[](LICENSE)
|
|
38
39
|
|
|
39
40
|
---
|
|
40
41
|
|
|
41
42
|
## Why This Exists
|
|
42
43
|
|
|
43
|
-
AI-assisted development introduces failure modes that standard tools miss: test suites with high line coverage but near-zero mutation scores, hardcoded credentials generated in passing, symlinks that deceive approval prompts into escaping the repository sandbox, and package names hallucinated by LLMs that don't exist on PyPI. DeployProof catches these at the pre-push stage, before they reach CI or production.
|
|
44
|
+
AI-assisted development introduces subtle failure modes that standard linters and coverage tools miss: test suites with high line coverage but near-zero mutation scores, hardcoded credentials generated in passing, symlinks that deceive approval prompts into escaping the repository sandbox, silently swallowed exceptions, and package names hallucinated by LLMs that don't exist on PyPI. DeployProof catches these at the pre-push stage, before they reach CI or production.
|
|
44
45
|
|
|
45
46
|
## Install
|
|
46
47
|
|
|
@@ -58,13 +59,26 @@ Initialize in your repository:
|
|
|
58
59
|
deployproof init
|
|
59
60
|
```
|
|
60
61
|
|
|
61
|
-
Run all verification checks against changes in the current session:
|
|
62
|
+
Run all verification checks against changes in the current session (git diff):
|
|
62
63
|
|
|
63
64
|
```bash
|
|
64
65
|
deployproof check
|
|
65
66
|
```
|
|
66
67
|
|
|
67
|
-
Output includes a section for each check — symlink scan, secrets scan, dependency scan, mock detection, control flow analysis, and mutation score — with a pass/fail line at the bottom. Exit code is non-zero on any finding that should block a push.
|
|
68
|
+
Output includes a section for each check — symlink scan, secrets scan, dependency scan, mock detection, control flow analysis, and mutation score — with a pass/fail line at the bottom. Exit code is non-zero on any finding that should block a push.
|
|
69
|
+
|
|
70
|
+
### CLI Options & Flags
|
|
71
|
+
|
|
72
|
+
| Flag | Description |
|
|
73
|
+
|---|---|
|
|
74
|
+
| `deployproof check` | Run all 6 pre-push verification checks (informational warnings for mocks and error handling). |
|
|
75
|
+
| `deployproof check --json` | Output structured, machine-readable JSON for CI/CD pipelines, IDEs, and automation. |
|
|
76
|
+
| `deployproof check --strict-mocks` | Fail the gate (exit code 1) if new `unittest.mock`, `mocker`, or `monkeypatch` usage is introduced. |
|
|
77
|
+
| `deployproof check --strict-error-handling` | Fail the gate (exit code 1) if bare excepts, swallowed exceptions, or dead code are detected. |
|
|
78
|
+
| `deployproof check --files <paths...>` | Explicitly evaluate specific files (bypasses git diff). |
|
|
79
|
+
| `deployproof check --threshold <float>` | Minimum mutation score percentage required to pass (default: `80.0`). |
|
|
80
|
+
| `deployproof check --base <ref>` | Base git ref (branch/commit/tag) to diff against. |
|
|
81
|
+
| `deployproof check --wsl` | Delegate mutation testing to `mutmut` inside WSL (Windows only). |
|
|
68
82
|
|
|
69
83
|
### Machine-Readable Output (`--json`)
|
|
70
84
|
|
|
@@ -78,7 +92,7 @@ deployproof check --json
|
|
|
78
92
|
|
|
79
93
|
```json
|
|
80
94
|
{
|
|
81
|
-
"version": "0.1.
|
|
95
|
+
"version": "0.1.6",
|
|
82
96
|
"status": "passed",
|
|
83
97
|
"summary": {
|
|
84
98
|
"target_files_count": 1,
|
|
@@ -177,7 +191,7 @@ Fixtures cover weak test suites, zero-test orphan modules, planted OpenAI/AWS cr
|
|
|
177
191
|
|
|
178
192
|
## Status & Roadmap
|
|
179
193
|
|
|
180
|
-
- **Current (v0.1.
|
|
194
|
+
- **Current (v0.1.6):** Diff-scoped AST mutation testing, secrets scanner (including unquoted .env values), GhostApproval symlink sandbox-escape detector, PyPI dependency hallucination / slopsquatting scanner (with recursive `-r` requirements scanning and dynamic import detection via `importlib` / `__import__`), mock-introduction detector (`--strict-mocks`), control-flow / swallowed-exception scanner (`--strict-error-handling`), machine-readable `--json` output, and Tier 2 CI verification via GitHub Actions (mutmut).
|
|
181
195
|
- **Next:** Multi-language mutation support and expanded ecosystem rule packs.
|
|
182
196
|
|
|
183
197
|
## Contributing
|
|
@@ -9,7 +9,7 @@ from deployproof.cli import create_parser, main
|
|
|
9
9
|
|
|
10
10
|
def test_version():
|
|
11
11
|
"""Verify version string is accessible."""
|
|
12
|
-
assert __version__ == "0.1.
|
|
12
|
+
assert __version__ == "0.1.6"
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def test_parser_version(capsys):
|
|
@@ -19,7 +19,7 @@ def test_parser_version(capsys):
|
|
|
19
19
|
parser.parse_args(["--version"])
|
|
20
20
|
assert exc_info.value.code == 0
|
|
21
21
|
captured = capsys.readouterr()
|
|
22
|
-
assert "deployproof 0.1.
|
|
22
|
+
assert "deployproof 0.1.6" in captured.out or "deployproof 0.1.6" in captured.err
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
def test_parser_help(capsys):
|
|
@@ -105,7 +105,7 @@ def test_main_check_json_output_passing(capsys):
|
|
|
105
105
|
|
|
106
106
|
data = json.loads(captured.out)
|
|
107
107
|
assert data["status"] == "passed"
|
|
108
|
-
assert data["version"] == "0.1.
|
|
108
|
+
assert data["version"] == "0.1.6"
|
|
109
109
|
assert data["summary"]["mutation_score"] == 100.0
|
|
110
110
|
assert data["summary"]["secrets_found"] == 0
|
|
111
111
|
assert data["summary"]["symlink_escapes_found"] == 0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|