Skip to content

Commit

Permalink
project: Set fixed ruff version
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pdgendt committed Dec 3, 2024
1 parent 2b18ae4 commit 47637ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
with:
args: "format --check --diff"
src: "${{ matrix.files.path }}"
version: 0.8.1

- name: Annotate unformatted file
if: ${{ failure() }}
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ extend-select = [
"UP", # pyupgrade
"W", # pycodestyle warnings
]
ignore = [
"UP027", # deprecated pyupgrade rule
]

[tool.ruff.format]
quote-style = "preserve"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ deps =
types-PyYAML
flake8
mypy
ruff
ruff==0.8.1
setenv =
# For instance: ./.tox/py3/tmp/
TOXTEMPDIR={envtmpdir}
Expand Down

0 comments on commit 47637ad

Please sign in to comment.