Skip to content

Commit

Permalink
Fix linters failure. (#581)
Browse files Browse the repository at this point in the history
* Fix linters failure in gitlab CI.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* pre-commit: black → ruff

* [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>
Co-authored-by: Guilhem Saurel <[email protected]>
  • Loading branch information
3 people committed May 15, 2024
1 parent 03a641d commit 709e606
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ repos:
args:
- --fix
- --exit-non-zero-on-fix
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.4
hooks:
Expand All @@ -18,7 +19,3 @@ repos:
rev: v4.6.0
hooks:
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
6 changes: 4 additions & 2 deletions doc/gjk.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ def printOrder(order, indent="", start=True, file=sys.stdout, curTests=[]):
region[0]
B = region[1]
print(
indent + "originToSegment "
indent
+ "originToSegment "
"(current, a, {b}, A, {B}, {B}-A, -{b}a_aa, next, ray);".format(
**{"b": B.lower(), "B": B}
),
Expand All @@ -524,7 +525,8 @@ def printOrder(order, indent="", start=True, file=sys.stdout, curTests=[]):
else:
test = "-" + test
print(
indent + "originToTriangle "
indent
+ "originToTriangle "
"(current, a, {b}, {c}, ({B}-A).cross({C}-A), {t}, next, ray);".format(
**{"b": B.lower(), "c": C.lower(), "B": B, "C": C, "t": test}
),
Expand Down

0 comments on commit 709e606

Please sign in to comment.