Update pre-commit tools, fix ruff configuration so it doesn't warn

This commit is contained in:
Aarni Koskela 2025-08-20 11:59:15 +03:00
parent 8c3029cde1
commit cf8ae6e2ed
3 changed files with 6 additions and 4 deletions

View File

@ -15,5 +15,5 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.13"
- uses: pre-commit/action@v3.0.1

View File

@ -1,12 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.0
rev: v0.12.9
hooks:
- id: ruff
args:

View File

@ -8,6 +8,8 @@ requires = [
[tool.ruff]
line-length = 99
[tool.ruff.lint]
extend-ignore = [
"E501",
]
@ -18,7 +20,7 @@ select = [
"W",
]
[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"example/**" = [
"F401",
"F403",