-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Message id 'W1601' cannot have both 'apply-builtin' and 'using-f-string-in-unsupported-version' as symbolic name. #5723
Comments
Could you post your |
hi @DanielNoord , I don't have a separate .pylintrc file, prospector.yml looks like this:
|
I opened prospector-dev/prospector#481 to see what is causing this. This also showed me a potential incompatibility with |
@renardeinside How did you run and install the repository? I checked out
This was starting from a fresh checkout and virtualenvironment; on the dbx repo I ran:
And I did not get this stack trace. |
I noticed that dev-requirements does not specify a pylint version: https://github.com/databrickslabs/dbx/blob/main/dev-requirements.txt Which means that the Will only upgrade things including prospector to their latest versions but will not upgrade prospector dependencies beyond the range specified: Which means that given the CI caches the virtualenvironment, you probably still have an older version of pylint perhaps as old as Since the cache uses the contents of Prospector is very backwards-compatible with pylint and I suspect that has caused your CI process having an older version of pylint still hanging around. |
hi @carlio , I was debugging the latest issues from prospector and wanted to run the linter locally - this is when I've met the error. I've noticed that probably I was using another conda env (base) locally which led to this error, thank you for the pointers (on the CI part as well)! Just as a side note, in the base conda env, it's still failing (although it has slightly different versions). It's not a blocker for me, but might be a topic for exploration. Here are the versions in the local, non-working env (base):
new env (working):
|
After discussion and investigation with @carlio in Do note that we have added additional checks against re-using deprecated message ids so warnings like these should be better avoided in the future. |
Bug description
I've recently upgraded prospector and pylint and run into the following:
Configuration
No response
Command used
Pylint output
Expected behavior
Something more helpful/useful for debugging purposes.
Pylint version
OS / Environment
macOS Big Sur 11.6.2
Additional dependencies
prospector==1.6.0
The text was updated successfully, but these errors were encountered: