PySR / .pre-commit-config.yaml
MilesCranmer's picture
Add pre-commit hooks for formatting and nb stripping
6fdc3b9 unverified
raw
history blame
484 Bytes
repos:
# General linting
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# General formatting
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- id: black-jupyter
# Stripping notebooks
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout