Skip to content

Commit 2bedef0

Browse files
authored
Merge pull request #1302 from scop/renovate/ruff
chore(pre-commit): update ruff to v0.11.7
2 parents 90162b0 + dd4d25e commit 2bedef0

File tree

8 files changed

+8
-17
lines changed

8 files changed

+8
-17
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ repos:
4343
pass_filenames: false
4444

4545
- repo: https://github.com/astral-sh/ruff-pre-commit
46-
rev: v0.8.4
46+
rev: v0.11.7
4747
hooks:
4848
- id: ruff
4949
types: [text]

test/requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
-r requirements.txt
44

55
mypy==1.8.0
6-
ruff==0.8.4
6+
ruff==0.11.7

test/t/test_getent.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ def test_1(self, completion):
99
@pytest.mark.complete(
1010
"getent -",
1111
require_cmd=True,
12-
xfail=(
13-
"! (getent --help 2>&1 || :) | "
14-
"command grep -q -- '[[:space:]]-'"
15-
),
12+
xfail="! (getent --help 2>&1 || :) | command grep -q -- '[[:space:]]-'",
1613
)
1714
def test_2(self, completion):
1815
assert completion

test/t/test_gssdp_discover.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ def test_options(self, completion):
1414
@pytest.mark.complete(
1515
"gssdp-discover --message-type=",
1616
skipif=(
17-
"! gssdp-discover --help 2>&1 "
18-
"| command grep -qF -- --message-type"
17+
"! gssdp-discover --help 2>&1 | command grep -qF -- --message-type"
1918
),
2019
)
2120
def test_message_type(self, completion):

test/t/test_javaws.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ def test_1(self, completion):
99
@pytest.mark.complete(
1010
"javaws -",
1111
require_cmd=True,
12-
xfail=(
13-
"! (javaws -help 2>&1 || :) | " "command grep -q -- '[[:space:]]-'"
14-
),
12+
xfail="! (javaws -help 2>&1 || :) | command grep -q -- '[[:space:]]-'",
1513
)
1614
def test_2(self, completion):
1715
assert completion

test/t/test_modinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_1(self, completion):
1313
"modinfo du",
1414
xfail="! ls /lib/modules/%s &>/dev/null"
1515
% subprocess.check_output(
16-
"uname -r 2>/dev/null || " "echo non-existent-kernel", shell=True
16+
"uname -r 2>/dev/null || echo non-existent-kernel", shell=True
1717
)
1818
.decode()
1919
.strip(),

test/t/test_modprobe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_1(self, completion):
1313
"modprobe du",
1414
xfail="! ls /lib/modules/%s &>/dev/null"
1515
% subprocess.check_output(
16-
"uname -r 2>/dev/null || " "echo non-existent-kernel", shell=True
16+
"uname -r 2>/dev/null || echo non-existent-kernel", shell=True
1717
)
1818
.decode()
1919
.strip(),

test/t/test_wsimport.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ def test_1(self, completion):
99
@pytest.mark.complete(
1010
"wsimport -",
1111
require_cmd=True,
12-
xfail=(
13-
"! (wsimport -help 2>&1 || :) | "
14-
"command grep -q -- '[[:space:]]-'"
15-
),
12+
xfail="! (wsimport -help 2>&1 || :) | command grep -q -- '[[:space:]]-'",
1613
)
1714
def test_2(self, completion):
1815
assert completion

0 commit comments

Comments
 (0)