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 option to generate a sample configuration file #514

Closed
elaichi opened this issue Mar 30, 2017 · 5 comments
Closed

Add option to generate a sample configuration file #514

elaichi opened this issue Mar 30, 2017 · 5 comments
Labels

Comments

@elaichi
Copy link

elaichi commented Mar 30, 2017

Similar to how pylint offers --generate-rcfile, pre-commit could have an option to generate a sample .pre-commit-config.yaml.
Note that this is related to pre-commit/pre-commit.com#29.

@asottile
Copy link
Member

I guess the question becomes what set of hooks would it configure?

@elaichi
Copy link
Author

elaichi commented Mar 30, 2017

How about a fairly generic subset of these?
https://github.com/pre-commit/pre-commit-hooks/blob/master/.pre-commit-config.yaml#L4-L14
e.g.

trailing-whitespace
end-of-file-fixer
check-added-large-files
check-yaml

@asottile
Copy link
Member

Seems easy enough!

@asottile
Copy link
Member

Via #515

@asottile
Copy link
Member

This feature is in 0.14.0

droctothorpe pushed a commit to droctothorpe/pre-commit that referenced this issue Mar 23, 2022
Add a way to do case-insensitive sorting via file-contents-sorter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants