From 677b639397ec95903e0c9fb3e3dbc71220519b23 Mon Sep 17 00:00:00 2001 From: Kenneth Yang Date: Sun, 22 Sep 2024 16:04:08 -0700 Subject: [PATCH 1/2] Use hatch action --- .github/workflows/autoformat-and-lint.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/autoformat-and-lint.yml b/.github/workflows/autoformat-and-lint.yml index 151943c..a40b728 100644 --- a/.github/workflows/autoformat-and-lint.yml +++ b/.github/workflows/autoformat-and-lint.yml @@ -22,14 +22,8 @@ jobs: ref: ${{ github.head_ref }} token: ${{ secrets.WORKFLOW_COMMIT }} - - name: 🐍 Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.12' - cache: 'pip' - - name: 📦 Install Hatch - run: pip install hatch + run: pypa/hatch@install - name: 📝 Format Code run: hatch fmt -f From 78190e616df95c5e90a09c892b15445632ee53d4 Mon Sep 17 00:00:00 2001 From: Kenneth Yang Date: Sun, 22 Sep 2024 16:05:19 -0700 Subject: [PATCH 2/2] Change run to uses --- .github/workflows/autoformat-and-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autoformat-and-lint.yml b/.github/workflows/autoformat-and-lint.yml index a40b728..15ecaaf 100644 --- a/.github/workflows/autoformat-and-lint.yml +++ b/.github/workflows/autoformat-and-lint.yml @@ -23,7 +23,7 @@ jobs: token: ${{ secrets.WORKFLOW_COMMIT }} - name: 📦 Install Hatch - run: pypa/hatch@install + uses: pypa/hatch@install - name: 📝 Format Code run: hatch fmt -f