Skip to content

Commit

Permalink
restore hook; fix workflow instead
Browse files Browse the repository at this point in the history
  • Loading branch information
liruilong940607 committed Feb 23, 2023
1 parent 1d2c2ed commit 882d992
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
python-version: "3.8.12"
- name: Install dependencies
run: |
pip install isort black
pip install isort==5.10.1 black[jupyter]==22.3.0
- name: Run isort
run: isort docs/ nerfacc/ scripts/ examples/ tests/ --profile black --skip examples/pycolmap --line-length 80 --check
- name: Run Black
Expand Down
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ repos:
- id: check-yaml
- id: check-merge-conflict
- id: requirements-txt-fixer
# - repo: https://github.com/psf/black
# rev: 22.10.0
# hooks:
# - id: black
# language_version: python3.8.12
# args: # arguments to configure black
# - --line-length=80
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
language_version: python3.8.12
args: # arguments to configure black
- --line-length=80

# - repo: https://github.com/pycqa/isort
# rev: 5.10.1
# hooks:
# - id: isort
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort

0 comments on commit 882d992

Please sign in to comment.