SorboBot / .pre-commit-config.yaml
Léo Bourrel
feat: install pre-commit && clean
39a3f86
raw
history blame
No virus
1.4 kB
default_install_hook_types:
# Mandatory to install both pre-commit and pre-push hooks (see https://pre-commit.com/#top_level-default_install_hook_types)
# Add new hook types here to ensure automatic installation when running `pre-commit install`
- pre-commit
- pre-push
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-added-large-files
- repo: https://github.com/srstevenson/nb-clean
rev: 3.0.0
hooks:
- id: nb-clean
args:
- --remove-empty-cells
- --preserve-cell-metadata
- --
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: 'v1.5.1'
# hooks:
# - id: mypy
- repo: local
hooks:
- id: black
name: Formatting (black)
entry: black
language: system
types: [python]
stages: [commit]
# - id: ruff
# name: Linter (ruff)
# entry: ruff
# language: system
# types: [python]
# stages: [commit]
# - id: test
# name: Unit tests (pytest)
# entry: make test
# pass_filenames: false
# language: system
# types: [python]
# stages: [push]
# - id: dvc-pre-push
# name: DVC pre-push
# entry: dvc
# args:
# - git-hook
# - pre-push
# require_serial: true
# verbose: true
# language: system
# stages: [push]