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 pre-commit support. #76

Merged
merged 3 commits into from
Aug 19, 2024
Merged

Conversation

exitflynn
Copy link
Contributor

@exitflynn exitflynn commented Aug 12, 2024

Adds pre-commit support for the project. I've felt hooks for --safe and --aggressive should cover most use-cases but I'll be happy to include others if that appears better.

Closes #75.

@JelleZijlstra
Copy link
Owner

Is there no way to let the pre-commit hook take whatever arguments autotyping itself accepts? Doesn't seem ideal to have to hardcode specific arguments.

@exitflynn
Copy link
Contributor Author

yep, we can do that! ^

@exitflynn
Copy link
Contributor Author

hey @JelleZijlstra, I can't seem to reproduce the failing CI error at my end, would you have any insights why this could be happening?

@JelleZijlstra
Copy link
Owner

I'm not entirely sure; it's possible I need to cut a new release of pyanalyze. I'll look into it.

@JelleZijlstra JelleZijlstra merged commit 665fd12 into JelleZijlstra:master Aug 19, 2024
5 checks passed
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.

Add pre-commit support?
2 participants