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

precommit - prevent committing of pdb or print calls #16

Open
winny- opened this issue Nov 15, 2021 · 0 comments
Open

precommit - prevent committing of pdb or print calls #16

winny- opened this issue Nov 15, 2021 · 0 comments

Comments

@winny-
Copy link
Owner

winny- commented Nov 15, 2021

It seems I have a tendency to forget to delete the following lines from Python code:

  • import pdb; pdb.set_trace() — invoke the debugger
  • print(...) — print something to stdout

Both should not be committed. Perhaps a pre-commit hook can prevent this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant