diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 85c10202598..47cdc247324 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -28,10 +28,7 @@ jobs: - name: Install dependencies # Pin ufmt deps so they match intermal pyfmt. run: | - pip install black==24.2.0 - pip install usort==1.0.8 - pip install libcst==1.1.0 - pip install ufmt + pip install -r requirements-fmt.txt pip install flake8 - name: ufmt run: | diff --git a/pyproject.toml b/pyproject.toml index c1785fbda18..64468a31a62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,3 +4,6 @@ build-backend = "setuptools.build_meta" [tool.usort] first_party_detection = false + +[tool.ufmt] +formatter = "ruff-api"