Skip to content

Commit

Permalink
Merge pull request #673 from StanfordVL/black-contd
Browse files Browse the repository at this point in the history
Add black precommit hook & use pre-commit CI for linter
  • Loading branch information
cgokmen authored Mar 20, 2024
2 parents e7c4beb + a4b47ef commit a0981c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/black.yml

This file was deleted.

16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: /~https://github.com/psf/black
rev: 21.12b0
- repo: /~https://github.com/psf/black-pre-commit-mirror
rev: 24.3.0
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: /~https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
name: isort (python)
language_version: python3.10
# - repo: /~https://github.com/pycqa/isort
# rev: 5.8.0
# hooks:
# - id: isort
# name: isort (python)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 120
target-version = ['py27', 'py36', 'py37']
target-version = ['py310']
force-exclude = 'omnigibson/(data|external)'

[tool.isort]
Expand Down

0 comments on commit a0981c8

Please sign in to comment.