Python static analysis linting tools.
repos:
- repo: https://github.com/hyroai/lint
rev: master
hooks:
- id: static-analysis
The steps to add a new hook to the hyro-hooks:
- create the hook script file under lint folder
- add a test file to make sure your script is working
- add your hook to
setup.py
under "console_scripts", like in this example whereformat-csv
is the hook id andlint.format_csv:main
is the route to the script:"console_scripts": [ "format-csv=lint.format_csv:main", ]
- add your hook id and the files that will be formatted to the lint repo hooks under
hyro-hooks.yaml
:repo: https://github.com/hyroai/lint rev: 7dbcd130e0c22c8f08292d8527826cf08b756e56 hooks: - id: format-csv files: triplets.csv
- after you merge your changes into master update the commit hash in
hyro-hooks.yaml
from the previous step to be the latest one in master - after that update is merged you can update the latest commit hash in all repos that use the hyro-hooks