-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI add end-of-file-fixer #36826
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
CI add end-of-file-fixer #36826
Conversation
I actually get an error when I try to use this or the yesqa hook (it's the same error), do you know what this might be about:
Full log: version information
error information
|
I've seen that before, yes - I think |
I did that and a different error happens:
Might be the same issue as here: pypa/virtualenv#1876 |
I think I was able to fix it by uninstalling virtualenv in my base conda environment and then reinstalling virtualenv in my pandas-dev environment, but I wonder if this warrants some type of note somewhere for anyone who might have the same problem? |
.pre-commit-config.yaml
Outdated
rev: v3.2.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
exclude: '.html$|^LICENSES/|.csv$|.txt$|.svg$' |
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 wonder if we might actually want to exclude .py files and only check others (e.g., .yml), since I think .py files will already fail black if they're missing the EOF newline?
xref #36600 (comment)
Note: in addition to adding the end-of-file-fixer pre-commit hook, I applied the following
I don't know how many of these we want to apply this to, for now I'm just excluding licenses (which I don't think should be touched?), html, txt, svg,and csv files