Lint with ruff
Fast linter + auto-fix (replaces flake8, isort, pyupgrade)
ruff check . --fix
More python commands
-
mypy --strict --ignore-missing-imports src/Strict static type checking for a package
-
python3 -c "import json; print([x for x in dir(json) if not x.startswith('_')])"List public attributes of any Python object
-
python3 -m venv .venv && source .venv/bin/activateCreate and activate an isolated Python environment
-
pip install -r requirements.txt --no-cache-dirInstall dependencies without using pip cache
-
pip freeze > requirements.txtSave exact versions of all installed packages