diff --git a/.github/workflows/auto-sync.yml b/.github/workflows/auto-sync.yml new file mode 100644 index 00000000000..e495dee9b99 --- /dev/null +++ b/.github/workflows/auto-sync.yml @@ -0,0 +1,16 @@ +name: Auto-Sync +on: + push: + paths: + - "suite/auto-sync/**" + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Check formatting + uses: omnilib/ufmt@action-v1 + with: + path: ["suite/auto-sync/src/"] + python-version: "3.x" diff --git a/suite/auto-sync/pyproject.toml b/suite/auto-sync/pyproject.toml index c17eac8de28..be210a72439 100644 --- a/suite/auto-sync/pyproject.toml +++ b/suite/auto-sync/pyproject.toml @@ -4,6 +4,9 @@ version = "0.1.0" dependencies = [ "termcolor >= 2.3.0", "tree_sitter < 0.22.0", + "black == 22.6.0", + "ufmt == 2.0.0", + "usort == 1.0.4", ] requires-python = ">= 3.11"