Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Conversation

@sadir
Copy link
Contributor

@sadir sadir commented Jan 17, 2018

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.

Copy link
Contributor

@tpbowden tpbowden left a 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
Copy link
Contributor

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

@coveralls
Copy link

Coverage Status

Coverage increased (+0.9%) to 85.211% when pulling c8ca992 on format_codebase into 2422d78 on master.

elixirc_paths: elixirc_paths(Mix.env),
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
elixir: "~> 1.6",
Copy link
Contributor

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?

Copy link
Contributor Author

@sadir sadir Jan 18, 2018

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?

Copy link
Contributor Author

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.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.9%) to 85.211% when pulling 34f6f28 on format_codebase into 2422d78 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.9%) to 85.211% when pulling 7962cb9 on format_codebase into 2422d78 on master.

@sadir sadir merged commit 7962cb9 into master Jan 18, 2018
@sadir sadir deleted the format_codebase branch January 18, 2018 15:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants