- 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
27 lines
603 B
YAML
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]
|