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

Pylint-File-Header doesn't work with Pylint 3.0 #6

Closed
chlafreniere opened this issue Oct 5, 2023 · 2 comments
Closed

Pylint-File-Header doesn't work with Pylint 3.0 #6

chlafreniere opened this issue Oct 5, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@chlafreniere
Copy link

Python Version Pylint Version pylintfileheader Version
3.9 3.0.0 0.3.2

Description

Given pylint's 3.0.0 release, IRawChecker was removed (I believe in this PR)

Expected Behavior

When running pylint, all imports succeed

Actual Behavior

  from pylintfileheader import plugin, file_header_checker  # noqa: F401
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pylintfileheader/plugin.py", line 10, in <module>
  from pylintfileheader.file_header_checker import FileHeaderChecker
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pylintfileheader/file_header_checker.py", line 9, in <module>
  from pylint.interfaces import IRawChecker
ImportError: cannot import name 'IRawChecker' from 'pylint.interfaces' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pylint/interfaces.py)```


# Steps to Reproduce
<!-- Please add here all necessary steps that need to be taken to reproduce the behavior. -->
1. Install pylint (v3.0.0)
2. Install pylintfileheader
3. Run pylint
4. ImportError occurs

</code></pre></details>
@HaaLeo
Copy link
Owner

HaaLeo commented Oct 9, 2023

Hi @chlafreniere thx for reporting this issue. I'll happily accept a PR for this. Right now I cannot estimate when I'll find time to fix this on my own to support pylint@3

@HaaLeo HaaLeo added enhancement New feature or request help wanted Extra attention is needed labels Oct 9, 2023
@HaaLeo HaaLeo pinned this issue Oct 9, 2023
@HaaLeo
Copy link
Owner

HaaLeo commented Nov 1, 2023

fixed with version v1.0.0

@HaaLeo HaaLeo closed this as completed Nov 1, 2023
@HaaLeo HaaLeo unpinned this issue Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants