mirror of
https://github.com/pydantic/pydantic-ai-harness.git
synced 2026-07-21 02:45:34 +00:00
Set up pydantic-harness as a publishable Python package using hatchling, with CI (lint, test across Python 3.10-3.13) and automated PyPI releases on tag pushes via OIDC trusted publishing — mirroring pydantic-handlebars.
34 lines
796 B
YAML
34 lines
796 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: no-commit-to-branch # prevent direct commits to main branch
|
|
- id: check-yaml
|
|
- id: check-toml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: lint
|
|
name: Ruff Lint
|
|
entry: make
|
|
args: [lint]
|
|
types: [python]
|
|
language: system
|
|
pass_filenames: false
|
|
- id: format
|
|
name: Ruff Format
|
|
entry: make
|
|
args: [format]
|
|
types: [python]
|
|
language: system
|
|
pass_filenames: false
|
|
- id: typecheck
|
|
name: Pyright
|
|
entry: make
|
|
args: [typecheck]
|
|
types: [python]
|
|
language: system
|
|
pass_filenames: false
|