4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00

pyproject and isort updates (#253)

This commit is contained in:
Ethan Weber 2022-08-07 18:57:53 -07:00 committed by GitHub
parent 113b6d3faf
commit a95f47cd08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

@ -18,7 +18,7 @@ jobs:
- name: Set up Python 3.8.12
uses: actions/setup-python@v3
with:
python-version: "3.8.12"
python-version: '3.8.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
@ -31,9 +31,9 @@ jobs:
run: |
python ./scripts/docs/add_nb_tags.py --check
- name: Run isort
run: isort . --profile black --check
run: isort docs/ nerfactory/ notebooks/ scripts/ tests/ --profile black --check
- name: Run Black
run: black nerfactory/ scripts/ notebooks/ docs/ --check
run: black docs/ nerfactory/ notebooks/ scripts/ tests/ --check
- name: Python Pylint
run: |
pylint nerfactory tests scripts

View File

@ -29,12 +29,13 @@ good-names-rgxs = "^[_a-zA-Z][_a-z0-9]?$"
ignore-paths = ["scripts/colmap2nerf.py", "^nerfactory/cuda/.*$", "^tests/cuda/.*$"]
disable = [
"too-many-arguments",
"fixme",
"too-many-branches",
"too-many-locals",
"too-many-instance-attributes",
"duplicate-code",
"fixme",
"logging-fstring-interpolation",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-locals",
"unnecessary-ellipsis",
]