From b257c0a5e47c813fbe87c7d64bd85c48e8377d62 Mon Sep 17 00:00:00 2001 From: Amethyst Reese Date: Wed, 16 Oct 2024 15:45:20 -0700 Subject: [PATCH] update the CI ufmt workflow to use ruff formatting (#2900) Summary: This updates CI to match the internal formatting config to opt-in the project to ruff formatting via ufmt. simpsons_bandaid Reviewed By: SebastianAment Differential Revision: D64492062 --- .github/workflows/build-and-test.yml | 5 +---- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) 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"