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

PreCommit Hooks can be executed without errors #50

Merged
merged 2 commits into from
Oct 17, 2022

Conversation

DocMoebiuz
Copy link
Contributor

@DocMoebiuz DocMoebiuz commented Oct 14, 2022

Desription

pre-commit requires virtualenv, and with recent ubuntu versions 22.x there was a change that makes virtualenv copy the python executable into ./local/bin instead of ./bin
This breaks pre-commit.

Changes

  • downgrade of python setuptools package
  • install two additional packages via apt-get that were missing in base image to build pre-commit wheels

fixes #45

Notes

I created a follow up as improvement for the base image: eclipse-velocitas/devcontainer-base-images#2

Checklist

VehicleApp

  • Vehicle App can be started with dapr run and is connecting to vehicle data broker
  • Vehicle App can process MQTT messages and call the seat service
  • Vehicle App can be deployed to local K3D and is running (blocked by current proxy issue)
  • n/a Created/updated tests, if necessary. Code Coverage percentage on new code shall be >= 70%.
  • n/a Extended the documentation in Velocitas repo
  • n/a Extended the documentation in README.md

DevContainer

  • Devcontainer can be opened successfully
  • Devcontainer can be opened successfully behind a corporate proxy
  • Devcontainer can be re-built successfully

Release flow

  • n/a Release workflow is passing

@github-actions
Copy link

github-actions bot commented Oct 14, 2022

Unit Test Results

1 tests  ±0   1 ✔️ ±0   1s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ±0 

Results for commit 4ece1ee. ± Comparison against base commit 9cd0190.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Oct 14, 2022

Trivy Scan Results (sampleapp)

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
1 files   ±0   0 ±0 

Results for commit 4ece1ee. ± Comparison against base commit 9cd0190.

♻️ This comment has been updated with latest results.

@DocMoebiuz DocMoebiuz merged commit 1c89f45 into main Oct 17, 2022
@DocMoebiuz DocMoebiuz deleted the 45-precommit-hook-fix branch October 17, 2022 14:41
eclipsewebmaster pushed a commit that referenced this pull request Oct 18, 2022
@DocMoebiuz DocMoebiuz restored the 45-precommit-hook-fix branch October 18, 2022 14:30
@DocMoebiuz DocMoebiuz deleted the 45-precommit-hook-fix branch October 19, 2022 10:11
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.

pre-commit hooks fail in devcontainer
2 participants