Skip to content

Commit

Permalink
update the CI ufmt workflow to use ruff formatting (#2900)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #2900

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

fbshipit-source-id: e88a84884877d16c6e75324c868a3596505b5d44
  • Loading branch information
amyreese authored and facebook-github-bot committed Oct 16, 2024
1 parent 314aef4 commit 5d5b3d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ build-backend = "setuptools.build_meta"

[tool.usort]
first_party_detection = false

[tool.ufmt]
formatter = "ruff-api"

0 comments on commit 5d5b3d5

Please sign in to comment.