Skip to content

Commit 47637ad

Browse files
committedDec 3, 2024
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 <pieter.degendt@basalte.be>
1 parent 2b18ae4 commit 47637ad

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed
 

‎.github/workflows/format.yml

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
with:
6060
args: "format --check --diff"
6161
src: "${{ matrix.files.path }}"
62+
version: 0.8.1
6263

6364
- name: Annotate unformatted file
6465
if: ${{ failure() }}

‎pyproject.toml

-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ extend-select = [
5757
"UP", # pyupgrade
5858
"W", # pycodestyle warnings
5959
]
60-
ignore = [
61-
"UP027", # deprecated pyupgrade rule
62-
]
6360

6461
[tool.ruff.format]
6562
quote-style = "preserve"

‎tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ deps =
3333
types-PyYAML
3434
flake8
3535
mypy
36-
ruff
36+
ruff==0.8.1
3737
setenv =
3838
# For instance: ./.tox/py3/tmp/
3939
TOXTEMPDIR={envtmpdir}

0 commit comments

Comments
 (0)
Please sign in to comment.