Update README.md

This commit is contained in:
Laurent Destailleur 2025-02-16 14:00:52 +01:00 committed by GitHub
parent 63c0e8a513
commit 2f409f0065
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,8 +44,22 @@ the project: `pre-commit-config.yaml`.
The good file redirects output to the error channel so your IDE will be able to catch the error.
### Troubleshooting
# If you get error "ModuleNotFoundError: No module named 'platformdirs'"
Install the python package with
`pip3 install platformdirs` or `pip3 install platformdirs --break-system-packages`
# if yoy get error "ERROR: PHP_CodeSniffer requires the tokenizer, xmlwriter and SimpleXML extensions to be enabled. Please enable xmlwriter and SimpleXML."
Install the PHP package xml
`sudo apt install php-simplexml`
### Tips
After installing `pre-commit` onto your local git clone, pre-commit will run
on every commit. The first time, all tools required by pre-commit will be installed
into ~/.cache/pre-commit