-
Notifications
You must be signed in to change notification settings - Fork 3
Use elixir formatter to format codebase #18
Conversation
tpbowden
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but if we're going to enforce it you should add a step to circle to fail if it's not formatted (--check-formatted)
| - run: mix local.rebar --force | ||
| - run: elixir --version | ||
| - run: mix deps.get | ||
| - run: mix format --check-formatted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to change the image to be 1,6
| elixirc_paths: elixirc_paths(Mix.env), | ||
| elixir: "~> 1.5", | ||
| elixirc_paths: elixirc_paths(Mix.env()), | ||
| elixir: "~> 1.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this prevent it from being installed with 1.5?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume so. Bumped the version a revision but maybe I should go minor in case this is true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this feels like a minor bump at least. Gonna change that now.
34f6f28 to
7962cb9
Compare
Also introduce a pre-commit hook to make sure the codebase is formatted before a commit.
Instructions for the pre-commit hook in the README.