-
Notifications
You must be signed in to change notification settings - Fork 15
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
[IMP] use python3.8 for pre-commit-vauxoo #204
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportPatch and project coverage have no change.
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #204 +/- ##
=======================================
Coverage 81.98% 81.98%
=======================================
Files 7 7
Lines 594 594
Branches 111 111
=======================================
Hits 487 487
Misses 77 77
Partials 30 30 ☔ View full report in Codecov by Sentry. |
Can you review? I did not understand the comment about having to create a new image, I think we can simply install python3.8 and it can coexist with the default interpreter. I tested this on absa:
|
We have 2 matters to fix here
So, currently, running the CI it could have different results since it is using py3.8 but the project itself is developed from another py version So, IMHO the lints from the CI should run from the same python version of the image e.g. for newer py version the lint could raises I don't know if I was clear |
I mean, we need to fix the point 1) instead of force old py version for 2) |
Makes sense. It seems like the script should only install python3.8 when the interpreter is lower than that, otherwise just use the default one. Do you agree @moylop260 @luisg123v |
0b8c661
to
93ed00a
Compare
Closes Vauxoo#203. pre-commit-vauxoo requires Python 3.7 or greater to run. Some containers in Odoo 12 and below are using Python 3.6, as a workaround, if the Python version detected is not suitable, Python 3.8 will be installed and used for running pre-commit-vauxoo.
I updated the PR, it will only install it if the Python version is lower than 3.7, this is thinking on Odoo 12 containers (runs on Python 3.6). But re-reading your comment, does this mean each PM should just change their variables.sh and use a supported version? |
Closes #203.
pre-commit-vauxoo requires Python 3.7 or greater to run. Some containers
in Odoo 12 and below are using Python 3.6, as a workaround, if the
Python version detected is not suitable, Python 3.8 will be installed
and used for running pre-commit-vauxoo.