Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 🔎 Lint code ⚡

on:
push:
workflow_dispatch:

jobs:

lint:
name: Ruff ⚡🕵

runs-on: ubuntu-latest

steps:

- name: 📥 Checkout repo
uses: actions/checkout@v4

- name: Run Ruff checks ⚡
uses: astral-sh/ruff-action@v3
with:
args: check
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,30 @@ pytest-cov = "^6.0.0"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]


[tool.ruff.lint]
exclude = [
"tests/interactive-imagej/*"
]

select = [
"D",
# summary lines have to be placed on the first physical line of the docstring
"D212",
# imperative mood for all docstrings
"D401",
# summary line has to end in a punctuation mark
"D415",
# require documentation for _all_ function parameters
"D417",
]

ignore = [
# no blank lines allowed after function docstring
"D202",
]


[tool.ruff.lint.pydocstyle]
convention = "numpy"
Loading