Add pre-commit checks

This commit is contained in:
Nicola Sella 2023-11-29 16:41:49 +01:00 committed by kolage
parent e1ddff2106
commit cb54681d17
1 changed files with 13 additions and 0 deletions

13
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,13 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/rpm-software-management/rpmlint.git
rev: 2.5.0
hooks:
- id: rpmlint
files: ^dnf\.spec$
# Passes if packit not installed. Needed for validation locally
- repo: https://github.com/packit/pre-commit-hooks
rev: v1.2.0
hooks:
- id: validate-config