Skip to content

Commit

Permalink
Hook to run packit validate-config (#37)
Browse files Browse the repository at this point in the history
Fixes #36
Requires: packit/packit#1957
  • Loading branch information
jpopelka authored May 3, 2023
2 parents c61ca91 + dacd478 commit c4da9b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

repos:
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -13,14 +13,18 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: mixed-line-ending
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
args:
- --max-line-length=100
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
rev: v1.2.0
hooks:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports]
6 changes: 6 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
language: script
always_run: true
args: [upstream_url]
- id: validate-config
name: Validate package config
description: Check for missing values and incorrect types
entry: quay.io/packit/packit:latest packit -d validate-config
language: docker_image
files: ^\.?packit.ya?ml$

0 comments on commit c4da9b7

Please sign in to comment.