-
Notifications
You must be signed in to change notification settings - Fork 20
Python Requirements Update (with fix for pylint 2.15 compatibility) #208
Conversation
Thanks for the pull request, @bradenmacdonald! As a core committer in this repo, you can merge this once the pull request is approved per the core committer reviewer requirements and according to the agreement with your edX Champion. |
@Agrendalath Could you please give this a quick look/review before I merge? |
701ffe2
to
e5a3cd4
Compare
e5a3cd4
to
c092840
Compare
c092840
to
c2a782b
Compare
@@ -111,7 +111,7 @@ html_coverage: ## Generate HTML coverage report | |||
|
|||
quality: ## Run quality checks | |||
${VENV_BIN}/pycodestyle --config=pycodestyle blockstore *.py | |||
${VENV_BIN}/pylint --django-settings-module=blockstore.settings.test --rcfile=pylintrc blockstore *.py | |||
${VENV_BIN}/pylint --django-settings-module=blockstore.settings.test blockstore *.py |
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.
It's not necessary to specify pylintrc
as it's the default config file used.
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.
👍
- I tested this: checked that the quality tests are passing locally
- I read through the code
- I checked for accessibility issues: n/a
- Includes documentation
- I made sure any change in configuration variables is reflected in the corresponding client's
configuration-secure
repository: n/a
requirements/docs.txt
Outdated
@@ -1,5 +1,5 @@ | |||
# | |||
# This file is autogenerated by pip-compile with python 3.8 | |||
# This file is autogenerated by pip-compile with python 3.10 |
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.
Nit: why is the header updated to Python 3.10
in local.txt
, docs.txt
, and test.txt
, but not, e.g. for production.txt
? I thought the make upgrade
command would upgrade it for all files.
Using Python 3.10 with make upgrade
could potentially update packages to versions that are no longer compatible with Python 3.8, which is fine for the CI, but not so fine for production requirements. We may want to be consistent here and use only Python 3.8 unless we test both versions in the CI.
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.
Whoops, my bad. I tried not to commit the "3.10" but missed a couple. And you're right, better to run it with 3.8 in the first place, so that's what I've done now. I don't think it changed anything besides a comment about which packages depend on typing-extensions
1fe9b48
to
188656a
Compare
@jristau1984: thought you might like to know that bradenmacdonald merged this pull request. |
@bradenmacdonald 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Thanks for the great reviews @Agrendalath . |
Description
This has all the version bumps from #206 and some additional minor ones, along with various little fixes to make this work with pylint 2.15.x.
The main error seen with pylint 2.15 (also copied below) was due to
""
missing fromsys.path
. Why this happened is unknown, but I have put in a hack inpylintrc_tweaks
which has worked around the issue for now.