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 indent option to dump/dumps #49

Merged
merged 9 commits into from
Oct 8, 2024
Merged

Add indent option to dump/dumps #49

merged 9 commits into from
Oct 8, 2024

Conversation

wimglenn
Copy link
Contributor

@wimglenn wimglenn commented Jun 2, 2024

Alternative to #27 (keeps backwards compatibility).

Allows using tomli_w.dumps(data, indent=2) similar like stdlib json.dumps.

@wimglenn
Copy link
Contributor Author

@hukkin CI failures are not related to the changes

@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (9d939b5) to head (7e5b3e2).
Report is 4 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #49   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          125       125           
  Branches        34        34           
=========================================
  Hits           125       125           

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

src/tomli_w/_writer.py Outdated Show resolved Hide resolved
src/tomli_w/_writer.py Outdated Show resolved Hide resolved
src/tomli_w/_writer.py Outdated Show resolved Hide resolved
src/tomli_w/_writer.py Outdated Show resolved Hide resolved
src/tomli_w/_writer.py Outdated Show resolved Hide resolved
src/tomli_w/_writer.py Outdated Show resolved Hide resolved
@hukkin hukkin merged commit af607ff into hukkin:master Oct 8, 2024
24 checks passed
@hukkin
Copy link
Owner

hukkin commented Oct 8, 2024

Thanks!

@wimglenn wimglenn deleted the indent branch October 8, 2024 15:22
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.

3 participants