Repository navigation
ci: let Sourcery skip rule-test fixtures - #306
Merged
Merged
Conversation
The semgrep and ast-grep rule tests contain findings on purpose, but Sourcery reviews them and fails its check. Add a versioned .sourcery.yaml whose ignore list skips the fixtures (keeping Sourcery's default ignores); the rule files themselves stay reviewed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds a repository-level File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #306 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 29 29
Lines 2469 2469
=========================================
Hits 2469 2469 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
October 24, 2026 13:48
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
Adds a versioned
.sourcery.yamlwhoseignorelist skips the semgrep and ast-grep rule-test fixtures (.semgrep/*.py,.semgrep/*.test.yaml,.ast-grep/rule-tests/). These contain findings on purpose, but Sourcery reviews them and fails its check (see elixir-cloud-aai/trs-filer#149). The rule files themselves stay reviewed, because Sourcery's comments on them were useful. Sourcery's default ignores are kept, since settingignorereplaces them. The same file goes into foca, cloud-registry, proTES and trs-filer.Syntax: the
ignorefield of the.sourcery.yamlreference (archived 2025-06), which says it "affects the IDE plugins, the CLI, and GitHub". The current docs only describe the dashboard's "Path Filters" (review settings) and don't mention.sourcery.yaml, so whether the file still applies to PR reviews must be checked on a PR that touches the fixtures.Light lane: configuration only (one new YAML file, no code, no secrets, no workflows), so no reviewer subagents; I reviewed the diff myself.
Verification
pre-commit run --files .sourcery.yaml: all hooks passed (check yaml, end of files, trailing whitespace, semgrep, …)Open questions
None.
Closes #305
🤖 Generated with Claude Code
Summary by Sourcery
Enhancements: