mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-12 02:42:33 +01:00
Doc
This commit is contained in:
@@ -23,16 +23,17 @@ the project: `pre-commit-config.yaml`.
|
||||
|
||||
### Installation in your git project
|
||||
|
||||
1. Install `pre-commit` tool.\
|
||||
1. Install pre-commit tool.\
|
||||
If you do not have python installed, install [python](https://www.python.org) first.\
|
||||
If you do not have [`pip`](https://pypi.org/project/pip), install that as well.\\
|
||||
|
||||
Then you can install pre-commit tool: `python -m pip install pre-commit`.
|
||||
Then you can install pre-commit tool:
|
||||
`python3 -m pip install pre-commit`
|
||||
|
||||
2. In your local git clone of the project, run `pre-commit install` to add the hooks.\
|
||||
or copy the file git/hooks/pre-commit manually. (recommended because this file differs
|
||||
from the file installed with pre-commit install as it redirects output to the error
|
||||
channel so your IDE will be able to catch the error.
|
||||
2. In your local git clone of the project, run `pre-commit install` to add the hooks
|
||||
or copy the file *dev/setup/git/hooks/pre-commit* manually into *.git/hooks/pre-commit*
|
||||
(recommended because this file may differ from the file installed with the pre-commit install).
|
||||
The good file redirects output to the error channel so your IDE will be able to catch the error.
|
||||
|
||||
|
||||
### Tips
|
||||
|
||||
Reference in New Issue
Block a user