Skip to content

Add pre-commit and associated dependencies for development workflows#359

Merged
samcorky merged 1 commit into
masterfrom
352-renovate-pre-commit-hook
Sep 6, 2025
Merged

Add pre-commit and associated dependencies for development workflows#359
samcorky merged 1 commit into
masterfrom
352-renovate-pre-commit-hook

Conversation

@samcorky

@samcorky samcorky commented Sep 5, 2025

Copy link
Copy Markdown
Contributor
  • Introduce .pre-commit-config.yaml with Renovate configuration validator hook.
  • Update dependencies to include pre-commit.
  • Organise pyproject.toml to include new dev dependency group.
  • Remove poetry-core as a dependency.

Test this by modifying .github/renovate.json, maybe add a new json object or something - it should block the commit unless you override it

- Introduce `.pre-commit-config.yaml` with Renovate configuration validator hook.
- Update dependencies to include `pre-commit`, `cfgv`, `identify`, `nodeenv`, `virtualenv`, and others.
- Organize `pyproject.toml` to include new `dev` dependency group.
- Remove `poetry-core` as a dependency.
@samcorky samcorky linked an issue Sep 5, 2025 that may be closed by this pull request
@sjefferson99 sjefferson99 requested a review from Copilot September 6, 2025 14:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces pre-commit hooks for development workflow validation, specifically adding a Renovate configuration validator to prevent invalid configuration commits.

  • Added pre-commit configuration with Renovate config validation hook
  • Reorganized dependencies by creating a dedicated dev dependency group for pre-commit
  • Removed poetry-core dependency (likely no longer needed for the build system)

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
pyproject.toml Removed poetry-core dependency and added dev dependency group with pre-commit
.pre-commit-config.yaml Added new pre-commit configuration with Renovate validator hook

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sjefferson99 sjefferson99 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure what this does, but have checked it out and been able to build a running smib container set from it.

@samcorky

samcorky commented Sep 6, 2025

Copy link
Copy Markdown
Contributor Author

This precommit hook, will validate the .github/renovate.json format automatially before allowing the commit.

@samcorky samcorky merged commit f53d8f2 into master Sep 6, 2025
@samcorky samcorky deleted the 352-renovate-pre-commit-hook branch September 6, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Renovate pre-commit hook

3 participants