Skip to content

Commit ef92379

Browse files
cclaussgithub-actions
authored andcommitted
.pre-commit-config.yaml: Disable trailing-whitespace fixer (TheAlgorithms#3306)
* .pre-commit-config.yaml: Disable trailing-whitespace fixer * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent e5dcb69 commit ef92379

File tree

2 files changed

+174
-170
lines changed

2 files changed

+174
-170
lines changed

Diff for: .pre-commit-config.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ repos:
66
- id: check-yaml
77
- id: end-of-file-fixer
88
types: [python]
9-
- id: trailing-whitespace
10-
exclude: |
11-
(?x)^(
12-
data_structures/heap/binomial_heap.py
13-
)$
9+
# Some doctests use print(x, sep=" ") and black will not fix inside triple quotes
10+
# It is too confusing for new contributors to understand this and how to fix
11+
#- id: trailing-whitespace
12+
# exclude: |
13+
# (?x)^(
14+
# data_structures/heap/binomial_heap.py
15+
# )$
1416
- id: requirements-txt-fixer
1517
- repo: https://github.com/psf/black
1618
rev: stable

0 commit comments

Comments
 (0)