-
Notifications
You must be signed in to change notification settings - Fork 159
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
flake8 config error #540
Comments
@asottile can you help making such bugs impossible in the future? Implementing PyCQA/flake8#234 might be an easy way to do it. |
Nice catch @ivirshup. Sorry for this. I'll fix the config file. |
@flying-sheep has the first issue here been resolved PyCQA/flake8#234 (comment)? If not, I don't think this is going to happen anytime soon. Even after this is implemented for @Zethson no worries, all three of us managed to miss this. I'd really expect this sort of thing to cause a parse error. |
really, this was all just a ploy to @ mention me about the pyproject.toml issue? welcome to my blocklist |
@ivirshup yes it has been. pyproject.toml needs to have the @asottile No, but I’m sorry I touched an apparently very emotional issue for you. I mentioned it because it’s the easy way. Manual validation would be another option that’s harder to implement. But if you really blocked me you’re not going to read this anyway … |
it has not, the presence of the file alone still changes pip's behaviour in 21.0.1 |
Oh interesting! I thought this was about when the presence of /edit: Ah found it. pypa/pip#8437 (comment) So basically the’re saying that the only code path that changes is very much deprecated. Therefore, if I understand correctly, the behavior that happens when
Important part:
So I guess when they finally delete that code and only the new behavior exists, there will be no differential behavior anymore. |
This issue has been automatically marked as stale because it has not had recent activity. |
Fixed in #863 and then superseded by #891. Anyone interested in isolated builds in pip can go here: pypa/pip#9175 |
There is a space in front of the
per-file-ignore
entry in theflake8
config (added in scverse/scanpy#1689). This is the same in scanpy, as the config here was just copied from there. This causes a parse failure which leads to the theper-file-ignore
s becoming global instead. To demonstrate:Parse failure
From the root of the repo
Fixing the parse error reveals a number of flake8 errors which were accidentally being ignored. I came across this while adding back
F401
, since it should only be ignored for files which define a namespace.It is kind of ironic that a tool for enforcement of code style is permissive to a fault about config parsing.
(ping @Zethson)
The text was updated successfully, but these errors were encountered: