Some hooks for pre-commit.
See also original repo: https://github.com/pre-commit/pre-commit
Add this to your .pre-commit-config.yaml
- repo: https://github.com/mircodariol/pre-commit-hooks
rev: v1.0.0 # Use the ref you want to point at
hooks:
- id: disable-periodic-background-checks
- id: erase-data-loader-keys
- id: erase-vendor-code
# - id: ...
Disable sentinel periodic background checks to avoid the error sentinel hasp not found when a tablet/PC is resumed from the hybernation.
Remove all data loader keys from envelope project files.
Remove all vendor code related secret from envelope project files.
After configuring your .pre-commit-config.yaml
, run the following command to install the pre-commit hooks:
pre-commit install
Now, the hooks will run automatically on every commit. You can also run the hooks manually on all files:
pre-commit run --all-files
To develop and test the hooks locally, you can use the following commands:
pip install -r requirements-dev.txt
To run the tests, you need to have pytest installed. You can install it using pip:
pip install pytest
Then, run the tests using the following command:
pytest
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
For any questions or suggestions, please contact Mirco Dariol at [email protected].