Repository navigation
docs: align audience guidance and Python style policy - #275
Merged
Merged
Conversation
Canonicalize analytical component order before equilibrium arithmetic to preserve exact evidence and saved candidate identity. Add minimized equilibrium and public import/adopt/replay regressions across process hash seeds while retaining tamper checks. Refs #272. Validation: 21 numerical/Sonneveld tests and 110 chemistry/workflow checks passed, including pinned live PHREEQC replay. Clean installed Appendix I replay is byte-identical.
Complete D07-D09 audience routes, annotated TUI captures, accounting diagrams, printable tables and offline resources. Align packaged manual and current behavior, including water handling, ammonium, scope, replay qualification and the hosted CI matrix. Refs #271 and #272. Validation: strict 73-page build; 7530 local links and 160 images; 36 layout and six print checks; clean wheel/sdist installs and installed audience journeys. Physical validation and hosted publication remain separate.
Distinguish 99-column code, 72-column flowing prose and the configured Ruff subset from full PEP 8 review. Document header, structured-text, mathematical-name and compatibility exceptions and preserve import evaluation order. Refs #273. S01 audit covers all 345 Python files; personal findings ledger remains outside the repository.
Apply the reviewed S01 policy to flowing comments and docstrings, insert 60 missing import-category separators without moving imports, and normalize five test/helper names. Preserve fixed headers, scientific notation, fixtures, public APIs and executable ASTs; regenerate API and CLI references with whitespace-only content changes. Refs #273. Validation: 24 focused documentation/header checks, Ruff lint/format and AST/docstring equivalence across 325 changed Python files pass. Full committed-candidate validation follows under V01.
Correct the Linux coverage shard count found during V01 contributor-guide review. Both native platforms use six shards in the existing workflow; no workflow or Python source changes. Refs #271 and #273. Validate the affected documentation and source distribution separately; reuse only unchanged Python/data test inputs.
Update the hint key for the renamed pH-input test while preserving its 0.01 weight. The complete unittest inventory, assertions and chemical inputs are unchanged. Refs #273. The mapping follows the reviewed S02 test rename; CI weights remain scheduling hints, never selection rules.
Name the five source/test/tool directories covered by the existing fixed-header check and document the standalone Sphinx configuration exception. This aligns contributor policy with the reviewed 345-file inventory without changing Python source or lint gates. Refs #273.
Replace one opaque 13-formula subtest loop with 13 named real batch cases plus the catalogue inventory guard. The shared check_formula helper and every scientific/output assertion are unchanged. Add a red-to-green scheduling witness proving every formula retains a unique selectable identity and reaches that helper exactly once. Refs #274. The original 1800-second timeout remains failed evidence; no runner, solver, uncertainty or nutrient/pH limits are relaxed. All 11 scheduling tests pass; real formula/full-inventory verification continues under V01.
Put the two remaining multiline docstring closing delimiters on their own lines and wrap the scheduling-witness prose at 72 columns. Executable ASTs and normalized docstring wording are unchanged; the generated public API reference remains current. Refs #273 and #274. All 36 affected conversion, competitor-support, scheduling, header and public-docstring tests pass. Ruff lint/format pass across 345 files; complete inventory verification remains V01.
Generate the block-comment wrapping at exactly 72 columns including indentation. Executable code is unchanged; the scheduling witness and full pinned Ruff checks pass. Refs #273.
Documentation build overview
23 files changed ·
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #275 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 140 140
Lines 16919 16922 +3
Branches 3433 3433
=========================================
+ Hits 16919 16922 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Growers and agronomists need clear instructions for turning crop targets, water analysis and available products into a reviewed batch recipe. Align the problem statement and supported scope with current FlahaX behavior, add verified Sonneveld walkthroughs and file/session contracts, and document the Python style policy actually enforced.
Fix deterministic fresh-process Sonneveld replay by ordering positive component keys before numerical evaluation. Give all 13 catalogue formula checks independent test identities while preserving their real chemistry assertions and the existing timeout. Style changes preserve public interfaces, mathematical expression order and scientific data.
Closes #271
Closes #272
Closes #273
Closes #274
Evidence
After: corrected guidance and scope; byte-identical installed-wheel replay after deleting the import file; all 13 real catalogue formula checks pass independently without loosening assertions or raising limits.
a87223993ab7d72a64d71103c2426a7827a72abc: the 1,833-case inventory has 1,830 passes, three documented skips and zero failures/errors. This uses 1,711 fresh executions plus 122 provenance-checked unchanged passing cases; it is functional evidence, not combined coverage or hosted acceptance. Skips cover opt-in online downloads and two native POSIX checks on Windows. Required pinned PHREEQC mode was enabled.requires_review: product assays, real stock preparation, dispensing and finished-batch measurements still need physical qualification.Merge Danger
Door: two-way
Reversible documentation/style changes plus a deterministic ordering correction and test scheduling repair. No public API, recipe target or scientific coefficient changes. Keep draft pending hosted checks and review.
Blast Radius: repository
Broad comment/docstring reflow touches 371 files overall. Generated documentation and installed resources are covered by local checks; exact-head native coverage and Python compatibility remain hosted acceptance requirements. Personal plans and validation artifacts stay outside the repository.