-
Notifications
You must be signed in to change notification settings - Fork 25
Pre Commit Hooks
Michael Rossol edited this page Aug 12, 2019
·
1 revision
This repository uses pre-commit hooks to manage code style and quality standards.
First install the pre-commit package
`pip install pre-commit`
The following files need to be present in the repo to install the actual pre-commit hooks:
- .pre-commit-config.yaml
- .pylintrc
- .flake8
Next install the pre-commit hooks defined in .pre-commit-config.yaml
`cd ../reV`
`pre-commit install`
To test your files before committing, stage them
`git add file or git add .`
`pre-commit run --all-files`