Repository navigation
Untrack __pycache__ files and add CI workflow - #1
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VDLtceXNvT4JLKotTJL5KN
ctfle
commented
Oct 26, 2026
ctfle
left a comment
Owner
Author
There was a problem hiding this comment.
Self-review of the diff (cannot approve my own PR). No blockers; the points below are things to check or tighten.
Pycache removal: exactly the 19 tracked .pyc files are deleted, and __pycache__/ and *.py[cod] are already in .gitignore. Fine.
.github/workflows/ci.yml
- Unverified: no check runs are reported on the head commit yet, so the workflow has not run. Actions may need to be enabled for the repo. The first run decides whether the MPI step works (
libopenmpi-devbuild of mpi4py,--oversubscribe,pytest-mpi). - Token permissions: add
permissions: contents: readat the top, since the jobs only read the repo. - Duplicated runs: the plain
pyteststep also collectstests/mpi. I expect thewith_mpitests to be skipped there, but check that on the first run. If they are not, add--ignore=tests/mpito that step. --allow-run-as-root: GitHub runners are not root, so this flag is probably unnecessary. Harmless, but can be dropped.- Speed: consider
cache: piponsetup-python, and aconcurrencygroup so superseded runs on a PR are cancelled. - Lint scope: the gate is limited to
E9,F63,F7,F82on purpose. The full default rule set reports ~294 findings andruff format --checkflags 4 files. Widening it is a follow-up.
Not covered: docs/html/ is still tracked (stated in the description).
Generated by Claude Code
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VDLtceXNvT4JLKotTJL5KN
ctfle
added a commit
that referenced
this pull request
Nov 6, 2026
* Untrack committed __pycache__ files and add CI workflow * CI: restrict workflow token to read-only contents
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
__pycache__/*.pycfiles that were committed despite being listed in.gitignore..github/workflows/ci.yml(runs on pushes tomainand on pull requests):ruff check --select E9,F63,F7,F82(syntax errors and undefined names only; the full default rule set reports ~294 findings and is not gated yet).pytest, thenmpirun -n 2 pytest --with-mpi tests/mpi, on Python 3.10 with OpenMPI.Not included
docs/html/is still tracked, since the GitHub Pages site appears to be served fromdocs/.Test plan
Generated by Claude Code