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

Proposed Fix for pre-commit flake8 EntryPoints object has no attribute get #652

Open
teowenshen opened this issue Nov 3, 2022 · 0 comments

Comments

@teowenshen
Copy link
Contributor

Hi, I've been facing this flake8 error for pre-commit, and this was the fix I found to be added in pre-commit-config.yaml.

  - repo: https://github.com/PyCQA/flake8
    rev: 3.9.2
    hooks:
      - id: flake8
        args: [--max-line-length=80]
        additional_dependencies: ['importlib_metadata==4.3']

I was wondering - is anyone else facing this rather new issue? For me, it was the only way I can use the virtual environment by pre-commit.
It does introduce a dependency to pre-commit though. If that is okay with you, I can send in a pull request to update this.

Links:
python/importlib_metadata#406 (comment)
python/importlib_metadata#409 (comment)

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

No branches or pull requests

1 participant