Skip to content

Commit

Permalink
Add GH workflow for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
l-dietrich committed Jun 10, 2024
1 parent 07b9147 commit 9463430
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint

on: [push, pull_request]

concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true

env:
PYTHON_VERSION: "3.10"

jobs:
python-black-check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
lfs: true

- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install dependencies
run: pip install black

- name: Lint python files
run: black --check .

0 comments on commit 9463430

Please sign in to comment.