-
Notifications
You must be signed in to change notification settings - Fork 91
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
[FIX][15.0] branches Update flake8 autoflake #243
base: master
Are you sure you want to change the base?
Conversation
Please put a link to a CI job with such problem. |
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.
This Pr fixes #257
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.
LGTM 👍
The referred PR was merged, so isn't this something specific on your side due to newer Python? |
This PR has the |
I assume you're referring to this: Repo template may need update as well. #243 Originally posted by @bosd in OCA/stock-logistics-warehouse#1913 (comment) |
This is unnecessary, updating maintainer-tools to f81a2cd8b3e7ba06d96a6fc8c944e6c7174faf7f will fix it: |
Изменения сделал на основе OCA/oca-addons-repo-template#243
Hello, The problem happends when you run pre-commit with an up-to-date python version (python 3.12 in my case) as it is not compatible with flake8 3.9.2 I have this issue for almost all OCA repo for version 14, 16... |
Should we merge this? |
@bosd Can you rebase to resolve the conflict ? |
@florian-dacosta Done. Rebased and added the update for <v15 |
Indeed this pr is still needed as in: OCA/sale-workflow#3411 |
The risk with this PR is that the new flake8 version will have new rules that make existing branches red on many repos. That is why we pin the versions of the hooks. The other approach is to set the python version in the pre-commit config (something like #282) but then devs need to install multiple python versions. This is my personal preference, because nowadays it is easier and faster than ever to install different python versions with tools such as mise or uv. And there is also the nix approach which I have not evaluated in details. The drawback of that one is that it seems to be more complex to setup. |
Fixes 15.0 branches:
As spotted in 15.0 branch of https://github.com/OCA/stock-logistics-warehouse/tree/15.0
job: https://github.com/OCA/stock-logistics-warehouse/actions/runs/6711504373/job/18239016420
CI on 15.0 PR are red.
autoflake
flake8