Repository navigation
Exclude lock files - #4
Conversation
There was a problem hiding this comment.
AI review (gpt-6-astra)
This PR filters lock files and generated output out of automated review diffs and adds configurable exclusion patterns to the reusable workflow.
Findings
pr_review/review.py:102— Git-quoted paths bypass exclusions. Git can quote and escape paths containing non-ASCII characters, tabs, or quotes, producing headers such asdiff --git "a/…" "b/…". The regex only accepts unquoted paths, so lock files and explicitly excluded files under those paths remain in the review and can consume the diff budget. Parse and decode Git’s quoted header paths before matching exclusions, and add tests covering quoted paths alongside ordinary paths.
Reviewed at b137248. Automated review; use your judgment.
jamie-sgro
left a comment
There was a problem hiding this comment.
Good direction, some suggestions mainly to trim down the longer bits
|
|
||
| class SectionPathTest(unittest.TestCase): | ||
| def test_cases(self): | ||
| for desc, text, expected in CASES: |
There was a problem hiding this comment.
Actually easiest is to just point your LLLM to this keyfraym PR where I recently added the minimum for our pytest suite. It can copy that pretty closely.
In your prompts include notes about moving pr_review/test_review.py into a /tests folder that mirrors the folder structure of our prod files. Copy the configurations and pytest.ini stuff, mirroring the conventions from there.
There was a problem hiding this comment.
[optional, out of scope] Love we're writing tests, bonus points if we get a PR later that adds them to our cicd PR process
|
@jamie-sgro the scope of this PR increase a little bit, i did not want to merge until you got a chance to give it one more look, feel free to merge as well |
There was a problem hiding this comment.
lol, remember when our work was done through notebooks? RIP
Why & What
Review instructions