Repository navigation
fix: allow single file specification - #261
Jenny Hickson (jennyhickson) merged 1 commit into
Conversation
Jenny Hickson (jennyhickson)
left a comment
There was a problem hiding this comment.
I think this does what it says on the tin, assuming that you're happy to only check a single file in both full-check and CMS modes, rather than just in full-check mode?
hmmmm, that's the reverse of the direction I came from. I think combining a single file with a CMS check would be be a bit surplus to requirements. The CMS mode is basically to allow it to automagically create a list of files to check from those the CMS records as changed. Combining the two would be the equivalent of "check this file, but only if the CMS says I've changed it" - without a reasonable amount of extra logic, it would just return "0 files checked, 0 files failed" if you hadn't changed the file. So the assumption is that if you've asked it to look at a single file, it just does that, regardless of what the CMS says about it's changed status. The (my) assumption is that if you want to focus the check on a single file, it's probably because you want the verbose output (in isolation to all the output from all the files) to create a ToDo list of things to fix. |
Those seem like fair assumptions and logical conclusions 😸 |
PR Summary
UMDP3 checker: Allows specification of a single file to check on the command line
Sci/Tech Reviewer: assumed trivial
Code Reviewer: Jenny Hickson (@jennyhickson)
Simpler than expected change to allow the specification of a single file on the command line to run the UMDP3 checker on that file
Code Quality Checklist
Testing
Test has been run passing either a single filename on the command line, or a directory name with and without the
--fullcheckoption. All 3 runs behaved as expected.ruff formatdidn't object to the new lines (for a change)pytest successfully ran all checks present.
Security Considerations
AI Assistance and Attribution
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review