OmniGibson/.pre-commit-config.yaml

27 lines
916 B
YAML
Raw Permalink Normal View History

2021-07-16 15:11:32 +08:00
repos:
2024-03-21 06:32:46 +08:00
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.3.0
2021-07-16 15:11:32 +08:00
hooks:
- id: black
2024-03-21 06:32:46 +08:00
language_version: python3.10
2024-03-21 08:17:30 +08:00
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
2024-08-13 05:55:32 +08:00
name: isort (python)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: no-commit-to-branch
name: Check for numpy imports
2024-08-13 07:20:15 +08:00
entry: git grep -l "import numpy"
2024-08-13 05:55:32 +08:00
language: system
types: [python]
exclude: |
(?x)^(
\.pre-commit-config\.yaml|
omnigibson/utils/deprecated_utils\.py| # Keep Numpy import for deprecated Omniverse utils
omnigibson/utils/numpy_utils\.py| # Utilities specifically for numpy operations and dtype
tests/test_transform_utils\.py # This test file uses Scipy and Numpy
)$
stages: [commit]