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 a pre commit hook for code formatting #1384

Merged
merged 5 commits into from
Feb 18, 2021

Conversation

Ailrun
Copy link
Member

@Ailrun Ailrun commented Feb 16, 2021

Resolves partially #693.

I will format code base after this PR. I think it's quite hard to find a time slot when there is no "big" PR, so it's maybe better to send the setting first, and format after (in time slots between big PRs), so that other big PRs can use the setting to format them by their own.

@jneira
Copy link
Member

jneira commented Feb 16, 2021

many thanks, agree with the exposed plan
there is no way to only use one config file?

Copy link
Collaborator

@pepeiborra pepeiborra left a comment

Choose a reason for hiding this comment

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

fuckyeah

@Ailrun
Copy link
Member Author

Ailrun commented Feb 16, 2021

@jneira As far as there are different default extensions per directory, no

@jneira
Copy link
Member

jneira commented Feb 16, 2021

wow 1100 lines of config are hard to digest for me too
could we alliviate it in some way? maybe removing comments for all files but the top one?

@Ailrun
Copy link
Member Author

Ailrun commented Feb 16, 2021

@jneira Yeah sure, all those comments are of the default config generator, and we have a reference link, I think it's good to go.

@Ailrun
Copy link
Member Author

Ailrun commented Feb 16, 2021

@jneira How about now?

Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

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

Yeah, it looks much better now, many thanks!!

@Ailrun Ailrun added the merge me Label to trigger pull request merge label Feb 16, 2021
@mergify mergify bot merged commit c95b076 into haskell:master Feb 18, 2021
@Ailrun Ailrun mentioned this pull request Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants