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 hook to catch breakpoint() #9638

Merged
merged 1 commit into from Nov 9, 2022

Conversation

jrbourbeau
Copy link
Member

Sometimes I forget to remove breakpoint()s I add when debugging locally. This PR adds a pre-commit hook which will check for breakpoint() calls in Python code, which will make sure folks don't accidentally commit code with breakpoint()s in them

Copy link
Contributor

@phobson phobson left a comment

Choose a reason for hiding this comment

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

Love this.

Copy link
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

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

Ooh nice!

@jrbourbeau
Copy link
Member Author

Thanks @phobson @jacobtomlinson for reviewing! Let's give this a try

@jrbourbeau jrbourbeau merged commit 101ecfd into dask:main Nov 9, 2022
@jrbourbeau jrbourbeau deleted the pre-commit-debug branch November 9, 2022 16:12
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.

None yet

3 participants