Implement copyright notice detection (#4701)

## Summary

Add copyright notice detection to enforce the presence of copyright
headers in Python files.

Configurable settings include: the relevant regular expression, the
author name, and the minimum file size, similar to
[flake8-copyright](https://github.com/savoirfairelinux/flake8-copyright).

Closes https://github.com/charliermarsh/ruff/issues/3579

---------

Signed-off-by: ryan <ryang@waabi.ai>
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
This commit is contained in:
Ryan Yang
2023-06-10 19:17:58 -07:00
committed by GitHub
parent 9f7cc86a22
commit ab3c02342b
26 changed files with 465 additions and 24 deletions

View File

@@ -15,6 +15,7 @@ ignore = [
"D", # pydocstyle
"PL", # pylint
"S", # bandit
"CPY", # copyright
"G", # flake8-logging
"T", # flake8-print
"FBT", # flake8-boolean-trap