Skip to content

Commit

Permalink
Add formatter actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankpatibandla committed Feb 20, 2024
1 parent ea4aab7 commit b1fa6d3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/formatter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: formatter

on:
pull_request:
push:

jobs:
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: isort/[email protected]
with:
configuration: "--settings-file=.isort.cfg"
requirements-files: "requirements.txt"
black:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: psf/black@stable
with:
options: "--line-length=120"
version: "24.2.0"
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:

env:
SKIP: pylint
SKIP: pylint,black,isort

jobs:
pre-commit:
Expand Down

0 comments on commit b1fa6d3

Please sign in to comment.