cylc-flow
cylc-flow copied to clipboard
Allow CLI selection of a single rule to check.
Closes #5544
Additionally...
Fix a bug where empty flow.cylc files caused traceback.
To replicate
mkdir ~/cylc-src/foo
touch ~/cylc-src/foo/flow.cylc
cylc lint ~/cylc-src/foo
Check List
- [x] I have read
CONTRIBUTING.mdand added my name as a Code Contributor. - [x] Contains logically grouped changes (else tidy your branch by rebase).
- [x] Does not contain off-topic changes (use other PRs for other changes).
- [x] Applied any dependency changes to both
setup.cfg(andconda-environment.ymlif present). - [x] Tests are included (or explain why tests are not needed).
- [x]
CHANGES.mdentry included if this is a change that can affect users - [x] Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
- [x] If this is a bug fix, PR should be raised against the relevant
?.?.xbranch.
PR title and description don't appear to match?
Does this do both? If so maybe a bugfix changelog entry?
Does this do both? If so maybe a bugfix changelog entry?
Yes. Sorry - original text not super clear. Have added the changelog entry as suggested.
Redrafting - not a priority
Roll this into the full refactor of Cylc Lint - probably a good training day activity for Tim