Skip to content

Commit

Permalink
git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch committed Feb 7, 2024
1 parent 070846d commit 0bb2a70
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Install with: pre-commit install && pre-commit install -t pre-push
repos:

- repo: local
hooks:

- id: tests
name: Run Tests
entry: scripts/run_tests.sh
language: system
types: [python]
stages: [push]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:

# Git
- id: forbid-new-submodules

# Files
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-added-large-files
- id: check-symlinks
- id: end-of-file-fixer

# Syntax
- id: check-yaml
- id: check-toml
- id: check-ast

# Code
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key

- repo: https://github.com/akaihola/darker
rev: 1.7.2
hooks:
- id: darker
args: ["--check"]
stages: [push]
- id: darker
stages: [commit]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.4'
hooks:
- id: ruff

0 comments on commit 0bb2a70

Please sign in to comment.