ML/modules/ml-pipeline/.pre-commit-config.yaml
2023-09-18 19:51:16 +01:00

25 lines
769 B
YAML

# Pre commit hooks
repos:
# - repo: local
# hooks:
# - id: build-sphinx-docs
# name: Build Sphinx Documentation
# entry: bash -c 'cd modules/ml-pipeline/docs && make html'
# language: system
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
- repo: local
hooks:
- id: dvc-push-experiment
name: DVC - Push to experiment to remote location (experiments)
entry: bash -c 'cd modules/ml-pipeline/src/pipeline && dvc push -r experiments || echo "Up to date!"'
language: system
verbose: true