8000 Update pre-commit documentation by charliermarsh · Pull Request #57 · astral-sh/ruff-pre-commit · GitHub
[go: up one dir, main page]

Skip to content

Update pre-commit documentation #57

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

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Conversation

charliermarsh
Copy link
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
0