Skip to content

Commit

Permalink
Add a pre-commit config
Browse files Browse the repository at this point in the history
This makes sure a bunch of things are executed on git commit so things
like python ruff and others run before even pushing.

Activate locally with `pre-commit install`, it's not activated by
default.
  • Loading branch information
whot committed May 7, 2024
1 parent 23ac83f commit 99ca034
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-symlinks
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.4.3
hooks:
- id: ruff
args: ['--ignore=E741,E501']

0 comments on commit 99ca034

Please sign in to comment.