Skip to content

Commit

Permalink
Add Ruff linter workflow and config
Browse files Browse the repository at this point in the history
  • Loading branch information
fenrisl committed Jan 23, 2025
1 parent 335a88b commit eb0ab95
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ruff_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Ruff Linting

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install Ruff
run: pip3 install ruff

- name: Run Ruff linter
run: ruff check .
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tool.ruff]
line-length = 120

0 comments on commit eb0ab95

Please sign in to comment.