Skip to content

Commit 6802f48

Browse files
Satellite-QEpre-commit-ci[bot]claudeogajduse
authored
[6.16.z] [pre-commit.ci] pre-commit autoupdate (#1332)
* [pre-commit.ci] pre-commit autoupdate (#1253) Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ondřej Gajdušek <ogajduse@redhat.com> (cherry picked from commit 5e7a485) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- 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 1fc6af9 commit 6802f48

3 files changed

Lines changed: 14 additions & 16 deletions

File tree

.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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
# ruff: noqa: F401
3535

3636
# Cannot use ast.literal_eval because ServerConfig isn't a basic type
37-
# ruff: noqa: S307
3837

3938

4039
def _convert_bsc_attrs(bsc_attrs):
@@ -221,7 +220,7 @@ def test_bsc_v1(self):
221220
"""
222221
target = "nailgun.config.BaseServerConfig(url='bogus')"
223222
self.assertEqual(target, repr(BaseServerConfig('bogus')))
224-
import nailgun
223+
import nailgun # noqa: PLC0415
225224

226225
self.assertEqual(target, repr(eval(repr(BaseServerConfig('bogus')))))
227226

@@ -237,7 +236,7 @@ def test_bsc_v2(self):
237236
"nailgun.config.BaseServerConfig(auth='flam', url='flim')",
238237
)
239238
self.assertIn(repr(BaseServerConfig('flim', auth='flam')), targets)
240-
import nailgun
239+
import nailgun # noqa: PLC0415
241240

242241
self.assertIn(repr(eval(repr(BaseServerConfig('flim', auth='flam')))), targets)
243242

@@ -262,7 +261,7 @@ def test_sc_v1(self):
262261
"""
263262
target = "nailgun.config.ServerConfig(url='bogus')"
264263
self.assertEqual(target, repr(ServerConfig('bogus')))
265-
import nailgun
264+
import nailgun # noqa: PLC0415
266265

267266
self.assertEqual(target, repr(eval(repr(ServerConfig('bogus')))))
268267

@@ -278,7 +277,7 @@ def test_sc_v2(self):
278277
"nailgun.config.ServerConfig(auth='flam', url='flim')",
279278
)
280279
self.assertIn(repr(ServerConfig('flim', auth='flam')), targets)
281-
import nailgun
280+
import nailgun # noqa: PLC0415
282281

283282
self.assertIn(repr(eval(repr(ServerConfig('flim', auth='flam')))), targets)
284283

@@ -307,7 +306,7 @@ def test_sc_v4(self):
307306
"nailgun.config.ServerConfig(verify='flub', url='flim')",
308307
)
309308
self.assertIn(repr(ServerConfig('flim', verify='flub')), targets)
310-
import nailgun
309+
import nailgun # noqa: PLC0415
311310

312311
self.assertIn(repr(eval(repr(ServerConfig('flim', verify='flub')))), targets)
313312

tests/test_entity_mixins.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
# ruff: noqa: F401
3535

3636
# Cannot use ast.literal_eval because ServerConfig isn't a basic type
37-
# ruff: noqa: S307
3837

3938

4039
class SampleEntity(entity_mixins.Entity):
@@ -475,8 +474,8 @@ def test_repr_v1(self):
475474
config.ServerConfig.get()
476475
except (KeyError, config.ConfigFileError):
477476
self.cfg.save()
478-
import nailgun
479-
import tests
477+
import nailgun # noqa: PLC0415
478+
import tests # noqa: PLC0415
480479

481480
self.assertEqual(repr(eval(repr(entity))), target)
482481

@@ -495,8 +494,8 @@ def test_repr_v2(self):
495494
config.ServerConfig.get()
496495
except (KeyError, config.ConfigFileError):
497496
self.cfg.save()
498-
import nailgun
499-
import tests
497+
import nailgun # noqa: PLC0415
498+
import tests # noqa: PLC0415
500499

501500
self.assertEqual(repr(eval(repr(entity))), target)
502501

@@ -519,8 +518,8 @@ def test_repr_v3(self):
519518
config.ServerConfig.get()
520519
except (KeyError, config.ConfigFileError):
521520
self.cfg.save()
522-
import nailgun
523-
import tests
521+
import nailgun # noqa: PLC0415
522+
import tests # noqa: PLC0415
524523

525524
self.assertEqual(repr(eval(repr(entity))), target)
526525

0 commit comments

Comments
 (0)