Skip to content

Commit

Permalink
fix: setup ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
tillwenke committed Jan 26, 2025
1 parent 9873437 commit b2a5d0b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ruff_linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: ruff linting
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff==0.9.3
# Update output format to enable automatic inline annotations.
- name: Run Ruff
run: ruff check --output-format=github .
21 changes: 21 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

line-length = 130

[lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I"
]

# could be extended to enforce type annotations and docstrings

0 comments on commit b2a5d0b

Please sign in to comment.