#835 replace test copyright headers with ruff rule CPY#836
#835 replace test copyright headers with ruff rule CPY#836Jared Drayton (mo-jareddrayton) wants to merge 6 commits intomainfrom
Conversation
Matthew Mizielinski (matthew-mizielinski)
left a comment
There was a problem hiding this comment.
LGTM and makes this test a lot easier.
|
I take it that if we go ahead with this change we're just going to have to be aware from now on that it doesn't check non python files as opposed to the previous copyright checker which checked all of them? |
|
I'm not sure if you saw our discussion on teams about this Matthew Mizielinski (@matthew-mizielinski)? If not, the tldr is that this rule will only check |
The other files we have are |
This reverts commit 88e873c.
I'm not even sure what files are being checked other than CDDS/cdds/cdds/tests/test_coding_standards.py Lines 48 to 50 in 1eff13e I'll put it back in for now but at least we're more likely to pick up copyright issues during development with |
Closes #835
As noted by Ed (@mo-gill) the existing
test_coding_standards.pydoesn't actually test coding standards anymore and only checks for the copyright/license header. This PR replaces those tests incddsandmip_convertwith theruffruleCPY(see https://docs.astral.sh/ruff/rules/#flake8-copyright-cpy)A couple other changes include the removal of some spurious shebang lines and enabling the
previewmode onrufffor theCPYrule.