We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6d3ae2 commit 8d01860Copy full SHA for 8d01860
.pre-commit-config.yaml
@@ -54,6 +54,15 @@ repos:
54
rev: v1.10.0
55
hooks:
56
- id: numpydoc-validation
57
+ - repo: local
58
+ hooks:
59
+ - id: ban-lstrip-rstrip
60
+ name: ban lstrip/rstrip
61
+ language: pygrep
62
+ # Matches .lstrip() or .rstrip() where the string argument is 2+ characters.
63
+ entry: "\\.(lstrip|rstrip)\\([\"'][^\"']{2,}[\"']\\)"
64
+ types: [python]
65
+ files: ^(src|tests)/
66
- repo: https://github.com/twisted/towncrier
67
rev: 25.8.0
68
0 commit comments