Unverified Commit 97d684c3 authored by Mayank Mittal's avatar Mayank Mittal Committed by GitHub

Updates pre-commit to latest hooks (#212)

# Description

Updates pre-commit to latest hooks to deal with flake8 upgrades.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./orbit.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
parent 81fa26d1
repos:
- repo: https://github.com/python/black
rev: 23.3.0
rev: 23.10.1
hooks:
- id: black
args: ["--line-length", "120", "--preview"]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-simplify, flake8-return]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-symlinks
......@@ -31,12 +31,12 @@ repos:
name: isort (python)
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.7.0
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies:
......
......@@ -64,7 +64,7 @@
"python.linting.flake8Args": [
"--max-line-length=120"
],
// Use docstring gnerator
// Use docstring generator
"autoDocstring.docstringFormat": "google",
"autoDocstring.guessTypes": true,
// Python environment path
......
......@@ -751,7 +751,7 @@ Changed
Added
^^^^^
* Added a helper class :class:`omni.isaac.orbit.asset_loader.UrdfLoader` that coverts a URDF file to instanceable USD
* Added a helper class :class:`omni.isaac.orbit.asset_loader.UrdfLoader` that converts a URDF file to instanceable USD
file based on the input configuration object.
......
......@@ -176,7 +176,7 @@ def create_pointcloud_from_rgbd(
The ``rgb`` attribute is used to resolve the corresponding point's color:
- If a ``np.array``/``wp.arrray``/``torch.tensor`` of shape (H, W, 3), then the corresponding channels encode RGB values.
- If a ``np.array``/``wp.array``/``torch.tensor`` of shape (H, W, 3), then the corresponding channels encode RGB values.
- If a tuple, then the point cloud has a single color specified by the values (r, g, b).
- If :obj:`None`, then default color is white, i.e. (0, 0, 0).
......
......@@ -252,7 +252,7 @@ def update_dict(orig_dict: dict, new_dict: collections.abc.Mapping) -> dict:
def print_dict(val, nesting: int = -4, start: bool = True):
"""Outputs a nested dictionary."""
if type(val) == dict:
if isinstance(val, dict):
if not start:
print("")
nesting += 4
......
......@@ -15,7 +15,7 @@ def check_group(f, num: int):
"""Print the data from different keys in stored dictionary."""
# print name of the group first
for subs in f:
if type(subs) == str:
if isinstance(subs, str):
print("\t" * num, subs, ":", type(f[subs]))
check_group(f[subs], num + 1)
# print attributes of the group
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment