Skip to content

Commit

Permalink
ci: add black to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
agritheory committed Mar 5, 2024
1 parent 295db00 commit a021821
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,27 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

black:
needs: [ py_json_merge ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 2

- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.10'

- name: Install Black (Frappe)
run: pip install git+https://github.com/frappe/black.git

- name: Run Black (Frappe)
run: black --check .

prettier:
needs: [ py_json_merge ]
runs-on: ubuntu-latest
Expand Down

0 comments on commit a021821

Please sign in to comment.