Closed
Description
According to flake8's creator, the Application
class from flake8 isn't meant to be used a library. As their sole maintainer isn't the original author, the library's internals could well change without warning, and this would break scripts/validate_docstrings
.
This part probably wants changing:
pandas/scripts/validate_docstrings.py
Lines 186 to 199 in 77ea98e
We're already writing the docstring to a temporary file, so we could just run flake8
on that via subprocess.run