Skip to content

Commit

Permalink
lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
thavlik committed Mar 7, 2024
1 parent fdc4b14 commit 0e6341b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint with yapf & isort
run-name: Enforce consistent formatting with yapf & isort
on: [push]
jobs:
Check-Formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y python3-yapf python3-isort
- name: Check formatting with yapf
run: python3 -m yapf -rd src/
#- name: Check formatting with isort
# run: python3 -m isort --only-modified --diff --check-only src/

0 comments on commit 0e6341b

Please sign in to comment.