Thanks for your interest in code-stats. This project aims to be a well-crafted CLI tool for analyzing codebases, and contributions that align with that goal are welcome.
- Fork the repository.
- Clone your fork:
git clone https://github.com/mangodxd/code-stats.git - Install in development mode:
pip install -e . pip install pytest ruff - Run the tests:
python -m pytest - Run the linter:
ruff check src/ tests/
- Keep the codebase minimal. No external dependencies for core functionality.
- Write tests for new features. We use pytest.
- Follow the existing code style. Run ruff before committing.
- Comments should explain WHY, not WHAT. Good code is self-documenting.
- Use Conventional Commits:
feat:,fix:,docs:,test:,refactor:.
- Create a feature branch from
main. - Make your changes.
- Run the full test suite and linter.
- Update the CHANGELOG if adding or changing features.
- Submit a pull request with a clear description of what changed and why.
Open an issue on GitHub. Include the command you ran, the output you expected, and what actually happened. A minimal reproduction helps.