Format code with black python
Preview changes then apply Black formatting
black --check --diff . && black .
more python
all 15 commands →
Lint with ruff
ruff check . --fix
Type check with mypy
mypy --strict --ignore-missing-imports src/
Inspect object attributes
python3 -c "import json; print([x for x in dir(json) if not x.startswith('_')])"
Create virtual environment
python3 -m venv .venv && source .venv/bin/activate
Install from requirements
pip install -r requirements.txt --no-cache-dir