Repository navigation
Conversation
…etadata An optional .pre-commit-config.yaml for local commits; CI is unchanged. black and flake8 run the checks CI runs: black at the 26 release CI installs, flake8 stopping only on CI's critical errors. The general hooks catch large files, merge-conflict markers, broken YAML and TOML, missing final newlines, trailing whitespace, leftover breakpoints and private keys. no-commit-to-branch keeps commits off main, which changes only through pull requests. nbstripout keeps the example notebooks free of outputs and widget state. check-jsonschema validates the GitHub workflows, as release.yml runs only on a tag push, and CITATION.cff, which GitHub's citation and Zenodo read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…docs/usage.rst The fixes of end-of-file-fixer and trailing-whitespace, the only hooks that failed on the existing files. Three blank lines in the usage guide held only spaces; the rendered docs are unchanged. pre-commit run --all-files now passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
btyrcha
marked this pull request as draft
December 2, 2026 18:24
btyrcha
marked this pull request as ready for review
December 2, 2026 18:24
This branch has not been deployed
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.
An optional pre-commit configuration for local commits. CI is unchanged, and the hooks run only for those who install them:
pip install pre-commit # in the prop-sapt environment pre-commit installThe hooks:
pre-commit-hooks): files over 1 MB, merge-conflict markers, YAML and TOML syntax, final newlines, trailing whitespace, leftover breakpoints, private keys and shebangs.no-commit-to-branch: no commits onmain, which changes only through pull requests.SKIP=no-commit-to-branch git commit ...allows a deliberate exception.E9,F63,F7,F82).nbstripout: keeps the example notebooks free of outputs and widget state.check-jsonschema: checks the GitHub workflows andCITATION.cffagainst their schemas.release.ymlruns only on a tag push, and GitHub's citation and Zenodo readCITATION.cff, so mistakes in either would otherwise show up at release time.Left out after reviewing a broader suggested setup:
prop-sapt.yamlor to tolerance constants.detect-private-keycovers private keys.The first run over the existing files is included: a final newline in
LICENSE, and three blank lines indocs/usage.rstthat held only spaces.pre-commit run --all-filespasses on this branch.Not in this PR:
CONTRIBUTING.mddoesn't mention pre-commit yet.Tested on a clone with pre-commit 4.7.0:
no-commit-to-branchfails onmainand passes on a feature branch.runs-oninrelease.yml;cff-versioninCITATION.cff.🤖 Generated with Claude Code