viv/.pre-commit-config.yaml

26 lines
665 B
YAML
Raw Normal View History

2022-12-19 23:11:12 -06:00
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types:
- pre-commit
- post-commit
2022-12-19 23:11:12 -06:00
repos:
- repo: https://github.com/psf/black
2023-03-16 13:52:55 -05:00
rev: 23.3.0
2022-12-19 23:11:12 -06:00
hooks:
- id: black
language_version: python
2023-03-08 03:29:34 -06:00
- repo: https://github.com/charliermarsh/ruff-pre-commit
2023-03-16 13:52:55 -05:00
rev: 'v0.0.270'
2022-12-19 23:11:12 -06:00
hooks:
2023-03-08 03:29:34 -06:00
- id: ruff
2023-03-16 13:52:55 -05:00
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- repo: local
hooks:
- id: set-version
language: script
name: sets __version__ in viv.py
entry: ./scripts/bump-dev.sh
stages: [post-commit]
always_run: true