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

0.2.0 - fixes to YAML read/writes #3

Merged
merged 8 commits into from
Jul 26, 2023
Merged

0.2.0 - fixes to YAML read/writes #3

merged 8 commits into from
Jul 26, 2023

Conversation

GabDug
Copy link
Owner

@GabDug GabDug commented Jul 17, 2023

  • Test against PDM 2.8.x
  • Fix reading and writing of .pre-commit-config.yaml
    • Ignore local hooks (Fix [KeyError]: 'rev' #4)
    • Support files with document separator (---)
    • Move from PyYAML to strictyaml, partially validate the config file

@codecov
Copy link

codecov bot commented Jul 17, 2023

Codecov Report

Merging #3 (9e5f1b9) into main (54fd7c1) will increase coverage by 0.13%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
+ Coverage   96.88%   97.01%   +0.13%     
==========================================
  Files           8        9       +1     
  Lines         353      369      +16     
  Branches       64       66       +2     
==========================================
+ Hits          342      358      +16     
  Misses         10       10              
  Partials        1        1              
Flag Coverage Δ
unittests 97.01% <100.00%> (+0.13%) ⬆️

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

Files Changed Coverage Δ
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/pre_commit_config.py 100.00% <100.00%> (ø)

@GabDug GabDug merged commit 80a5d30 into main Jul 26, 2023
21 checks passed
@GabDug GabDug deleted the dev branch July 26, 2023 19:57
@GabDug GabDug changed the title chore: upgrade PDM 0.2.0 - fixes to YAML read/writes Jul 26, 2023
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.

[KeyError]: 'rev'
1 participant