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

Add Poetry actions #229

Closed
wants to merge 9 commits into from
Closed

Add Poetry actions #229

wants to merge 9 commits into from

Conversation

EliSchleifer
Copy link
Member

@EliSchleifer EliSchleifer commented Mar 27, 2023

Adds poetry Trunk Actions to match parity with pre-commit. Note that the non-hermetic story is much cleaner at time of writing, with the hermetic story blocked by not being able to unset VIRTUAL_ENV in the Action and Tool. In other words, for now recommended behavior requires manual Poetry installation.

We've added a tool test and several actions tests. PR taken up by @TylerJang27

@EliSchleifer
Copy link
Member Author

There is a bug we've identified that blocks a commit when all the poetry actions are enabled as defined. The trunk team is actively investigating.

Copy link

Breakpoint trunk-plugins-action-tests was triggered on exit. Click here to connect to the session.

@TylerJang27 TylerJang27 changed the title Poetry actions example Add Poetry actions Mar 20, 2024
TylerJang27 added a commit that referenced this pull request Mar 27, 2024
- Upgrade trunk and bump the minimum required version
  - This will unblock #229
- This will fix some of the Windows [nightly
issues](https://github.com/trunk-io/plugins/actions/runs/8448489088/job/23140665928)
(I'll queue a job after this lands)
- This will fix the [check
nightly](https://github.com/trunk-io/.trunk/actions/runs/8355518290/job/22870763034)
runs (I'll queue a job after this lands)
  - This will add PHP runtime support (soon)
- Note there is one rare daemon lifetime bug that will need a fast
follow-up upgrade fix
- buildifier released
[7.1.0](https://github.com/bazelbuild/buildtools/releases/tag/v7.1.0),
which mandates `load` sorting as a formatting fix
- trufflehog released
[3.71.1](https://github.com/trufflesecurity/trufflehog/releases/tag/v3.71.1),
which no longer lints symlinks, so we have to use `copy_targets` and
cache results to generate a sandbox (`cache_ttl` does not imply
`cache_results` currently)

Note that we will need to have a prod CLI release before we can next
release plugins (minor version bump)
Copy link

trunk-io bot commented Mar 27, 2024

⏱️ 32s total CI duration on this PR

Job Cumulative Duration Recent Runs
Repo Tests / Plugin Tests 32s 🟩

settingsfeedbackdocs ⋅ learn more about trunk.io

@TylerJang27 TylerJang27 mentioned this pull request Mar 27, 2024
TylerJang27 added a commit that referenced this pull request Mar 27, 2024
Dupe of #229. Adds poetry Trunk Actions to match parity with
[pre-commit](https://python-poetry.org/docs/pre-commit-hooks/). Note
that the non-hermetic story is much cleaner at time of writing, with the
hermetic story blocked by not being able to unset `VIRTUAL_ENV` in the
Action and Tool. In other words, for now recommended behavior requires
manual [Poetry
installation](https://python-poetry.org/docs/#installation).

We've added a tool test and several actions tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants