Skip to content
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

Not compatible with flake8 5.0 #13

Comments

@NeilGirdhar
Copy link

  File "/Users/neil/Library/Caches/pypoetry/virtualenvs/generators-0uytuYoH-py3.10/lib/python3.10/site-packages/pflake8/__init__.py", line 54, in <module>
    class ModifiedConfigFileFinder(flake8.options.config.ConfigFileFinder):
AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'
@schinckel
Copy link

Looks like this class went away: instead the files that are checked are hard-coded inside a function:

https://github.com/PyCQA/flake8/blame/91a7fa9ac360be7f43b1325875cf5bf4fe89e380/src/flake8/options/config.py#L31

One alternative could be to use something like patchy to change this.

@NeilGirdhar
Copy link
Author

@schinckel That's a good idea!

@wieczorek1990
Copy link

Please see here:
PyCQA/flake8#1634

@wieczorek1990
Copy link

And here:
#14

@NeilGirdhar
Copy link
Author

NeilGirdhar commented Aug 1, 2022

Please see here:
PyCQA/flake8#1634

The MyPy team accepted a similar pull request from me ages ago python/mypy#11584. Even from a code quality standpoint, having constants at the top level rather than embedded within code is good style. It seems like Anthony is going out of his way to interfere with this project.

And here: #14

Thanks, this helps.

@wieczorek1990
Copy link

wieczorek1990 commented Aug 1, 2022 via email

@wieczorek1990
Copy link

wieczorek1990 commented Aug 1, 2022

Updated the pull request #14, so that it's compatible with flake8 version 5.

claudiubelu added a commit to claudiubelu/waltz-integration-juju that referenced this issue Aug 3, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved:
csachs/pyproject-flake8#13
claudiubelu added a commit to claudiubelu/waltz-integration-juju that referenced this issue Aug 3, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved:
csachs/pyproject-flake8#13
claudiubelu added a commit to finos/waltz-integration-juju that referenced this issue Aug 3, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved:
csachs/pyproject-flake8#13
flomonster added a commit to OpenRailAssociation/osrd that referenced this issue Aug 3, 2022
- pyproject-flake8 has an issue with flake8 v5 (csachs/pyproject-flake8#13)
- This commit pin flake8 version but should be revert once pflake8
  fixed.
multun pushed a commit to OpenRailAssociation/osrd that referenced this issue Aug 3, 2022
- pyproject-flake8 has an issue with flake8 v5 (csachs/pyproject-flake8#13)
- This commit pin flake8 version but should be revert once pflake8
  fixed.
claudiubelu added a commit to claudiubelu/legend-juju-sdlc-server-operator that referenced this issue Aug 9, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved:
csachs/pyproject-flake8#13
claudiubelu added a commit to finos/legend-juju-sdlc-server-operator that referenced this issue Aug 9, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved:
csachs/pyproject-flake8#13
simondeziel added a commit to simondeziel/charm-lxd that referenced this issue Aug 22, 2022
flake8 5.0 breaks pyproject-flake8:

csachs/pyproject-flake8#13

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@jaklan
Copy link

jaklan commented Aug 25, 2022

@NeilGirdhar

It seems like Anthony is going out of his way to interfere with this project.

The Anthony's fight against toml is one of the must frustrating things I have ever seen in the Python community. One guy doesn't like the agreed standard, so he does everything to sabotage its adoption... Anyway, I really cross my fingers for resolving the issue, so we could stay with pyproject.toml-only configs again!

claudiubelu added a commit to claudiubelu/certbot-k8s that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved:
csachs/pyproject-flake8#13
claudiubelu added a commit to pedroleaoc/certbot-k8s that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved:
csachs/pyproject-flake8#13
claudiubelu added a commit to claudiubelu/legend-juju-db-operator that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved: csachs/pyproject-flake8#13
claudiubelu added a commit to claudiubelu/legend-juju-engine-server-operator that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved: csachs/pyproject-flake8#13
claudiubelu added a commit to claudiubelu/legend-juju-gitlab-integrator that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved: csachs/pyproject-flake8#13
claudiubelu added a commit to claudiubelu/legend-juju-studio-operator that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved: csachs/pyproject-flake8#13
claudiubelu added a commit to claudiubelu/legend-juju-gitlab-integrator that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved: csachs/pyproject-flake8#13
claudiubelu added a commit to claudiubelu/legend-juju-db-operator that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved: csachs/pyproject-flake8#13
claudiubelu added a commit to finos/legend-juju-studio-operator that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved: csachs/pyproject-flake8#13
claudiubelu added a commit to finos/legend-juju-engine-server-operator that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved: csachs/pyproject-flake8#13
claudiubelu added a commit to finos/legend-juju-db-operator that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved: csachs/pyproject-flake8#13
claudiubelu added a commit to finos/legend-juju-gitlab-integrator that referenced this issue Sep 5, 2022
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved: csachs/pyproject-flake8#13
@csachs csachs closed this as completed in f890858 Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment