Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: pre-commit help

by
ClosingAp Open Source Integrators Europe, LDA, Daniel Reis
- 14/08/2024 23:17:28
To run pre-commit, you first need to install it:
$ pip install pre-commit

And then in (each) cloned repo, install the pre-commit hooks with:
$ pre-commit install

Now you can run :
$ pre-commit run -a

At least that's what works for me.

--Daniel
 

On 14/08/2024 22:01, Matt Taylor wrote:
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


--
DANIEL REIS
MANAGING PARTNER

Meet with me.
M: +351 919 991 307
E: dreis@OpenSourceIntegrators.com
A: Avenida da República 3000, Estoril Office Center, 2649-517 Cascais

[Logo OpenSourceIntegrators.com]

Reference