Skip to content

Commit 8e0bc6f

Browse files
committed
tox: update ruff to v0.12.0
Update the fixed ruff version to its most recent. Signed-off-by: James Knight <[email protected]>
1 parent 25dde2f commit 8e0bc6f

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

ruff.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ lint.ignore = [
8383
'SLF001',
8484
]
8585

86+
'sphinxcontrib/confluencebuilder/manifest.py' = [
87+
# ignore the version import used to prevent a cyclic import issue
88+
'PLC0415',
89+
]
90+
8691
'tests/sample-sets/config.py' = [
8792
# ignore all in environment configuration file
8893
'ALL',
@@ -101,6 +106,11 @@ lint.ignore = [
101106
'SIM117',
102107
]
103108

109+
'tests/test_validation.py' = [
110+
# ignore injected configuration imports
111+
'PLC0415',
112+
]
113+
104114
'tests*' = [
105115
# ignore implicit-namespace-package warnings for the test structures used
106116
'INP001',

sphinxcontrib/confluencebuilder/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def getpass2(prompt='Password: '):
336336
if (os.name == 'nt' and 'MSYSTEM' in os.environ and 'TERM' in os.environ and
337337
'CONFLUENCEBUILDER_NO_GETPASS_HOOK' not in os.environ):
338338
try:
339-
check_call(['/usr/bin/stty', '-echo']) # noqa: S603
339+
check_call(['/usr/bin/stty', '-echo'])
340340
except: # noqa: E722
341341
print()
342342
print()
@@ -348,7 +348,7 @@ def getpass2(prompt='Password: '):
348348
value = input(prompt)
349349
finally:
350350
with suppress(Exception):
351-
check_call(['/usr/bin/stty', 'echo']) # noqa: S603
351+
check_call(['/usr/bin/stty', 'echo'])
352352

353353
print()
354354
return value

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ commands =
6868
[testenv:ruff]
6969
deps =
7070
{[testenv]deps}
71-
ruff: ruff==0.11.13
71+
ruff: ruff==0.12.0
7272
setenv =
7373
{[testenv]setenv}
7474
RUFF_CACHE_DIR={toxworkdir}/.ruff_cache

0 commit comments

Comments
 (0)