-
Notifications
You must be signed in to change notification settings - Fork 186
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
[BUG] Missing or unnecessary utf-8 header in .py files #613
Comments
can i pick this up ? |
Is there some background information about why coding declarations are required in this codebase? My understanding is that UTF-8 is the default for Python source files (ref). |
@jayaddison You actually have a point, these might not be required at all. I think when I did #557 I was lazy and didn't actually check and added them because they were in some places. @samuelorji feel free to remove them if that's right. We should probably ensure we have tests that have some UTF-8 in them and that it's decoded properly. I updated the issue title/description accordingly. |
Thanks @dblock - yep, unless there is a specific reason to specify UTF-8 for forwards-looking reasons (not that I'd expect Python to change the default any time soon), or for some editor/environmental reason that requires it, I think fewer moving parts (in particular, not needing a lintcheck) could make sense. I won't touch the code myself given that there's interest from others in it, though I'll try to remember to check back on this in a few weeks/months. |
Looks like @samuelorji is picking this up, but don't let us stop you from contributing any time you can @jayaddison! |
@dblock I think this can now be closed? |
What is the bug?
In #557 we added UTF-8 headers, but lost them in bcfef11 again. Do we need them?
What is the expected behavior?
Either have them or don't have them, and add a linter that ensures headers are present/not present in all files.
The text was updated successfully, but these errors were encountered: