Skip to content
varpsilonPublic

About

a cli based static python code reviewer

Topics

Resources

Stars

23 stars

Watchers

0 watching

Forks

Repository files navigation

avouch

Review the Python you changed, not the Python you inherited.

Docs · Changelog · Source · Issues

Install

pip install avouch

Python 3.10+ · git on PATH · zero dependencies · no daemon, no network

Review

avouch                            # changed vs HEAD + untracked
avouch --staged                   # staged only — pre-commit
avouch --all-files --format github  # PR annotations in CI
AVOUCH · 2 FILES · 1 WARN
──────────────────────────────────────────────
bad.py:1: SCR002: Bare except detected.
  │
1 │ def connect(host, port):
  │     ^^^^^^^ SCR002
BY RULE  SCR002 Bare except 1
PASSED  ✓ src/util.py

Findings land only on functions and classes whose span overlaps a changed line — legacy debt never reaches your diff. Exit codes: 0 clean · 1 findings · 2 error.

Configure

ignore_paths = ["tests"]
[limits]
max_parameters = 8
[rules]
nested_function = false

avouch init measures your repo and writes this for you. 20 rules, every threshold tunable, every finding suppressible inline. Full catalog: avouch --docs.

Contribute

git clone https://github.com/mukundzha/avouch && cd avouch
pip install -e . && python -m pytest

Open a PR — CI runs avouch against itself.

License

MIT

About

a cli based static python code reviewer

Topics

Resources

Stars

23 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages