Skip to content

Conversation

@alexmohr
Copy link

@alexmohr alexmohr commented Dec 2, 2025

Summary

Pre-commit Action

Multi-language code quality checks:

  • YAML: syntax validation, formatting with yamlfmt
  • Python: ruff format and lint
  • Rust: cargo fmt with import ordering (if Cargo.toml present)
  • TOML: taplo format and lint
  • License headers: Apache SkyWalking Eyes auto-fix

All formatters auto-fix issues and fail on changes.

Local Execution

run_checks.py downloads shared configuration and runs identical checks locally.

Configuration

Default values for all inputs with fallback handling when empty strings are passed:

  • Rust nightly: 2025-07-14
  • Python: 3.13
  • pre-commit: 4.2
  • Custom configs supported via optional inputs

This repo is also using it's own pipeline to verify things.

Checklist

  • I have tested my changes locally
  • I have added or updated documentation
  • I have linked related issues or discussions
  • I have added or updated tests

Related

Notes for Reviewers

Alexander Mohr [email protected], Mercedes-Benz Tech Innovation GmbH
Provider Information

@alexmohr alexmohr force-pushed the init branch 27 times, most recently from f74d883 to 9470dd8 Compare December 2, 2025 14:44
@alexmohr alexmohr marked this pull request as ready for review December 2, 2025 14:47
@alexmohr alexmohr force-pushed the init branch 2 times, most recently from cde052e to 43933ee Compare December 2, 2025 15:01
@alexmohr
Copy link
Author

alexmohr commented Dec 2, 2025

I still have to test this in repo with rust code, so all checks run.

@lh-sag did I miss some checks or any suggestions for more things to add?

All checks are moved to pre-commit now because it is annoying to run multiple tools (uv, license-check, cargo fmt, taplo, etc), so everything can be done via uv now.
The readme documents how to set it up in a repo using this and to run it once.

runs-on: ubuntu-latest
steps:
- name: Run checks
uses: eclipse-opensovd/cicd-workflows/pre-commit-action@init
Copy link
Author

Choose a reason for hiding this comment

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

must be init until we have this on main, immediately after merging this, we need a second PR changing this to main.

floroks
floroks previously approved these changes Jan 13, 2026
inputs:
rust-nightly-version:
description: 'Rust nightly version to use (YYYY-MM-DD)'
required: false
Copy link

Choose a reason for hiding this comment

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

question: would it make sense if the descriptions include what happens if nothing is set - e.g. "the default value defined in action.yml is used" for this and the others?

Copy link
Author

Choose a reason for hiding this comment

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

thanks, added it :)

copyright-owner: The Contributors to Eclipse OpenSOVD
software-name: opensovd-cda
content: |
Copyright (c) 2025 The Contributors to Eclipse OpenSOVD (see CONTRIBUTORS)
Copy link

Choose a reason for hiding this comment

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

question: should we add LICENSE, NOTICE and CONTRIBUTORS? Since this repo is open-source, it could serve as an example for how we'd expect them in new projects

Copy link
Author

Choose a reason for hiding this comment

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

done

Copy link
Author

Choose a reason for hiding this comment

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

@floroks Could you please take a look and re-approve in case you're happy with the changes? Thank you.

* pre commit check with uv
* license header check

Signed-off-by: Alexander Mohr <[email protected]>
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.

3 participants