Closed mtlynch closed 11 months ago
Replace isort with ruff. ruff is way faster and does the same checks. It gives us about a 35x performance improvement over isort:
$ time isort \ --recursive \ --force-single-line-imports \ --top log \ --diff \ --check-only \ --skip-glob=third_party/* \ --skip-glob=venv/* Skipped 2073 files real 0m1.975s user 0m1.743s sys 0m0.229s
$ time ruff check \ app/ \ scripts/render-template \ scripts/update-service real 0m0.063s user 0m0.014s sys 0m0.073s
⏳ @jotaen4tinypilot please review this Pull Request
Replace isort with ruff. ruff is way faster and does the same checks. It gives us about a 35x performance improvement over isort:
isort
ruff