- Clone the repository
- Install dependencies:
uv sync - Install pre-commit hooks:
uv run pre-commit install --install-hooks - Run tests:
uv run pytest tests/ - Lint:
uv run ruff check allways/ neurons/
This project uses pre-commit for automated code quality checks.
Pre-commit hooks (run on every commit):
- Trailing whitespace removal
- End-of-file fixer
- YAML/JSON validation
- Line ending normalization (LF)
- Large file detection (>500KB)
- Ruff linting (with auto-fix)
- Ruff formatting
Pre-push hooks (run before push):
- Pytest test suite
uv run pre-commit run --all-files # all pre-commit hooks
uv run pre-commit run --all-files --hook-stage pre-push # pre-push hooks- Line length: 120 characters
- Single quotes for strings
- Ruff linting with E, F, I rules
- Create a feature branch
- Make your changes
- Ensure tests pass
- Submit a pull request