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

Locally disable pylint E0110 as false positive #1192

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

matt-graham
Copy link
Collaborator

@matt-graham matt-graham commented Nov 13, 2023

Part of #1181.

The E0110 (abstract-class-instantiated) violation flagged by Pylint by instantiating pandas.ExcelWriter is a false positive (pylint-dev/pylint#3060), so this PR locally disables the rule at this usage.

Also refactors to use pandas.ExcelWriter as context manager as recommended in docs, which incidentally fixes a E1101: Instance of 'ExcelWriter' has no 'save' member; maybe '_save'? (no-member) Pylint violation (docs seem to suggest close is an alias of save but don't specifically document save suggesting it may not be an intended part of API) and removes global ignore of E0110 in pyproject.toml.

Also refactor to use ExcelWriter as context manager as recommended in docs
@matt-graham matt-graham merged commit d0029d0 into master Nov 13, 2023
55 checks passed
@matt-graham matt-graham deleted the mmg/locally-disable-e0110 branch November 13, 2023 23:04
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

Successfully merging this pull request may close these issues.

2 participants