Skip to content

Commit 4828282

Browse files
committed
[chore] pre-commit autoupdate
Adapt ruff config to new version. Part-of: #232 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent f6f772e commit 4828282

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
files: '^src/\w+/(tests|0\.0\.0)/.*\.py$'
1313

1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.9.9
15+
rev: v0.10.0
1616
hooks:
1717
- id: ruff
1818
name: Check code with Ruff, apply automatic fixes

pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ raw-options.version_scheme = "calver-by-date"
2424
version-file = "src/_version.py"
2525

2626
[tool.ruff]
27+
required-version = ">=0.10.0"
2728
fix = true
2829
show-fixes = true
2930
output-format = "full"
@@ -81,12 +82,13 @@ select = [
8182
"COM818", # trailing-comma-on-bare-tuple; other rules handled by autoformatter
8283
"FBT003", # boolean-positional-value-in-call; other rules not python2 compatible
8384
"UP005", # deprecated-unittest-alias
85+
"S704", # unsafe-markup-use; replaces RUF035
8486

8587
]
8688

8789
[tool.ruff.lint.flake8-builtins]
88-
builtins-ignorelist = ["format", "id", "type"]
89-
builtins-allowed-modules = ["json"]
90+
ignorelist = ["format", "id", "type"]
91+
allowed-modules = ["json"]
9092

9193
[tool.ruff.lint.isort]
9294
section-order = ["future", "standard-library", "third-party", "first-party", "odoo-addons", "local-folder"]

0 commit comments

Comments
 (0)