Follow my progress on LeetCode
- Python 3.8+
pip
package managervenv
orvirtualenv
make
utility
- Clone the repository
- Create a virtual environment:
python3 -m venv .venv source .venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
The project provides several make
commands for code quality:
make lint
: Run flake8 lintermake format
: Apply Black code formattingmake sort
: Sort imports with isortmake type-check
: Run mypy type checkingmake clean
: Remove cache and temporary filesmake fix
: Apply formatting and import sortingmake all
: Run comprehensive code checksmake help
: Show available commands
Example usage:
# Run all linting and checks
make all
# Quick fix formatting and imports
make fix
# Just run linters
make lint
pytest
- Create a new branch
- Write code
- Run
make all
to ensure code quality - Submit a pull request