-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Preferred way to find pylintrc in pylint 3 #8862
Comments
Why were you not using the |
I set the init-hook in pylintrc and called
but got an AttributeError. I'm using python 3.11.4 with pylint 3.0.0a6. |
Could you provide the stacktrace, please ? |
The constant was removed in 3318aa0#diff-24934165194ae0ca6e01c8e20fc7f7f24b54766260e02cac072c057a80cece49 following a deprecation period. I don't really understand your use case, but can't you just do a |
I understood now, remove the init-hook and use the rcfile option. |
Stacktrace:
If I use If I remove the |
If you want to change the pylintrc location then use the CLI's |
I think this is actually a common use case? You might be in a directory where one of the parent directories has your |
Then we would need to make |
This issue is observed while running flake8-pylint from pre-commit as additional dependencies for flake8.
Traceback (most recent call last): |
@sauing Please update your |
Thanks it works :) It was strange that all of sudden it stopped working for pre-commit since i moved to conda environment |
In this case it seems we need to fix the Doc on stackoverflow too: #9105 (comment) |
Question
I've been using
pylint.config.PYLINTRC
in the init-hook of the pylintrc to set up the PYTHONPATH.In pylint 3 this leads to an error
This method was much more convenient and portable than setting the PYTHONPATH outside of pylint.
What is the preferred way to do this in pylint 3?
Documentation for future user
Documentation, release notes
Additional context
No response
The text was updated successfully, but these errors were encountered: