Skip to content

Commit

Permalink
Add pre-commit rules
Browse files Browse the repository at this point in the history
  • Loading branch information
whot authored and martinpitt committed Dec 5, 2023
1 parent a382014 commit 2d56877
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-toml
- id: check-symlinks
- id: no-commit-to-branch
args: ['--branch', 'main']
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
args: ['--check', '--diff', '.']
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
2 changes: 1 addition & 1 deletion packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- fedora-all
- centos-stream-8-x86_64
- centos-stream-9-x86_64

- job: tests
trigger: pull_request
targets:
Expand Down

0 comments on commit 2d56877

Please sign in to comment.