-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
STYLE: specify encodings when opening files #52963 #52997
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
Conversation
KetuPatel806
commented
Apr 29, 2023
•
edited
Loading
edited
- closes STYLE: specify encodings when opening files #52963 (Replace STYLE: specify encodings when opening files #52963 with the GitHub issue number)
- Tests added and passed if fixing a bug or adding a new feature
- All code checks passed.
- Added type annotations to new arguments/methods/functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for working on this
does pre-commit run unspecified-encoding --hook-stage manual
pass?
@@ -0,0 +1,432 @@ | |||
minimum_pre_commit_version: 2.15.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this file? could you remove it please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if i remove it. it given some error instruction of that line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please unstage this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there no need of b/.pre-commit-config.yaml this file??
.pre-commit-config.yaml
Outdated
- id: pylint | ||
alias: unspecified-encoding | ||
name: Using open without explicitly specifying an encoding | ||
args: [--disable=all, --enable=unspecified-encoding] | ||
stages: [manual] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you keep the alignment that there is in the rest of the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think alignment are perfect for rest of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-commit run unspecified-encoding --hook-stage manual which was skipped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- id: pylint | |
alias: unspecified-encoding | |
name: Using open without explicitly specifying an encoding | |
args: [--disable=all, --enable=unspecified-encoding] | |
stages: [manual] | |
- id: pylint | |
alias: unspecified-encoding | |
name: Using open without explicitly specifying an encoding | |
args: [--disable=all, --enable=unspecified-encoding] | |
stages: [manual] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll do it.