Skip to content

Commit

Permalink
Merge pull request #44 from Nozbe/auto-lint
Browse files Browse the repository at this point in the history
add linting GH workflow
  • Loading branch information
jsamelak authored Aug 29, 2024
2 parents 88198f3 + 247853c commit 117fc80
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Format

on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
format:
name: Ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with Ruff
run: ruff check --output-format=github .

0 comments on commit 117fc80

Please sign in to comment.