This repository has been archived on 2026-11-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
rpmbuilder/.pre-commit-config.yaml
T
unkin-agent 1fb1e7a984
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-fedora42 Pipeline was successful
ci/woodpecker/pr/build-fedora43 Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline was successful
ci/woodpecker/pr/build-fedora44 Pipeline was successful
ci / actions (pull_request) Failing after 14m31s
ci / ci (pull_request) Failing after 14m31s
publish / build (almalinux/el9, rpm-vendor-el9) (pull_request) Has been cancelled
publish / build (fedora/42, rpm-vendor-f42) (pull_request) Has been cancelled
publish / build (fedora/43, rpm-vendor-f43) (pull_request) Has been cancelled
publish / build (fedora/44, rpm-vendor-f44) (pull_request) Has been cancelled
publish / publish (pull_request) Has been cancelled
Add GitHub Actions build and publish workflows
2026-11-28 16:17:12 +11:00

60 lines
1.6 KiB
YAML

---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-executables-have-shebangs
- id: check-json
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: pretty-format-json
- id: trailing-whitespace
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint
args:
[
"-d {extends: relaxed, rules: {line-length: disable}}",
"-s",
]
- repo: local
hooks:
- id: pytest
name: Run unit tests
entry: uv run --group dev pytest tests/ -q
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.2
hooks:
- id: check-jsonschema
name: Validate RPM package metadata
files: ^rpms/[^/]+/metadata\.yaml$
args: [--schemafile, schema/metadata.json]
language_version: python3.11
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.7
hooks:
# Run the linter.
- id: ruff-check
args: [--fix]
# Run the formatter.
- id: ruff-format