Skip to content

Commit

Permalink
ci: add pre-commit hook (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Glatzel <[email protected]>
  • Loading branch information
Glatzel and Glatzel authored Oct 29, 2024
1 parent d875070 commit c321656
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.1
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.1
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format

0 comments on commit c321656

Please sign in to comment.