Skip to content

Update pre-commit documentation#57

Merged
charliermarsh merged 1 commit intomainfrom
charlie/pre-commit
Nov 7, 2023
Merged

Update pre-commit documentation#57
charliermarsh merged 1 commit intomainfrom
charlie/pre-commit

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

@charliermarsh charliermarsh commented Nov 7, 2023

I got some feedback on Mastodon that it wasn't clear how to use the linter and formatter together in pre-commit.

This also removes --exit-non-zero-on-fix, since pre-commit already exits if files are changed, and changes our recommendation to always put the formatter after the linter, since if a previous tool ends up committing changes, pre-commit should fail anyway.

@charliermarsh charliermarsh merged commit f1ef5ac into main Nov 7, 2023
@charliermarsh charliermarsh deleted the charlie/pre-commit branch November 7, 2023 18: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.

2 participants