Skip to content

Commit

Permalink
Add pre-commit config
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
  • Loading branch information
ryanlerch authored and abompard committed Apr 11, 2024
1 parent 182ed36 commit 0f549aa
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# Generic hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

# # License headers
# - repo: https://github.com/fsfe/reuse-tool
# rev: v2.1.0
# hooks:
# - id: reuse

# Formatting
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black

# Ruff
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: v0.3.4
hooks:
- id: ruff

0 comments on commit 0f549aa

Please sign in to comment.