bitexoft-verify 0.3.0__tar.gz → 0.3.1__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.
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/.gitignore +2 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/PKG-INFO +9 -2
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/README.md +8 -1
- bitexoft_verify-0.3.1/frozen.json +32 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/pyproject.toml +3 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/__init__.py +1 -1
- bitexoft_verify-0.3.1/src/bitexoft_verify/checks/a3.py +701 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/checks/common.py +32 -8
- bitexoft_verify-0.3.1/src/bitexoft_verify/checks/earlier.py +44 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/checks/execution.py +10 -6
- bitexoft_verify-0.3.1/src/bitexoft_verify/checks/layers.py +233 -0
- bitexoft_verify-0.3.1/src/bitexoft_verify/checks/sources.py +248 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/codes.py +37 -0
- bitexoft_verify-0.3.1/src/bitexoft_verify/data/issue-codes.json +198 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/runner.py +13 -3
- bitexoft_verify-0.3.1/tests/a3_reference.py +281 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/conftest.py +37 -1
- bitexoft_verify-0.3.1/tests/golden/a2_checks.json +6204 -0
- bitexoft_verify-0.3.1/tests/golden_guard.py +40 -0
- bitexoft_verify-0.3.1/tests/test_a3.py +665 -0
- bitexoft_verify-0.3.1/tests/test_earlier.py +107 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_equivalence.py +5 -2
- bitexoft_verify-0.3.1/tests/test_equivalence_a2.py +421 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_execution.py +41 -0
- bitexoft_verify-0.3.1/tests/test_frozen.py +163 -0
- bitexoft_verify-0.3.1/tests/test_golden_guard.py +43 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_issues.py +3 -0
- bitexoft_verify-0.3.1/tests/test_layers.py +169 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_projects.py +1 -1
- bitexoft_verify-0.3.1/tests/test_sources.py +166 -0
- bitexoft_verify-0.3.1/tools/check_frozen.py +210 -0
- bitexoft_verify-0.3.0/src/bitexoft_verify/data/issue-codes.json +0 -76
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/__main__.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/checks/__init__.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/checks/a1.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/checks/a2.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/checks/a2_design.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/checks/assertions.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/checks/isolated.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/cli.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/data/README.md +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/data/a1_impossible_sample.csv +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/data/a1_match_sample.csv +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/data/a2_isolated_sample.csv +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/manifest.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/report.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/src/bitexoft_verify/seeds.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/golden/a1_checks.json +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_a1.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_a1_benign.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_a2.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_assertions.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_check_errors.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_isolated.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_parity.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_report_v4.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_sample_files.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_seeds.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tests/test_version.py +0 -0
- {bitexoft_verify-0.3.0 → bitexoft_verify-0.3.1}/tools/make_fixtures.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: bitexoft-verify
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Verifica las entregas de los proyectos de Bitexoft: la misma herramienta en tu máquina y en CI.
|
|
5
5
|
Author: Bitexoft
|
|
6
6
|
License: Proprietary
|
|
@@ -105,13 +105,20 @@ user. They are synthetic: no third-party data is distributed here.
|
|
|
105
105
|
|
|
106
106
|
## Development
|
|
107
107
|
|
|
108
|
+
Use **a virtual environment per checkout**. An editable install records the folder it was made from, so a Python that
|
|
109
|
+
has `bitexoft-verify` installed from another checkout (or from PyPI) imports *that* code when you run the tests here, and
|
|
110
|
+
a green run says nothing about the files you are editing. The test suite refuses to run in that case.
|
|
111
|
+
|
|
108
112
|
```bash
|
|
113
|
+
python -m venv .venv && . .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
109
114
|
pip install -e '.[dev,api]'
|
|
110
115
|
pytest # builds a fake learner repository and verifies it
|
|
111
116
|
ruff check .
|
|
112
117
|
python tools/make_fixtures.py # regenerate the sample files
|
|
113
118
|
```
|
|
114
119
|
|
|
120
|
+
Without a virtual environment, `PYTHONPATH=src pytest` makes the tests import this checkout.
|
|
121
|
+
|
|
115
122
|
Before changing what a check says when it fails, or the layout of the output, read
|
|
116
123
|
[`docs/foundations/03-feedback-self-explanation-calibration.md`](../docs/foundations/03-feedback-self-explanation-calibration.md)
|
|
117
124
|
(the verifier's messages are the feedback a learner reads) and ADR 0002. The check ids and the report
|
|
@@ -128,7 +135,7 @@ First release, by hand on pypi.org:
|
|
|
128
135
|
repository `sports-lab-v1`, workflow `release-verify.yml`, environment `pypi`.
|
|
129
136
|
2. In the repository settings, create the environment `pypi`.
|
|
130
137
|
|
|
131
|
-
Each release (`<version>` is `__version__`; 0.3.0 is the first that knows A2
|
|
138
|
+
Each release (`<version>` is `__version__`; 0.3.0 is the first that knows A2 and 0.3.1 the first that knows A3 and runs the learner's program as UTF-8; the workflow pin `0.3.*` takes the newest):
|
|
132
139
|
|
|
133
140
|
```bash
|
|
134
141
|
git tag verify-v<version> && git push origin verify-v<version>
|
|
@@ -82,13 +82,20 @@ user. They are synthetic: no third-party data is distributed here.
|
|
|
82
82
|
|
|
83
83
|
## Development
|
|
84
84
|
|
|
85
|
+
Use **a virtual environment per checkout**. An editable install records the folder it was made from, so a Python that
|
|
86
|
+
has `bitexoft-verify` installed from another checkout (or from PyPI) imports *that* code when you run the tests here, and
|
|
87
|
+
a green run says nothing about the files you are editing. The test suite refuses to run in that case.
|
|
88
|
+
|
|
85
89
|
```bash
|
|
90
|
+
python -m venv .venv && . .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
86
91
|
pip install -e '.[dev,api]'
|
|
87
92
|
pytest # builds a fake learner repository and verifies it
|
|
88
93
|
ruff check .
|
|
89
94
|
python tools/make_fixtures.py # regenerate the sample files
|
|
90
95
|
```
|
|
91
96
|
|
|
97
|
+
Without a virtual environment, `PYTHONPATH=src pytest` makes the tests import this checkout.
|
|
98
|
+
|
|
92
99
|
Before changing what a check says when it fails, or the layout of the output, read
|
|
93
100
|
[`docs/foundations/03-feedback-self-explanation-calibration.md`](../docs/foundations/03-feedback-self-explanation-calibration.md)
|
|
94
101
|
(the verifier's messages are the feedback a learner reads) and ADR 0002. The check ids and the report
|
|
@@ -105,7 +112,7 @@ First release, by hand on pypi.org:
|
|
|
105
112
|
repository `sports-lab-v1`, workflow `release-verify.yml`, environment `pypi`.
|
|
106
113
|
2. In the repository settings, create the environment `pypi`.
|
|
107
114
|
|
|
108
|
-
Each release (`<version>` is `__version__`; 0.3.0 is the first that knows A2
|
|
115
|
+
Each release (`<version>` is `__version__`; 0.3.0 is the first that knows A2 and 0.3.1 the first that knows A3 and runs the learner's program as UTF-8; the workflow pin `0.3.*` takes the newest):
|
|
109
116
|
|
|
110
117
|
```bash
|
|
111
118
|
git tag verify-v<version> && git push origin verify-v<version>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_about": "Hashes of what freezes A1 and A2. Checked by verify/tools/check_frozen.py and verify/tests/test_frozen.py. Changing or removing an entry needs `Frozen-by: ADR NNNN` in the commit message.",
|
|
3
|
+
"files": {
|
|
4
|
+
"verify/src/bitexoft_verify/checks/a1.py": "81a27653a5821717e50f620a5de68e4ce6319c6a47b4eb34d7e5d6667da8160a",
|
|
5
|
+
"verify/src/bitexoft_verify/checks/a2.py": "d3921cbc5557d2040e0a213362e8e6c3f293379b734d96e1af6b3ab10cabdcff",
|
|
6
|
+
"verify/src/bitexoft_verify/checks/a2_design.py": "1339b51bc0e85b18236e3454300fcf97c208a370751e2556e513d639da19bb8a",
|
|
7
|
+
"verify/src/bitexoft_verify/data/a1_impossible_sample.csv": "92f9d3628127b7cd9917031498677550eafaa8c32c27cb111c71f8d02a43be4e",
|
|
8
|
+
"verify/src/bitexoft_verify/data/a1_match_sample.csv": "f0d10aa3682f63f675dbe43528174a9d2a5157648f5ce384e7c55f01c7151fbe",
|
|
9
|
+
"verify/src/bitexoft_verify/data/a2_isolated_sample.csv": "3b9886970952d6d966ca6d5ac53ecf46dbaef90116bc9cd677606d6c416fa6cd",
|
|
10
|
+
"verify/tests/golden/a1_checks.json": "792c239236145020da63776b15c0735294e8825f3542d9248102f759e384c8c5",
|
|
11
|
+
"verify/tests/golden/a2_checks.json": "650aa29da28938818e5b8a98d873f57276a34d3f445966014ef2f9ea8370906a",
|
|
12
|
+
"verify/tests/golden_guard.py": "dbefb359963eb9d4114b7bf11a31e707d073cc5f4b4e74e3e521ce605d80df8a",
|
|
13
|
+
"verify/tests/test_equivalence.py": "84ce9eb6b8c708eb9d79e60b45014c5597b98b25c04b3891aa68c55a67ce8608",
|
|
14
|
+
"verify/tests/test_equivalence_a2.py": "6805b4e9045e2cb21f0d0976117db5a63f5faf54645ca43b44bde9c2ceccfc7c"
|
|
15
|
+
},
|
|
16
|
+
"json": {
|
|
17
|
+
"content/projects/chaos-sports-lab/deliveries/A1.json": {
|
|
18
|
+
"keys": [
|
|
19
|
+
"contract",
|
|
20
|
+
"evidence_prompts"
|
|
21
|
+
],
|
|
22
|
+
"sha256": "fff5e9f884fba6645cee59ee55a0669132476136b2ec7c89fe4d04e2d939f439"
|
|
23
|
+
},
|
|
24
|
+
"content/projects/chaos-sports-lab/deliveries/A2.json": {
|
|
25
|
+
"keys": [
|
|
26
|
+
"contract",
|
|
27
|
+
"evidence_prompts"
|
|
28
|
+
],
|
|
29
|
+
"sha256": "5ec143849c656e2d42f3f196d8c5860541714cf9720381e6d259201d4b21efb8"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -53,6 +53,9 @@ ignore = ["UP017"]
|
|
|
53
53
|
# Los tests construyen el código del repositorio falso con replace() sobre literales:
|
|
54
54
|
# partir esas líneas los hace ilegibles.
|
|
55
55
|
"tests/*" = ["E501"]
|
|
56
|
+
# Los checks de A3 llevan scripts del proceso hijo y mensajes en cadenas largas: partirlas los hace ilegibles.
|
|
57
|
+
"src/bitexoft_verify/checks/a3.py" = ["E501"]
|
|
58
|
+
"src/bitexoft_verify/checks/sources.py" = ["E501"]
|
|
56
59
|
|
|
57
60
|
[tool.pytest.ini_options]
|
|
58
61
|
testpaths = ["tests"]
|