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 compatibility with Poetry 1.6.0+ #6

Merged
merged 13 commits into from
Aug 28, 2023
Merged

Add compatibility with Poetry 1.6.0+ #6

merged 13 commits into from
Aug 28, 2023

Conversation

GabDug
Copy link
Owner

@GabDug GabDug commented Aug 28, 2023

Added

  • New commands pdm sync-pre-commit and poetry sync-pre-commit to manually sync the pre-commit hooks versions from the lockfile.
  • Added support for Poetry 1.6.0+

Changed

  • Sync of versions with dry-run now executes fully, without updating the pre-commit-config file
  • Misc. README, lint and format changes

@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Merging #6 (dee10c0) into main (2321f71) will decrease coverage by 2.48%.
The diff coverage is 77.35%.

@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
- Coverage   97.01%   94.54%   -2.48%     
==========================================
  Files           9        9              
  Lines         369      403      +34     
  Branches       66       67       +1     
==========================================
+ Hits          358      381      +23     
- Misses         10       21      +11     
  Partials        1        1              
Flag Coverage Δ
unittests 94.54% <77.35%> (-2.48%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/sync_pre_commit_lock/utils.py 100.00% <ø> (ø)
src/sync_pre_commit_lock/poetry_plugin.py 84.52% <71.87%> (-7.01%) ⬇️
src/sync_pre_commit_lock/pdm_plugin.py 89.39% <72.72%> (-3.59%) ⬇️
src/sync_pre_commit_lock/actions/install_hooks.py 96.07% <100.00%> (ø)
src/sync_pre_commit_lock/actions/sync_hooks.py 100.00% <100.00%> (ø)
src/sync_pre_commit_lock/config.py 100.00% <100.00%> (ø)
src/sync_pre_commit_lock/pre_commit_config.py 100.00% <100.00%> (ø)

@GabDug GabDug marked this pull request as ready for review August 28, 2023 19:49
@GabDug GabDug merged commit 3f0772e into main Aug 28, 2023
22 of 24 checks passed
@GabDug GabDug deleted the poetry-compat branch January 30, 2024 18:15
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.

None yet

1 participant