Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: pre-commit help

by
Therp, Tom Blauwendraat
- 15/08/2024 08:29:46
Not all the errors that precommit gives are automatically solved, some you have to solve them manually.

Usually the precommit log as displayed on the PR is pretty clear about what the problem is.

14 aug. 2024 23:01:57 Matt Taylor <notifications@odoo-community.org>:

I'm having trouble with pre-commit. Can someone give me a few tips?

I tried to follow the instructions in the README for maintainer-tools:


I installed maintainer-tools and activated the venv, then ran the following

.../repo/module$ pre-commit run --all-files --show-diff-on-failure --color=always

Still failing the pre-commit test on pull request.

Maybe there is more documentation that I am missing?

Matt

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference