Skip to content

Run only the relevant checks before creating a PR - #212

Merged
namurphy merged 2 commits into
PlasmaPy:mainfrom
namurphy:skip-checks-for-markdown
Dec 1, 2026
Merged

namurphy merged 2 commits into
PlasmaPy:mainfrom
namurphy:skip-checks-for-markdown

Conversation

@namurphy

@namurphy namurphy commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Description

This PR adds a section to AGENTS.md with a table of which checks to run before creating a pull request, depending on which kinds of files are changed.

Motivation

Running all of the tests and other checks takes several minutes, and many of them are not affected by a particular change. For example, changes to only Markdown files need only linting. All of the checks still run in CI.

Details

  • The table replaces the instructions to run the tests with both Python 3.13 and 3.14 and to lint files, which are now part of the new section.
  • If only files in tests/ are changed, then only the changed tests are run locally, so interactions with other tests would be found in CI.
  • The row on docstrings and comments relies on checking that no code has changed.
  • Following the new instructions, only linting was run for this PR.

🤖 Generated with Claude Code

namurphy and others added 2 commits December 1, 2026 12:42
Tests and other checks take several minutes, and are not affected by
changes to only Markdown files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the instructions on tests and Markdown files with a table of the
checks for each kind of file, since running all of them takes several
minutes and CI runs them on each pull request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@namurphy namurphy changed the title Skip checks besides linting for Markdown changes Run only the relevant checks before creating a PR Dec 1, 2026
@namurphy
namurphy merged commit 3beee29 into PlasmaPy:main Dec 1, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant