Commit Graph

8 Commits

Author SHA1 Message Date
Sebastian Poxhofer 5ad36a2387 test(linters): add linting rule to enforce usage of host rules test util (#44692)
* ci(linter): add renovate/no-host-rules-mock rule

Flags vi.mock()/vi.doMock() calls whose module specifier contains
"host-rules" in spec files. Tests should configure real rules via
hostRules.add() instead of mocking the host-rules module.

Enabled at "warn" severity instead of "error": the repo currently has
35 pre-existing violations across 34 spec files, which exceeds the
agreed fix threshold of 12 files. No violation fixes are included;
migrating each spec to real hostRules.add()/clear() setup is a
semantic test rewrite that should be done incrementally, after which
the rule can be promoted to "error".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci(linter): enforce renovate/no-host-rules-mock at error

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test(datasource): use real host-rules instead of mocking

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test(manager): use real host-rules instead of mocking

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test(platform): use real host-rules instead of mocking

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test(util,workers): use real host-rules instead of mocking

Also narrow renovate/no-host-rules-mock to the host-rules module itself so that mocking e.g. host-rules-from-env is not flagged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci(linter): mention '~test/host-rules.ts' util in no-host-rules-mock message

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 10:36:12 +00:00
Maxime Brunet 147b620187 feat(poetry): support GCloud credentials for Google Artifact Registry when locking (#32586)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-01-08 12:28:11 +00:00
Sigurd Spieckermann ff8c63ea04 fix(manager/poetry): fix schema for optional dependencies (#32096)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-10-30 19:19:44 +00:00
Joshua Tang cec6faeaf6 refactor(manager/poetry): use zod schema validation (#23830) 2023-08-18 10:23:32 +00:00
Rhys Arkins 2e2570c2fd feat(poetry): detect constraint from lock file (#22038)
Co-authored-by: Mathieu Kniewallner <mathieu.kniewallner@gmail.com>
2023-05-10 05:38:03 +00:00
Braden Mars c4053802c5 feat: Support toml up to v1.0.0-rc.1 (#18670) 2022-11-01 06:16:13 +00:00
Michael Kriese 99de3b72f0 test(python): fix snapshot tests (#17064) 2022-08-09 08:24:46 +02:00
Rhys Arkins dca3418bbd refactor: lib/modules (#14488)
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00