From d27b2c85700878f8ad64d2cc8f3c5bb39f1c2f81 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Wed, 6 Dec 2023 11:15:55 +0000 Subject: [PATCH] Update ruff config for new version --- .github/workflows/lint.yml | 2 +- pyproject.toml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7b58c14..e307812 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,4 +22,4 @@ jobs: # Run `ruff` using github formatting to enable automatic inline annotations. - name: Run ruff - run: "ruff check --format=github ." + run: "ruff check --output-format=github ." diff --git a/pyproject.toml b/pyproject.toml index cb03e88..431dc5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,17 +45,20 @@ olli = "python -m olli" [tool.ruff] target-version = "py311" extend-exclude = [".cache"] +select = ["ALL"] ignore = [ "ANN002", "ANN003", "ANN101", "ANN102", "ANN401", "ARG003", "C901", + "CPY001", "D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D416", "EM101", "PLR", "TRY003", ] line-length = 120 -select = ["ALL"] +unsafe-fixes = true +preview = true [tool.ruff.isort] order-by-type = false