From 47637adb1bc6f63914b4ec07a5a891e7cf95b6f4 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Mon, 2 Dec 2024 12:03:37 +0100 Subject: [PATCH] project: Set fixed ruff version Prevent ruff issues being reported by updates of the tool itself. UP027 has been removed in version 0.8.0, remove it from the ignore list. Signed-off-by: Pieter De Gendt --- .github/workflows/format.yml | 1 + pyproject.toml | 3 --- tox.ini | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 15974344..3598b072 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -59,6 +59,7 @@ jobs: with: args: "format --check --diff" src: "${{ matrix.files.path }}" + version: 0.8.1 - name: Annotate unformatted file if: ${{ failure() }} diff --git a/pyproject.toml b/pyproject.toml index 10f1dddf..e5c16b0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,9 +57,6 @@ extend-select = [ "UP", # pyupgrade "W", # pycodestyle warnings ] -ignore = [ - "UP027", # deprecated pyupgrade rule -] [tool.ruff.format] quote-style = "preserve" diff --git a/tox.ini b/tox.ini index 4cbe9d35..09c51b30 100644 --- a/tox.ini +++ b/tox.ini @@ -33,7 +33,7 @@ deps = types-PyYAML flake8 mypy - ruff + ruff==0.8.1 setenv = # For instance: ./.tox/py3/tmp/ TOXTEMPDIR={envtmpdir}