Skip to content

Commit

Permalink
pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
YilingQiao committed Feb 2, 2025
1 parent b7536d7 commit da61654
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
pip install black
- name: Black Format Check
run: black --check .
run: black --line-length 120 --check .

- name: Run Tests
run: |
Expand Down
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
repos:
- repo: https://github.com/psf/black
rev: 23.9.1 # Use the latest version or specify the version you prefer
rev: 25.1.0 # Use the latest version or specify the version you prefer
hooks:
- id: black
args: ["--config=pyproject.toml"]
args:
- --line-length=120
- genesis
3 changes: 1 addition & 2 deletions genesis/ext/pyrender/shader_program.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""OpenGL shader program wrapper.
"""
"""OpenGL shader program wrapper."""

import numpy as np
import os
Expand Down
3 changes: 1 addition & 2 deletions genesis/ext/pyrender/trackball.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Trackball class for 3D manipulation of viewpoints.
"""
"""Trackball class for 3D manipulation of viewpoints."""

import numpy as np

Expand Down
3 changes: 1 addition & 2 deletions genesis/ext/pyrender/viewer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""A pyglet-based interactive 3D scene viewer.
"""
"""A pyglet-based interactive 3D scene viewer."""

import copy
import os
Expand Down
3 changes: 1 addition & 2 deletions genesis/ext/trimesh/viewer/trackball.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

"""Trackball class for 3D manipulation of viewpoints.
"""
"""Trackball class for 3D manipulation of viewpoints."""
import numpy as np

from .. import transformations
Expand Down
3 changes: 1 addition & 2 deletions genesis/ext/urdfpy/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Utilities for URDF parsing.
"""
"""Utilities for URDF parsing."""

import os
import genesis as gs
Expand Down
2 changes: 1 addition & 1 deletion genesis/utils/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def parse_visual_and_col_mesh(morph, surface):

if not morph.collision:
return vms, ms

if morph.merge_submeshes_for_collision:
tmeshes = []
for vm in vms:
Expand Down

0 comments on commit da61654

Please sign in to comment.