kwork-api/.pre-commit-config.yaml
root 0c22b31e1c
Some checks failed
Release & Publish / build (push) Failing after 2m31s
Release & Publish / publish-gitea (push) Has been skipped
Release & Publish / docs (push) Has been skipped
ci: setup complete CI/CD with PR checks, release pipeline, and conventions
- Add PR checks workflow (tests, lint, security, commitlint)
- Add release workflow (build, publish to Gitea, deploy docs)
- Add pre-commit hooks (ruff, format, commitlint)
- Add CONTRIBUTING.md with development guidelines
- Add commitlint configuration
- Rename master → main branch
- Configure ruff, pytest, coverage in pyproject.toml
2026-03-28 23:38:19 +00:00

27 lines
603 B
YAML

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: local
hooks:
- id: commitlint
name: commitlint
entry: commitlint
language: node
additional_dependencies:
- @commitlint/cli
- @commitlint/config-conventional
stages: [commit-msg]
- id: pytest
name: pytest
entry: uv run pytest tests/unit/ -v
language: system
pass_filenames: false
always_run: true
stages: [pre-push]