Skip to content

Commit c909da9

Browse files
cclausspre-commit-ci[bot]
andauthoredFeb 1, 2023
pre-commit: Upgrade psf/black for stable style 2023 (TheAlgorithms#8110)
* pre-commit: Upgrade psf/black for stable style 2023 Updating https://github.com/psf/black ... updating 22.12.0 -> 23.1.0 for their `2023 stable style`. * https://github.com/psf/black/blob/main/CHANGES.md#2310 > This is the first [psf/black] release of 2023, and following our stability policy, it comes with a number of improvements to our stable style… Also, add https://github.com/tox-dev/pyproject-fmt and https://github.com/abravalheri/validate-pyproject to pre-commit. I only modified `.pre-commit-config.yaml` and all other files were modified by pre-commit.ci and psf/black. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ed0a581 commit c909da9

File tree

97 files changed

+19
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+19
-154
lines changed
 

‎.pre-commit-config.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: auto-walrus
1616

1717
- repo: https://github.com/psf/black
18-
rev: 22.12.0
18+
rev: 23.1.0
1919
hooks:
2020
- id: black
2121

@@ -26,6 +26,16 @@ repos:
2626
args:
2727
- --profile=black
2828

29+
- repo: https://github.com/tox-dev/pyproject-fmt
30+
rev: "0.6.0"
31+
hooks:
32+
- id: pyproject-fmt
33+
34+
- repo: https://github.com/abravalheri/validate-pyproject
35+
rev: v0.12.1
36+
hooks:
37+
- id: validate-pyproject
38+
2939
- repo: https://github.com/asottile/pyupgrade
3040
rev: v3.3.1
3141
hooks:

‎arithmetic_analysis/newton_raphson_new.py

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def newton_raphson(
5959

6060
# Let's Execute
6161
if __name__ == "__main__":
62-
6362
# Find root of trigonometric function
6463
# Find value of pi
6564
print(f"The root of sin(x) = 0 is {newton_raphson('sin(x)', 2)}")

0 commit comments

Comments
 (0)