Thanks for contributing to imgclean.
git clone https://github.com/Weiykong/imgclean.git
cd imgclean
python3 -m pip install --user uv
make installmake install bootstraps a local .venv with Python 3.11 via uv.
make test
make lint
make checkThese map to:
make install: editable install with dev dependenciesmake test: run the test suite withpython -m pytestmake lint: run the C901 complexity gate withruff check --select C901 src testsmake check: run lint and tests together
src/imgclean/cli: Typer CLI commandssrc/imgclean/api: public Python APIsrc/imgclean/core: scan orchestration pipelinesrc/imgclean/checks: independent dataset checkssrc/imgclean/reports: HTML, JSON, and CSV outputstests: unit and integration coverage
- Keep changes scoped to one concern where possible.
- Add or update tests for behavior changes.
- Update
README.mdwhen CLI flags, outputs, or workflows change. - Do not commit generated reports, cache files, or quarantine outputs.
- Implement a new
BaseChecksubclass undersrc/imgclean/checks. - Register it in the scan registry.
- Add unit tests and, if needed, one integration test.
- Document the check in the README.