Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
4fbae17
adds ruff
Mayankm96 Jan 4, 2026
3aeea1d
fixes import ordering
Mayankm96 Jan 4, 2026
42eb43b
fixes omni import
Mayankm96 Jan 4, 2026
59c7162
fixes order
Mayankm96 Jan 4, 2026
90b7de3
Merge branch 'main' into feature/ruff
Mayankm96 Jan 13, 2026
f33e04a
fixes spellchecks
Mayankm96 Jan 13, 2026
32253c0
section order
Mayankm96 Jan 13, 2026
a53767c
fixes another typo
Mayankm96 Jan 13, 2026
2c862e4
ff
Mayankm96 Jan 13, 2026
b334faf
make ruff skip file
Mayankm96 Jan 13, 2026
621cb6a
fixes ruff check
Mayankm96 Jan 13, 2026
1263e80
makes code simpler
Mayankm96 Jan 13, 2026
23f5804
fixes local imports
Mayankm96 Jan 13, 2026
faecba8
fixes temp file
Mayankm96 Jan 13, 2026
57796cf
fixes space check
Mayankm96 Jan 13, 2026
cdbaf76
lint fixes
Mayankm96 Jan 13, 2026
09f1e0b
ff
Mayankm96 Jan 13, 2026
8395c8e
other fixes from ruff
Mayankm96 Jan 13, 2026
063d04d
does other minor fixes
Mayankm96 Jan 13, 2026
e3cdc60
fix local import
Mayankm96 Jan 13, 2026
01a9d84
keeps isort import ordering
Mayankm96 Jan 13, 2026
cfda9ea
uses isort for now
Mayankm96 Jan 13, 2026
6c41331
enables ruff linter
Mayankm96 Jan 13, 2026
e71d5f6
enter fixes
Mayankm96 Jan 13, 2026
085289f
keeps black formatting
Mayankm96 Jan 13, 2026
c08193f
fixes doc building
Mayankm96 Jan 13, 2026
7f7482c
fixes docs for ruff
Mayankm96 Jan 13, 2026
ede37e1
undos unintended enters
Mayankm96 Jan 13, 2026
0c7d8cf
adds ruff license
Mayankm96 Jan 13, 2026
b7dfb08
adds ruff pre commit license
Mayankm96 Jan 13, 2026
fad4bd6
fixes bug
Mayankm96 Jan 13, 2026
4437253
disables formatting
Mayankm96 Jan 13, 2026
9b22204
uses official link
Mayankm96 Jan 13, 2026
be36396
Merge branch 'main' into feature/ruff
Mayankm96 Jan 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 16 additions & 23 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@
# SPDX-License-Identifier: BSD-3-Clause

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
# Run the linter
- id: ruff
args: ["--fix"]
# Run the formatter
# - id: ruff-format
- repo: https://github.com/python/black
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 7.1.0
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: flake8
additional_dependencies:
- flake8-simplify
- flake8-return
- Flake8-pyproject
- id: isort
name: isort (python)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-symlinks
Expand All @@ -33,20 +38,8 @@ repos:
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: debug-statements
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.1
hooks:
- id: pyupgrade
args: ["--py310-plus"]
# FIXME: This is a hack because Pytorch does not like: torch.Tensor | dict aliasing
exclude: "source/isaaclab/isaaclab/envs/common.py|source/isaaclab/isaaclab/ui/widgets/image_plot.py|source/isaaclab_tasks/isaaclab_tasks/direct/humanoid_amp/motions/motion_loader.py"
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
Expand All @@ -58,7 +51,7 @@ repos:
# hooks:
# - id: pyright
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
rev: v1.5.5
hooks:
- id: insert-license
files: \.(py|ya?ml)$
Expand All @@ -70,7 +63,7 @@ repos:
exclude: "source/isaaclab_mimic/|scripts/imitation_learning/isaaclab_mimic/"
# Apache 2.0 license for mimic files
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
rev: v1.5.5
hooks:
- id: insert-license
files: ^(source/isaaclab_mimic|scripts/imitation_learning/isaaclab_mimic)/.*\.py$
Expand Down
5 changes: 2 additions & 3 deletions .vscode/tools/settings.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@
"python.languageServer": "Pylance",
// We use "black" as a formatter:
"black-formatter.args": ["--line-length", "120", "--unstable"],
// Use flake8 for linting
"flake8.enabled": true,
"flake8.args": ["--config", "${workspaceFolder}/pyproject.toml"],
// Use ruff as a linter
"ruff.configuration": "${workspaceFolder}/pyproject.toml",
// Use docstring generator
"autoDocstring.docstringFormat": "google",
"autoDocstring.guessTypes": true,
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: BSD-3-Clause

# Here we set the parts that would
# be re-used between services to an
# be reused between services to an
# extension field
# https://docs.docker.com/compose/compose-file/compose-file-v3/#extension-fields
x-default-isaac-lab-volumes: &default-isaac-lab-volumes
Expand Down
Loading