Skip to content

Commit

Permalink
ci: add format workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseylin committed Jul 24, 2023
1 parent 004a020 commit 9edeaa2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: format code

on:
- workflow_dispatch
- push
- pull_request

jobs:
format-python:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Run Black python formatter
uses: psf/black@stable
- name: Run isort import sorter
uses: isort/isort-action@v1
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Run Prettier formatter for JS/HTML/CSS/etc.
uses: creyD/prettier_action@v4.3

0 comments on commit 9edeaa2

Please sign in to comment.