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 formatter in CI #33

Merged
merged 5 commits into from
Feb 1, 2024
Merged

add formatter in CI #33

merged 5 commits into from
Feb 1, 2024

Conversation

HermanObst
Copy link
Contributor

@HermanObst HermanObst commented Jan 30, 2024

Problem: We need a standard way to code.
Solution: apply formatter and add that into the CI

@@ -63,6 +63,9 @@ jobs:
- name: Build
run: cargo build --verbose

- name: Cargo fmt
- run: cargo fmt
Copy link
Contributor

Choose a reason for hiding this comment

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

Pretty sure you want cargo fmt --check for the CI, otherwise it will just apply formatting without failing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

indeed, thanks for the catch!

.github/workflows/tests.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@notlesh notlesh left a comment

Choose a reason for hiding this comment

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

LGTM.

I thought we had mixed tabs/spaces in this codebase, but maybe I'm wrong.

@HermanObst HermanObst merged commit a5c813b into main Feb 1, 2024
1 check passed
@HermanObst HermanObst deleted the add-ci-formatter branch February 1, 2024 14:33
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