Replies: 1 comment 1 reply
-
Hey @durumu Mind chiming in on the existing issue at #5709 instead? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would find it very useful if a
flake8-copyright
rule could auto-add a hardcoded disclaimer, e.g.# Property of ExampleCo
. I'm happy to implement this autofix myself. However, I'm not sure how this would interact with the existingnotice-rgx
. Here are a few ideas, though I'm very open to others:CPY002
, that uses a hardcoded string rather than a regex, and add this string to the top of the file whenever it is not present there.notice-raw = "Property of ExampleCo"
, that is used for the autofix. In this case, the rule would be ifnotice-rgx
doesn't matchnotice-raw
,notice-raw
would be added to the top of the file.notice-rgx
is hardcoded.Would love to hear your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions