Skip to content

chore: ruff + mypy strict + import-linter + commitizen config#30

Merged
constk merged 1 commit into
developfrom
feat/2-ruff-mypy-importlinter
Apr 26, 2026
Merged

chore: ruff + mypy strict + import-linter + commitizen config#30
constk merged 1 commit into
developfrom
feat/2-ruff-mypy-importlinter

Conversation

@constk
Copy link
Copy Markdown
Owner

@constk constk commented Apr 26, 2026

Summary

  • Ports the four config blocks from Teller's pyproject.toml (ruff E/W/F/I/N/UP/B/SIM/TCH/S/RUF, mypy strict = true, import-linter layered + forbidden contracts, commitizen 7-prefix schema).
  • Bumps ruff target-version and mypy python_version to 3.14 to match requires-python.
  • Drops the duckdb.* / sse_starlette.* mypy override entries (not in template) and rewords the integration pytest marker to be domain-neutral.
  • Adds the stub package skeleton (src/{api,agent,tools,data,observability,models,eval}/__init__.py, tests/__init__.py) so lint-imports can resolve the layer contract on the empty scaffold.

Closes #2.

Test plan

  • uv run ruff check . → All checks passed
  • uv run ruff format --check . → 9 files already formatted
  • uv run mypy --strict src/ tests/ → no issues
  • uv run lint-imports → 2 contracts kept, 0 broken
  • cz check rejects perf: and accepts feat:

🤖 Generated with Claude Code

Port the four config blocks from Teller's pyproject.toml. Bump ruff target-version
and mypy python_version to 3.14. Drop duckdb/sse-starlette mypy overrides
(not in template). Add stub package skeleton (src/{api,agent,tools,data,
observability,models,eval}/__init__.py + tests/__init__.py) so import-linter
contracts can resolve before backend tickets land.

Closes #2

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@constk constk merged commit d36870f into develop Apr 26, 2026
@constk constk deleted the feat/2-ruff-mypy-importlinter branch April 26, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant