Skip to content

Linted #75

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

Closed
wants to merge 3 commits into from
Closed

Linted #75

wants to merge 3 commits into from

Conversation

evaherrada
Copy link
Collaborator

No description provided.

@evaherrada
Copy link
Collaborator Author

evaherrada commented Nov 5, 2021

had to disable unspecified-encoding in a few spots. Looked into it a bit, and to be honest I feel like we should get rid of the check org-wide. I've come across it in a few places and every time I came across it I ended up disabling it.

@evaherrada evaherrada requested a review from kattni November 5, 2021 07:00
f.write("Blinka\nBlackberry Q10 Keyboard")
f.close()
with open( # pylint: disable=unspecified-encoding
"/sd/tft_featherwing.txt", "w"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused here - it was my understanding that the "w" is the encoding. Same for the "r" below. I don't understand why Pylint is throwing this error here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait no, that's mode. You may be right about disabling org-wide. I'll think on it.

@kattni
Copy link
Contributor

kattni commented Nov 5, 2021

I'm also wondering why it's not failing on other libraries that have open() without encoding specified.

@evaherrada
Copy link
Collaborator Author

@kattni I think they are now. Pretty sure it's just because we changed the pylint version. It's a pretty recent one

@kattni
Copy link
Contributor

kattni commented Nov 5, 2021

I was referring to a few that I merged earlier that were not disabled, but the PR passed. Either way, we're disabling globally at this point. So it's fine.

@evaherrada evaherrada requested a review from kattni November 5, 2021 19:41
Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please remove the unspecified-encoding disables?

@evaherrada
Copy link
Collaborator Author

Sure

@kattni
Copy link
Contributor

kattni commented Nov 5, 2021

@dherrada I'm going to give the contributor on #74 an opportunity to integrate these changes into their PR before merging this one over theirs. Please still remove the disable I mentioned in my last comment, so they have the appropriate set of changes to work with. If they're not interested in integrating into their PR, I'll merge this at that point.

@evaherrada
Copy link
Collaborator Author

Ah ok

f = open("/sd/tft_featherwing.txt", "w")
f.write("Blinka\nBlackberry Q10 Keyboard")
f.close()
with open( # pylint: disable=unspecified-encoding
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dherrada You missed two :)

@tekktrik tekktrik mentioned this pull request Nov 5, 2021
@kattni
Copy link
Contributor

kattni commented Nov 5, 2021

Closing in favor of #74

@kattni kattni closed this Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants