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
Upgrade linter versions to the newest versions that still install under both Python 2 and Python 3.7 #444
Conversation
We run linting under Python 3.6, but unfortunately the way that pipenv is currently set up requires the linters to successfully install under all environments, and TL;DR: My solution is ugly, but it works well enough to not be worth spending additional time on at the moment. |
isort = ">=4.3.4,<5" | ||
parameterized = ">=0.6.1,<1" | ||
pydocstyle = ">=2.1.1,<3" | ||
pylint = "==1.9.4" # v1.9.5 is marked as "python_requires < 3.7", update this after we're Py3+ only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be "python_requires > 3.7" ? (That being the reason why it doesn't work with python2.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. pylint>=2
is python_requires >= 3.3
, and pylint==1.9.5
is python_requires < 3.7
-- it explicitly does not support Python 3.7 and is 3.6-and-below only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the PR title to clarify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok got it. Misunderstood what this meant.
We picked up some bugfixes along the way, so I fixed the lint they detected, and also seemingly a bug in pylint, which I reported: pylint-dev/pylint#3039