Skip to content

Commit c4da9b7

Browse files
authored
Hook to run packit validate-config (#37)
Fixes #36 Requires: packit/packit#1957
2 parents c61ca91 + dacd478 commit c4da9b7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
repos:
66
- repo: https://github.com/psf/black
7-
rev: 23.1.0
7+
rev: 23.3.0
88
hooks:
99
- id: black
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -13,14 +13,18 @@ repos:
1313
- id: check-yaml
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
16+
- id: check-ast
17+
- id: check-builtin-literals
18+
- id: check-docstring-first
19+
- id: check-merge-conflict
20+
- id: mixed-line-ending
1621
- repo: https://github.com/PyCQA/flake8
1722
rev: 6.0.0
1823
hooks:
1924
- id: flake8
2025
args:
2126
- --max-line-length=100
2227
- repo: https://github.com/pre-commit/mirrors-mypy
23-
rev: v1.1.1
28+
rev: v1.2.0
2429
hooks:
2530
- id: mypy
26-
args: [--no-strict-optional, --ignore-missing-imports]

.pre-commit-hooks.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@
55
language: script
66
always_run: true
77
args: [upstream_url]
8+
- id: validate-config
9+
name: Validate package config
10+
description: Check for missing values and incorrect types
11+
entry: quay.io/packit/packit:latest packit -d validate-config
12+
language: docker_image
13+
files: ^\.?packit.ya?ml$

0 commit comments

Comments
 (0)