Skip to content

Commit 8e0e557

Browse files
Satellite-QEpre-commit-ci[bot]claudeogajduse
authored
[pre-commit.ci] pre-commit autoupdate (#1253) (#1334)
(cherry picked from commit 5e7a485) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Ondřej Gajdušek <ogajduse@redhat.com>
1 parent 9bc90eb commit 8e0e557

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ ci:
55

66
repos:
77
- repo: https://github.com/psf/black
8-
rev: 24.10.0
8+
rev: 25.1.0
99
hooks:
1010
- id: black
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.7.3
12+
rev: v0.12.8
1313
hooks:
1414
- id: ruff
1515
args: [--fix, --exit-non-zero-on-fix]
1616
- repo: https://github.com/pre-commit/pre-commit-hooks
17-
rev: v5.0.0
17+
rev: v6.0.0
1818
hooks:
1919
- id: check-yaml
2020
- id: debug-statements

tests/test_config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def test_bsc_v1(self):
221221
"""
222222
target = "nailgun.config.BaseServerConfig(url='bogus')"
223223
self.assertEqual(target, repr(BaseServerConfig('bogus')))
224-
import nailgun
224+
import nailgun # noqa: PLC0415
225225

226226
self.assertEqual(target, repr(eval(repr(BaseServerConfig('bogus')))))
227227

@@ -237,7 +237,7 @@ def test_bsc_v2(self):
237237
"nailgun.config.BaseServerConfig(auth='flam', url='flim')",
238238
)
239239
self.assertIn(repr(BaseServerConfig('flim', auth='flam')), targets)
240-
import nailgun
240+
import nailgun # noqa: PLC0415
241241

242242
self.assertIn(repr(eval(repr(BaseServerConfig('flim', auth='flam')))), targets)
243243

@@ -262,7 +262,7 @@ def test_sc_v1(self):
262262
"""
263263
target = "nailgun.config.ServerConfig(url='bogus')"
264264
self.assertEqual(target, repr(ServerConfig('bogus')))
265-
import nailgun
265+
import nailgun # noqa: PLC0415
266266

267267
self.assertEqual(target, repr(eval(repr(ServerConfig('bogus')))))
268268

@@ -278,7 +278,7 @@ def test_sc_v2(self):
278278
"nailgun.config.ServerConfig(auth='flam', url='flim')",
279279
)
280280
self.assertIn(repr(ServerConfig('flim', auth='flam')), targets)
281-
import nailgun
281+
import nailgun # noqa: PLC0415
282282

283283
self.assertIn(repr(eval(repr(ServerConfig('flim', auth='flam')))), targets)
284284

@@ -307,7 +307,7 @@ def test_sc_v4(self):
307307
"nailgun.config.ServerConfig(verify='flub', url='flim')",
308308
)
309309
self.assertIn(repr(ServerConfig('flim', verify='flub')), targets)
310-
import nailgun
310+
import nailgun # noqa: PLC0415
311311

312312
self.assertIn(repr(eval(repr(ServerConfig('flim', verify='flub')))), targets)
313313

tests/test_entity_mixins.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ def test_repr_v1(self):
475475
config.ServerConfig.get()
476476
except (KeyError, config.ConfigFileError):
477477
self.cfg.save()
478-
import nailgun
479-
import tests
478+
import nailgun # noqa: PLC0415
479+
import tests # noqa: PLC0415
480480

481481
self.assertEqual(repr(eval(repr(entity))), target)
482482

@@ -495,8 +495,8 @@ def test_repr_v2(self):
495495
config.ServerConfig.get()
496496
except (KeyError, config.ConfigFileError):
497497
self.cfg.save()
498-
import nailgun
499-
import tests
498+
import nailgun # noqa: PLC0415
499+
import tests # noqa: PLC0415
500500

501501
self.assertEqual(repr(eval(repr(entity))), target)
502502

@@ -519,8 +519,8 @@ def test_repr_v3(self):
519519
config.ServerConfig.get()
520520
except (KeyError, config.ConfigFileError):
521521
self.cfg.save()
522-
import nailgun
523-
import tests
522+
import nailgun # noqa: PLC0415
523+
import tests # noqa: PLC0415
524524

525525
self.assertEqual(repr(eval(repr(entity))), target)
526526

0 commit comments

Comments
 (0)