diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 449fb31..ef403f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,10 +27,10 @@ jobs: python-version: "3.12" - name: Check format - run: uvx ruff format --check . + run: uvx ruff@0.15.12 format --check . - name: Lint - run: uvx ruff check . + run: uvx ruff@0.15.12 check . types: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index 2c0328b..95722f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,11 @@ output-format = "concise" line-length = 88 extend-exclude = [] +[tool.ruff.format] +# ruff >= 0.16 formats Python code blocks inside Markdown by default and +# inserts PEP 8 blank lines in every doc snippet. Docs stay hand-formatted. +exclude = ["*.md"] + [tool.ruff.lint] select = [ "F", # Pyflakes