pyproject and isort updates (#253)

This commit is contained in:
Ethan Weber authored and GitHub committed 2022-08-07 18:57:53 -07:00
1 parent 113b6d3faf
commit a95f47cd08
2 files changed
+9 -8

No files matched your search

+3 -3
View File
@@ -18,7 +18,7 @@ jobs:
- name: Set up Python 3.8.12 - name: Set up Python 3.8.12
uses: actions/setup-python@v3 uses: actions/setup-python@v3
with: with:
python-version: "3.8.12" python-version: '3.8.12'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
@@ -31,9 +31,9 @@ jobs:
run: | run: |
python ./scripts/docs/add_nb_tags.py --check python ./scripts/docs/add_nb_tags.py --check
- name: Run isort - name: Run isort
run: isort . --profile black --check run: isort docs/ nerfactory/ notebooks/ scripts/ tests/ --profile black --check
- name: Run Black - name: Run Black
run: black nerfactory/ scripts/ notebooks/ docs/ --check run: black docs/ nerfactory/ notebooks/ scripts/ tests/ --check
- name: Python Pylint - name: Python Pylint
run: | run: |
pylint nerfactory tests scripts pylint nerfactory tests scripts
+6 -5
View File
@@ -29,12 +29,13 @@ good-names-rgxs = "^[_a-zA-Z][_a-z0-9]?$"
ignore-paths = ["scripts/colmap2nerf.py", "^nerfactory/cuda/.*$", "^tests/cuda/.*$"] ignore-paths = ["scripts/colmap2nerf.py", "^nerfactory/cuda/.*$", "^tests/cuda/.*$"]
disable = [ disable = [
"too-many-arguments",
"fixme",
"too-many-branches",
"too-many-locals",
"too-many-instance-attributes",
"duplicate-code", "duplicate-code",
"fixme",
"logging-fstring-interpolation",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-locals",
"unnecessary-ellipsis", "unnecessary-ellipsis",
] ]