Repository navigation
Adopt next's CLAUDE.md on main (includes #1144) - #1162
Merged
Merged
Conversation
…ilot mirror Adds five rules after "Code Quality Standards", proposed in the review of #1132 and adopted by the maintainer: - `None` must name a value, not a gap - Keyword-only arguments - Import placement - Private names do not cross module boundaries - Named states are literals, not free text Adapted from the proposal: rule 5 has no UNKNOWN member, and a stored string that is not a member is rejected, not mapped to a fallback (the maintainer's decision for calibrations, #1141). Rule 4's NXstress file list names only files on `next`. A review pass corrected factual claims (existing functions already cross the keyword-only threshold; three deferred imports in _peaks.py; one source default, in HidraSetup), "Three things", and the examples' return type hints. Adds .github/copilot-instructions.md, which CLAUDE.md has always named as its mirror but which did not exist: the same text, with links relative to .github/. Refs #1132 (cherry picked from commit b583287, the #1144 change; applied to main) Assisted-by: Claude Code
Bring the Claude Code instructions here to the state they have on next, as requested: the constitution, the `Deferred defects` principle, the four-tier test section moved to tests/CLAUDE.md, and the code style that CLAUDE.md links to in docs/developer/source/code_style.rst. The Copilot mirror already matched. Taken as is from origin/next, so several things they mention (the ring_calibration marker and test-ci-* tasks, docs/deferred_defects.md, pytest-xdist settings) belong to other changes that are not on this branch. Assisted-by: Claude Code
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.
Brings the Claude Code instructions on
mainto the state they have onnext: the sameCLAUDE.md,tests/CLAUDE.mdand.github/copilot-instructions.md, plusdocs/developer/source/code_style.rst, whichCLAUDE.mdlinks to.Two commits:
b583287c), cherry-picked: the five coding rules from the NXstress writes the calibration file's detector chain (#1099) #1132 review, and the Copilot mirror.next's version of these files, taken as is: the constitution, theDeferred defectsprinciple, the test-tier section moved totests/CLAUDE.md, and the full code style moved to the developer docs. The four files are now identical toorigin/next.Things in the instructions that this branch does not have yet
Because the files are taken as is, they mention items that belong to other changes on
next:ring_calibrationmarker, thetest-ci-*pixi tasks and the pytest-xdist settings (CI/tests: run the suite in parallel with pytest-xdist #1100, Tests: audit the slow unit tests (85% of unit time is 3 modules) #1101);docs/deferred_defects.md(arrived with the NXstress hookup);.claude/agents/skill-installer.mdis still present here;nextremoved it, andCLAUDE.mdno longer lists it.Documentation only: no code or tests change.
Assisted-by: Claude Code