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

Configure dprint #134

Merged
merged 6 commits into from
Jul 3, 2023
Merged

Configure dprint #134

merged 6 commits into from
Jul 3, 2023

Conversation

Lohann
Copy link
Collaborator

@Lohann Lohann commented Jul 3, 2023

Description

dprint is a command line application that automatically formats code, here I use it to enforce the format of TOML, Markdown, Dockerfile and JSON files, like how cargo fmt --all enforce the format of rust files.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • Configure dprint.json
  • Configure dprint on CI pipeline

Tests

Install dprint :

cargo install --locked dprint

Then to format files:

dprint fmt

or to check the format without changing the files:

dprint check

Code review prechecks:

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Inline comments have been added for each method
  • I have made corresponding changes to the documentation
  • Code changes introduces no new problems or warnings
  • Test cases have been added
  • Dependent changes have been merged and published in downstream modules

@Lohann Lohann requested a review from dvc94ch July 3, 2023 22:04
@Lohann Lohann changed the title Feature/configure dprint Configure dprint Jul 3, 2023
@Lohann Lohann merged commit 0d99d92 into master Jul 3, 2023
2 of 3 checks passed
@dvc94ch dvc94ch deleted the feature/configure-dprint branch September 7, 2023 20:34
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.

2 participants