Skip to content

BUG validate_docstrings.py flake8 PermissionError #51244

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

Conversation

albuzenet
Copy link
Contributor

When running scripts/validate_docstrings.py on Windows11, flake8 cannot access the temporary file created by tempfile, a PermissionError is raised.
Setting delete=False in NamedTemporaryFile solve the issue.
Related issue : stackoverflow

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @albuzenet

@MarcoGorelli MarcoGorelli merged commit 03088a9 into pandas-dev:main Feb 9, 2023
@MarcoGorelli MarcoGorelli added this to the 2.0 milestone Feb 9, 2023
@MarcoGorelli MarcoGorelli added the Code Style Code style, linting, code_checks label Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants