Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPY001: recognize copyright unicode symbol #10061

Closed
nijel opened this issue Feb 20, 2024 · 1 comment · Fixed by #10065
Closed

CPY001: recognize copyright unicode symbol #10061

nijel opened this issue Feb 20, 2024 · 1 comment · Fixed by #10065
Assignees
Labels
bug Something isn't working

Comments

@nijel
Copy link

nijel commented Feb 20, 2024

Following snippet:

# Copyright © 2024 Michal Čihař <michal@weblate.org>

Fails:

$ ruff check --preview weblate/wsgi.py 
weblate/wsgi.py:1:1: CPY001 Missing copyright notice at top of file
  |
1 | # Copyright © 2024 Michal Čihař <michal@weblate.org>
  |  CPY001

It doesn't understand ©, it only looks for (c).

@charliermarsh charliermarsh added the bug Something isn't working label Feb 20, 2024
@charliermarsh
Copy link
Member

Makes sense - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants