Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI pre-commit alignment #93

Merged
merged 4 commits into from
Apr 3, 2024
Merged

Conversation

laserkelvin
Copy link
Contributor

Related issues

This partially addresses #47 by running pre-commit as a Github action, ensuring the same tooling is used for both offline development and code review.

Proposed changes

  • Add a pre-commit Github action that runs the pre-commit hooks on the PR diffs
  • Updates .pre-commmit-config.yaml to be consistent with what was defined for P3
  • Adds higher Python version checks to pyupgrade in the pre-commit workflow to align with Python 3.12 usage.

@laserkelvin laserkelvin added the enhancement New feature or request label Apr 3, 2024
@laserkelvin
Copy link
Contributor Author

Apparently the setup Python action needs pyproject.toml or requirements.txt; not sure why...

@Pennycook
Copy link
Contributor

Apparently the setup Python action needs pyproject.toml or requirements.txt; not sure why...

It looks like that's the way the caching is setup by default. If I'm reading the documentation correctly then there appears to be a manual override for projects using setup.py (see here).

I'm happy for us to switch over to pyproject.toml instead if that's easier.

@laserkelvin
Copy link
Contributor Author

Will rebase #94 once it's merged

Signed-off-by: Kin Long Kelvin Lee <kin.long.kelvin.lee@intel.com>
Signed-off-by: Kin Long Kelvin Lee <kin.long.kelvin.lee@intel.com>
Signed-off-by: Kin Long Kelvin Lee <kin.long.kelvin.lee@intel.com>
Signed-off-by: Kin Long Kelvin Lee <kin.long.kelvin.lee@intel.com>
@Pennycook Pennycook merged commit d9bcb33 into intel:main Apr 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants