Skip to content

Commit fed90ea

Browse files
committed
pre-commit autoupdate
1 parent 5ebd7f5 commit fed90ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
exclude: "^tests/data/.*$"
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v5.0.0
4+
rev: v6.0.0
55
hooks:
66
- id: trailing-whitespace
77
- id: end-of-file-fixer
88
- id: check-yaml
99
- id: debug-statements
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.7.0
11+
rev: v0.12.8
1212
hooks:
1313
- id: ruff
1414
args: [--exit-non-zero-on-fix]

tests/test_click_odoo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,15 +312,15 @@ def testcmd(env):
312312
def _cleanup_testparam(dbname):
313313
with psycopg2.connect(dbname=dbname) as conn:
314314
with conn.cursor() as cr:
315-
cr.execute("DELETE FROM ir_config_parameter " "WHERE key='testparam'")
315+
cr.execute("DELETE FROM ir_config_parameter WHERE key='testparam'")
316316
conn.commit()
317317
conn.close()
318318

319319

320320
def _assert_testparam_present(dbname, expected):
321321
with psycopg2.connect(dbname=dbname) as conn:
322322
with conn.cursor() as cr:
323-
cr.execute("SELECT value FROM ir_config_parameter " "WHERE key='testparam'")
323+
cr.execute("SELECT value FROM ir_config_parameter WHERE key='testparam'")
324324
r = cr.fetchall()
325325
assert len(r) == 1
326326
assert r[0][0] == expected
@@ -330,7 +330,7 @@ def _assert_testparam_present(dbname, expected):
330330
def _assert_testparam_absent(dbname):
331331
with psycopg2.connect(dbname=dbname) as conn:
332332
with conn.cursor() as cr:
333-
cr.execute("SELECT value FROM ir_config_parameter " "WHERE key='testparam'")
333+
cr.execute("SELECT value FROM ir_config_parameter WHERE key='testparam'")
334334
r = cr.fetchall()
335335
assert len(r) == 0
336336
conn.close()

0 commit comments

Comments
 (0)