Skip to content

feat(providers): add dart_provider #1564

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheAlbertDev
Copy link

closes: #1563

Description

as title

Checklist

Code Changes

  • Add test cases to all the changes you introduce
  • Run poetry all locally to ensure this change passes linter check and tests
  • Manually test the changes:
    • Verify the feature/bug fix works as expected in real-world scenarios
    • Test edge cases and error conditions
    • Ensure backward compatibility is maintained
    • Document any manual testing steps performed
  • Update the documentation for the changes

Documentation Changes

  • Run poetry doc locally to ensure the documentation pages renders correctly
  • Check and fix any broken links (internal or external) in the documentation

When running poetry doc, any broken internal documentation links will be reported in the console output like this:

INFO    -  Doc file 'config.md' contains a link 'commands/bump.md#-post_bump_hooks', but the doc 'commands/bump.md' does not contain an anchor '#-post_bump_hooks'.

Expected Behavior

Version field in dart's pubspec.yaml file should also update when running cz bump

Steps to Test This Pull Request

dart create your_package_name
cd your_package_name
cz init
git add .
cz c
cz bump

Additional Context

Copy link

codecov bot commented Aug 1, 2025

Codecov Report

❌ Patch coverage is 97.43590% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 97.95%. Comparing base (120d514) to head (e1e7164).
⚠️ Report is 753 commits behind head on master.

Files with missing lines Patch % Lines
commitizen/commands/init.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1564      +/-   ##
==========================================
+ Coverage   97.33%   97.95%   +0.61%     
==========================================
  Files          42       59      +17     
  Lines        2104     2742     +638     
==========================================
+ Hits         2048     2686     +638     
  Misses         56       56              
Flag Coverage Δ
unittests 97.95% <97.43%> (+0.61%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@@ -24,6 +24,7 @@ dependencies = [
"charset-normalizer (>=2.1.0,<4)",
# Use the Python 3.11 and 3.12 compatible API: https://github.com/python/importlib_metadata#compatibility
"importlib-metadata >=8.0.0,<8.7.0 ; python_version < '3.10'",
"ruamel-yaml (>=0.18.14,<0.19.0)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pubspec.yaml file in Dart contains fields both with and without quotes. ruamel.yaml extends PyYAML by offering more configuration options, such as setting style preferences for quotes — in this case, preserving the original ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants