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

Improve taplo output on failure #3909

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Improve taplo output on failure #3909

merged 1 commit into from
Oct 18, 2023

Conversation

abey79
Copy link
Member

@abey79 abey79 commented Oct 18, 2023

What

When taplo fails on CI or with just toml-lint, it tells us very little about what is wrong. The PR adds the --diff option so we can directly see the fix that needs to be done.

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested demo.rerun.io (if applicable)
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

@abey79 abey79 added 🧑‍💻 dev experience developer experience (excluding CI) include in changelog labels Oct 18, 2023
@@ -277,7 +277,7 @@ jobs:

- name: Taplo check
run: |
taplo fmt --check
taplo fmt --check --diff
Copy link
Member

Choose a reason for hiding this comment

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

out of the scope of this PR, but we should call just functions in the .yml files instead of duplicating code imho

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed

@abey79 abey79 merged commit 17d9eac into main Oct 18, 2023
34 checks passed
@abey79 abey79 deleted the antoine/taplo-diff branch October 18, 2023 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧑‍💻 dev experience developer experience (excluding CI) include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants