Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Do not import pep8 always/unnecessarily #3

Description

@sigmavirus24

In GitLab by @blueyed on Jan 8, 2019, 14:07

In https://gitlab.com/pycqa/flake8-polyfill/blob/8664f8e3186ecb0dfdfa057787dc9a6f426ed32c/src/flake8_polyfill/stdin.py#L2-5 pep8 gets imported always, which might trigger https://gitlab.com/pycqa/flake8-docstrings/issues/28 (because pycodestyle's wheel itself ships pep8.py (PyCQA/pycodestyle#745)).

I think it makes sense to only try to import it on demand in general, i.e. it would not import it when only pycodestyle should get patched.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions