mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +08:00
Merge pull request #60 from ethanweber/tancik/cleanup_package
Use pyproject.toml
This commit is contained in:
6 files changed
+41
-38
No files matched your search
@@ -23,22 +23,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r environment/requirements.txt
|
pip install -r environment/requirements.txt
|
||||||
python setup.py develop
|
pip install -e .
|
||||||
- name: Run Black
|
- name: Run Black
|
||||||
uses: psf/black@stable
|
uses: psf/black@stable
|
||||||
with:
|
with:
|
||||||
options: "--check --verbose --line-length=120"
|
options: "--check"
|
||||||
- name: Python Pylint
|
- name: Python Pylint
|
||||||
run: |
|
run: |
|
||||||
pylint mattport tests \
|
pylint mattport tests
|
||||||
--max-line-length=120 \
|
|
||||||
--generated-members=numpy.*,torch.*,cv2.*,cv.* \
|
|
||||||
--good-names=e,c,i,j,x,y,lr,K,fx,fy,cx,cy,H,W,ts,t,u,k,v \
|
|
||||||
--disable=too-many-arguments \
|
|
||||||
--disable=too-many-locals \
|
|
||||||
--disable=fixme \
|
|
||||||
--disable=too-many-instance-attributes \
|
|
||||||
--disable=duplicate-code
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pytest tests --typeguard-packages=mattport --torchtyping-patch-typeguard --disable-warnings
|
pytest
|
||||||
Vendored
-14
@@ -19,20 +19,6 @@
|
|||||||
"python.sortImports.args": [
|
"python.sortImports.args": [
|
||||||
"--src=${workspaceFolder}"
|
"--src=${workspaceFolder}"
|
||||||
],
|
],
|
||||||
"python.testing.pytestArgs": [
|
|
||||||
"--ignore=tests/nerf/test_ray_generator.py",
|
|
||||||
"--typeguard-packages=mattport",
|
|
||||||
"--torchtyping-patch-typeguard"
|
|
||||||
],
|
|
||||||
"python.testing.unittestEnabled": false,
|
"python.testing.unittestEnabled": false,
|
||||||
"python.testing.pytestEnabled": true,
|
"python.testing.pytestEnabled": true,
|
||||||
"python.linting.pylintArgs": [
|
|
||||||
"--generated-members=numpy.*,torch.*,cv2.*,cv.*",
|
|
||||||
"--max-line-length=120",
|
|
||||||
"--good-names=e,c,i,j,x,y,lr,K,fx,fy,cx,cy,H,W,ts,t,u,k,v",
|
|
||||||
"--disable=too-many-arguments",
|
|
||||||
"--disable=fixme",
|
|
||||||
"--disable=too-many-locals",
|
|
||||||
"--disable=too-many-instance-attributes"
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,7 @@ conda activate mattport
|
|||||||
pip install -r environment/requirements.txt
|
pip install -r environment/requirements.txt
|
||||||
|
|
||||||
# Install mattport as a library
|
# Install mattport as a library
|
||||||
python setup.py develop
|
pip install -e .
|
||||||
|
|
||||||
# Running the test cases
|
# Running the test cases
|
||||||
pytest tests
|
pytest tests
|
||||||
|
|||||||
@@ -1,2 +1,29 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=42"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
# black
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 120
|
line-length = 120
|
||||||
|
|
||||||
|
# pylint
|
||||||
|
[tool.pylint.messages_control]
|
||||||
|
|
||||||
|
max-line-length = 120
|
||||||
|
generated-members = ["numpy.*", "torch.*", "cv2.*", "cv.*"]
|
||||||
|
good-names-rgxs= "^[_a-zA-Z][_a-z0-9]?$"
|
||||||
|
|
||||||
|
disable = [
|
||||||
|
"too-many-arguments",
|
||||||
|
"fixme",
|
||||||
|
"too-many-locals",
|
||||||
|
"too-many-instance-attributes",
|
||||||
|
"duplicate-code",
|
||||||
|
]
|
||||||
|
|
||||||
|
#pytest
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
addopts = "--typeguard-packages=mattport --torchtyping-patch-typeguard --disable-warnings"
|
||||||
|
testpaths = [
|
||||||
|
"tests",
|
||||||
|
]
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[metadata]
|
||||||
|
name = mattport
|
||||||
|
version = 0.0.1
|
||||||
|
description = Volumetric rendering package
|
||||||
|
long_description = file: README.md
|
||||||
|
|
||||||
|
[options]
|
||||||
|
packages = find:
|
||||||
|
python_requires = >=3.8,
|
||||||
Reference in new issue
Block a user