Skip to content

Commit df0b0b6

Browse files
committed
[chore] pre-commit autoupdate
Adapt ruff config. closes #220 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent b4bf841 commit df0b0b6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ repos:
1212
files: '^src/\w+/(tests|0\.0\.0)/.*\.py$'
1313

1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.8.6
15+
rev: v0.9.9
1616
hooks:
1717
- id: ruff
1818
name: Check code with Ruff, apply automatic fixes
1919
args: [ --exit-non-zero-on-fix ]
2020
- id: ruff-format
2121
name: Format code with Ruff
2222
- repo: https://github.com/crate-ci/typos
23-
rev: v1.29.4
23+
rev: v1.29.10
2424
hooks:
2525
- id: typos
2626
- repo: https://github.com/pre-commit/pre-commit-hooks

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ select = [
8686

8787
[tool.ruff.lint.flake8-builtins]
8888
builtins-ignorelist = ["format", "id", "type"]
89+
builtins-allowed-modules = ["json"]
8990

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

0 commit comments

Comments
 (0)