Skip to content

Commit d1aabb4

Browse files
cclaussgithub-actions
authored andcommitted
Revert recent changes to .pre-commit-config.yaml (TheAlgorithms#3318)
* Revert recent changes to .pre-commit-config.yaml We must continue to insist that algorithmic functions can not print() as discussed in CONTRIBUTING.md. * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent a7d943d commit d1aabb4

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

Diff for: .pre-commit-config.yaml

+5-11
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,16 @@ repos:
66
- id: check-yaml
77
- id: end-of-file-fixer
88
types: [python]
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-
# )$
9+
- id: trailing-whitespace
10+
exclude: |
11+
(?x)^(
12+
data_structures/heap/binomial_heap.py
13+
)$
1614
- id: requirements-txt-fixer
1715
- repo: https://github.com/psf/black
1816
rev: stable
1917
hooks:
2018
- id: black
21-
exclude: |
22-
(?x)^(
23-
data_structures/binary_tree/binary_tree_traversals.py
24-
)$
2519
- repo: https://github.com/PyCQA/isort
2620
rev: 5.5.3
2721
hooks:

Diff for: DIRECTORY.md

+5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
* [Binary Search Tree](https://github.com/TheAlgorithms/Python/blob/master/data_structures/binary_tree/binary_search_tree.py)
108108
* [Binary Search Tree Recursive](https://github.com/TheAlgorithms/Python/blob/master/data_structures/binary_tree/binary_search_tree_recursive.py)
109109
* [Binary Tree Mirror](https://github.com/TheAlgorithms/Python/blob/master/data_structures/binary_tree/binary_tree_mirror.py)
110+
* [Binary Tree Traversals](https://github.com/TheAlgorithms/Python/blob/master/data_structures/binary_tree/binary_tree_traversals.py)
110111
* [Fenwick Tree](https://github.com/TheAlgorithms/Python/blob/master/data_structures/binary_tree/fenwick_tree.py)
111112
* [Lazy Segment Tree](https://github.com/TheAlgorithms/Python/blob/master/data_structures/binary_tree/lazy_segment_tree.py)
112113
* [Lowest Common Ancestor](https://github.com/TheAlgorithms/Python/blob/master/data_structures/binary_tree/lowest_common_ancestor.py)
@@ -675,12 +676,16 @@
675676
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_099/sol1.py)
676677
* Problem 112
677678
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_112/sol1.py)
679+
* Problem 113
680+
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_113/sol1.py)
678681
* Problem 119
679682
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_119/sol1.py)
680683
* Problem 120
681684
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_120/sol1.py)
682685
* Problem 125
683686
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_125/sol1.py)
687+
* Problem 173
688+
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_173/sol1.py)
684689
* Problem 191
685690
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_191/sol1.py)
686691
* Problem 234

0 commit comments

Comments
 (0)