-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
py-version should use maxversion and minversion #7569
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
Comments
It's a little more complicated than that : pylint can only be launched with python >= 3.7.2 but it can analyses code for python version older than that using py-version. Keeping this is not a very high maintenance burden so I'd say let's keep it and maybe use the proper py-version to prevent it being raised on interpreter where it's not pertinent. |
Makes sense. I was thinking:
Is there a reason to use py-version over sys.version? |
Yes, if |
Certainly, I will make a PR! |
@Pierre-Sassoulas I'm wondering if this is expected behavior? for a file named test.py
So I'm wondering what's going on? Is the code that handles maxversion not working right? I don't want to create a PR until I understand current behavior. |
Are we talking about a functional test configuration, the property of the checker, or something else ? |
In this statement what I mean is I literally went to this line and locally updated it from 3,5 to 3, 10. This was the only was able to see boolean-datetime in the output, despite having tried passing |
That |
Thank you for bringing up the issue. I think you found an issue with pylint's core. It sound like |
I don't think a separate issue is needed. The |
Sure, but it's included in the API of the checkers, some plugins are probably using this value. I agree that py-version is better. |
Oh yeah I didn't mean removing it as a functionality! |
What I have in mind right now is taking |
I'm not sure I understand what you mean with linking. |
If |
Ah yeah, that should work. Although it might be better to just refactor the few messages that actually use this? I'm not sure how extensible the max version code is. |
What would we add in message definition to specify their maximum and minimum |
Seems to me you're all saying we should move toward maxversion being a subset of py-version, with minversion being another subset. Max/min version would create an upper/lower bound on py-version. Some test cases to set us stragit:
do you agree? |
The use cases are ✔️ |
boolean-datetime
check
Current problem
According to pylint
Since only py3.7+ versions are supported, I think we can safely delete this checker.
Desired solution
Removal of all
boolean-datetime
checker code.Additional context
No response
The text was updated successfully, but these errors were encountered: