Skip to content

Bump https://gitlab.com/vojko.pribudic.foss/pre-commit-update from v0.9.0 to 0.10.0 - #140

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pre_commit/https-/gitlab.com/vojko.pribudic.foss/pre-commit-update-0.10.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pre_commit/https-/gitlab.com/vojko.pribudic.foss/pre-commit-update-0.10.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Bumps https://gitlab.com/vojko.pribudic.foss/pre-commit-update from v0.9.0 to 0.10.0.

Release notes

Sourced from https://gitlab.com/vojko.pribudic.foss/pre-commit-update's releases.

v0.10.0

Bug Fixes

  • Fixed get_dict_diffs crash on mismatched keys - KeyError when the second dict contained keys absent from the first (e.g. extra pyproject.toml config keys not in defaults). Now uses .get() for safe lookup.
  • Fixed inverted --bleeding-edge validation logic - Previously warned about --all-versions being ignored when it was not set. Now correctly warns only when both --all-versions and --bleeding-edge are active simultaneously.
  • Fixed EnvManager leaking environment variables - If GIT_TERMINAL_PROMPT, PYTHONIOENCODING, or PYTHONUTF8 were not set before running, they were permanently injected into the environment after restore. Now properly unsets variables that were originally absent.
  • Fixed except Exception swallowing Click errors in CLI - click.ClickException (raised during --dry-run strict mode) was caught by a broad except Exception and converted to a plain sys.exit, losing Click's formatted error output. Now re-raises click.ClickException properly.
  • Fixed Equal version missmatches - closes #26.

Performance

  • Fixed O(n²) index lookup in RepoManager.get_updates - Replaced list.index(repo) inside a loop with enumerate(), reducing complexity from O(n²) to O(n).

Refactoring

  • Removed redundant dict reassignment in RepoManager - repos_data[i] = repo was a no-op in both __add_trim_to_repos_data and __remove_trim_from_repos_data since the dict is already mutated in-place. Methods now consistently mutate in-place and return None.
  • Made EnvManager a context manager - Added __enter__/__exit__ support, replacing the manual setup()/try/finally/restore() pattern in cli.py with a cleaner with EnvManager(): block.
  • Unified type hints to modern Python 3.10+ style - Replaced all Optional[str] with str | None in repo.py and removed the from typing import Optional import.
  • Clarified thread result access pattern in RepoManager - Replaced the .exception()-then-.result() pattern with explicit try/except around .result() calls for clarity when handling git operation failures.

Tests

  • Added tests for EnvManager context manager protocol.
  • Added tests for EnvManager correctly unsetting originally absent env vars.
  • Added tests for EnvManager restoring pre-existing env var values.
  • Added test for get_dict_diffs with mismatched keys.
  • Added test case for --bleeding-edge validation when --all-versions is active.
  • Updated expected warning counts in option manager tests to match corrected validation logic.
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file pre_commit Pull requests that update pre_commit code labels Oct 16, 2026
@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 22b687a4-e197-454f-b63d-f932a25e276a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dependabot @github

dependabot Bot commented on behalf of github Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

Looks like https://gitlab.com/vojko.pribudic.foss/pre-commit-update is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Oct 19, 2026
@dependabot
dependabot Bot deleted the dependabot/pre_commit/https-/gitlab.com/vojko.pribudic.foss/pre-commit-update-0.10.0 branch October 19, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file pre_commit Pull requests that update pre_commit code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants