Skip to content

Commit 805530f

Browse files
committed
Update debug-statements description
1 parent 6ed369d commit 805530f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
minimum_pre_commit_version: 0.15.0
135135
- id: debug-statements
136136
name: Debug Statements (Python)
137-
description: This hook checks that debug statements (pdb, ipdb, pudb) are not imported on commit.
137+
description: Check for debugger imports and py37+ `breakpoint()` calls in python source.
138138
entry: debug-statement-hook
139139
language: python
140140
types: [python]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ Add this to your `.pre-commit-config.yaml`
5757
otherwise be forbidden. Using this option removes all guarantees of
5858
portability to other yaml implementations.
5959
Implies `--allow-multiple-documents`.
60-
- `debug-statements` - Check for pdb / ipdb / pudb statements in code.
60+
- `debug-statements` - Check for debugger imports and py37+ `breakpoint()`
61+
calls in python source.
6162
- `detect-aws-credentials` - Checks for the existence of AWS secrets that you
6263
have set up with the AWS CLI.
6364
The following arguments are available:

0 commit comments

Comments
 (0)