Skip to content
hlesergPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

145 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sticker_service

Telegram bot that turns a photo into a recognizable drawn-character sticker pack with Russian captions.

CI License: MIT Python 3.12+

Русская версия

A Python starter kit wired for working with coding agents (Claude Code, Cursor): uv + ruff + pyright + pytest, a lean machine-readable AGENTS.md, a single make check quality gate, privacy-first Sentry, PLAYBOOK markers, and CI out of the box.


Using this template

  1. Click "Use this template" -> Create a new repository on GitHub.
  2. Clone it and run the init script to rename the package and clear placeholders:
    python scripts/init_template.py --name your_package --description "What it does"
  3. Install and verify the green baseline:
    uv sync --all-extras
    make check        # lint + format + types + security + tests, all green
  4. Read AGENTS.md — it is the contract every agent (and human) follows.

Quickstart

uv sync --all-extras        # create .venv and install everything
cp .env.example .env        # fill in secrets locally (never commit)
uv run sticker_service --version
make check                  # the Definition-of-Done gate

Project layout

Path Purpose
src/sticker_service/ the package (src-layout, fully typed, ships py.typed)
src/sticker_service/config.py typed settings via pydantic-settings
src/sticker_service/observability/ Sentry init (send_default_pii=False) + component tags
tests/ unit/ + integration/, pytest with >=90% coverage gate
docs/ architecture (ADRs), development standard, PLAYBOOK marker spec
scripts/ init_template.py, extract_playbook.py
tools/ check_instrumentation.py (pre-commit guard)
AGENTS.md canonical agent instructions (the open standard)
CLAUDE.md imports AGENTS.md + Claude-specific notes

Make targets

make install     # uv sync --all-extras + pre-commit install
make check       # lint + fmt-check + type + security + tests  (DoD gate)
make test        # full test suite with coverage
make test-fast   # unit tests only, parallel, no coverage
make lint        # ruff check
make fmt         # ruff format
make type        # pyright
make playbook    # extract PLAYBOOK markers

Tooling

  • uv — environment & dependency management (lockfile committed)
  • ruff — lint + format
  • pyright — static type checking (standard mode)
  • pytest — tests, >=90% coverage
  • bandit / pip-audit — security
  • pre-commit — local gate
  • commitizen — conventional commits -> version bump + changelog
  • Sentry — error/perf monitoring, privacy-first

License

MIT — see LICENSE. Note: if you fork copyleft code (e.g. AGPL), change this.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

Generated from hleserg/template