Skip to content

Add TypeAlias ban rule and tinyagent tree hygiene lint#29

Open
tunahorse wants to merge 1 commit intomasterfrom
chore/no-typealias-and-tree-hygiene
Open

Add TypeAlias ban rule and tinyagent tree hygiene lint#29
tunahorse wants to merge 1 commit intomasterfrom
chore/no-typealias-and-tree-hygiene

Conversation

@tunahorse
Copy link
Contributor

@tunahorse tunahorse commented Mar 6, 2026

Summary

  • add ast-grep rule no-typealias-python to ban TypeAlias / TypeAliasType shims
  • add rule tests + snapshots and document the policy in docs/rules README files
  • add scripts/lint_tinyagent_tree.py to reject __pycache__ and empty/cache-only dirs under tinyagent/
  • wire treelint into pre-commit
  • simplify proxy non-200 error handling to deterministic status message and replace queue None sentinel with explicit sentinel class

Validation

  • sg test --config src/rules/ast/sgconfig.yml
  • python3 scripts/lint_tinyagent_tree.py
  • pre-commit hooks passed on commit (ruff, mypy, arch checks, vulture, pylint, debtlint, treelint)

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