Commit Graph

23 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
Sebastian Poxhofer ad0b59f8b7 refactor(oxlint): enable vitest/require-to-throw-message (#44421) 2026-07-07 17:47:04 +00:00
Michael Hofmann 934c01dd62 feat(pip-compile): support --constraint alias and --overrides for uv (#43485)
* feat(pip-compile): support --constraint alias and --overrides for uv

uv accepts both --constraint and --constraints (clap aliases) and
records the exact form used into lockfile headers. Only --constraints
was in the uv allowlist, so --constraint headers were rejected.

Similarly, uv supports --override/--overrides for version overrides,
but neither form was recognized by Renovate at all.

This commit:
- adds --constraint to uvOptionsWithArguments (value handler already
  handles both forms)
- adds --override and --overrides to uvOptionsWithArguments with a
  value handler that parses overridesFiles
- tracks override files as dependencies in the file graph (like
  constraints) so lockfiles are recompiled when overrides change
- uses dotted mermaid edges for overrides (same as constraints)

Ref: https://github.com/renovatebot/renovate/discussions/39488
Co-authored-by: Cursor <cursoragent@cursor.com>

* test(pip-compile): add coverage for overrides dependency tracking

Add a test case in extract.spec.ts that exercises the overridesFiles
loop in extractAllPackageFiles, fixing the codecov/patch failure.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 12:45:23 +00:00
Sergei Zharinov 9d857c1f68 refactor(lint): Organize imports with biome (#40966) 2026-02-06 13:40:01 +00:00
Edgar Ramírez Mondragón 2062788d82 feat(pip-compile): Support the --group uv pip compile option (#40665) 2026-02-02 09:53:13 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Edgar Ramírez Mondragón 0b02c4257a feat(pip-compile): Support more uv pip compile options (#39167)
* feat: Support more `uv pip compile` options

Namely: `--prerelease`, `--format` and `--all-extras`

* Add more resolver options
2025-11-07 18:05:13 +00:00
Michael Kriese 19c115c813 test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
Michael Kriese 1644d9cb18 test: migrate more to vitest (#34500) 2025-02-26 15:45:17 +00:00
Michael Kriese 997c23502e test: migrate to vitest (#34475)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2025-02-26 09:35:54 +00:00
Maxime Brunet 53c5b869d7 feat(pip-compile): support tool version constraints with uv (#34029) 2025-02-20 13:13:00 +00:00
renovate[bot] 55845508b6 chore(deps): update eslint monorepo to v9 (major) (#33573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-02-20 11:31:13 +00:00
Maxime Brunet d0916b18b3 feat(pip-compile): support uv pip compile (#33952)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-02-03 15:06:48 +00:00
Miles Budnek 8fb3e2f472 feat(pip-compile): Treat .txt files as pip_requirements files (#29491) 2024-06-06 17:08:46 +00:00
Miles Budnek c27e0ecefb feat(pip-compile): Provide credentials for registries in all input files (#28959) 2024-06-04 16:33:08 +00:00
Miles Budnek 75b7ee545f refactor(pip-compile): Move matchManager to common.ts (#29359) 2024-05-30 19:04:24 +00:00
Aleksandr Mezin 77524af19f feat(manager/pip-compile): extract Python version from lock files (#29145) 2024-05-24 06:09:19 +00:00
Norbert Szulc b570f0db48 fix(manager/pip-compile): Decrease log level for ignored args (#27706) 2024-03-04 15:10:17 +00:00
Norbert Szulc 17be5a0434 fix(manager/pip-compile): allow --all-extras arg (#27637) 2024-03-01 16:00:09 +00:00
Miles Budnek 66dc246133 feat(manager/pip-compile): Use python keychain module for credentials (#27342) 2024-02-22 04:11:52 +00:00
Norbert Szulc 8f02c53039 feat(manager/pip-compile): Allow paths relative to repository root (#27272)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-02-20 17:45:15 +00:00
Miles Budnek c3e57e7b51 feat(manager/pip-compile): Add support for non-default package repos to the pip-compile manager (#26853)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2024-02-12 17:25:14 +00:00
Norbert Szulc f730fcaac4 feat(manager/pip-compile): Add extractHeaderCommand method (#27159) 2024-02-08 19:33:05 +00:00