mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 13:28:59 +08:00
Compatibility for numpy 2.0 (#3265)
* compat for numpy 2.0 * lint changes
This commit is contained in:
1 parent
9b3cbc79bf
commit
d6df39b70d
93 files changed
+104
-74
No files matched your search
+5
-4
@@ -34,7 +34,7 @@ dependencies = [
|
||||
"msgpack_numpy>=0.4.8",
|
||||
"nerfacc==0.5.2",
|
||||
"open3d>=0.16.0",
|
||||
"opencv-python==4.8.0.76",
|
||||
"opencv-python==4.10.0.84",
|
||||
"Pillow>=10.3.0",
|
||||
"plotly>=5.7.0",
|
||||
"protobuf<=3.20.3,!=3.20.0",
|
||||
@@ -92,7 +92,7 @@ dev = [
|
||||
"pytest==7.1.2",
|
||||
"pytest-xdist==2.5.0",
|
||||
"typeguard==2.13.3",
|
||||
"ruff==0.1.13",
|
||||
"ruff>=0.4.8",
|
||||
"sshconf==0.2.5",
|
||||
"pycolmap>=0.3.0", # NOTE: pycolmap==0.3.0 is not available on newer python versions
|
||||
"diffusers==0.16.1",
|
||||
@@ -165,7 +165,7 @@ pythonPlatform = "Linux"
|
||||
[tool.ruff]
|
||||
line-length = 120
|
||||
respect-gitignore = false
|
||||
select = [
|
||||
lint.select = [
|
||||
"E", # pycodestyle errors.
|
||||
"F", # Pyflakes rules.
|
||||
"I", # isort formatting.
|
||||
@@ -173,8 +173,9 @@ select = [
|
||||
"PLE", # Pylint errors.
|
||||
"PLR", # Pylint refactor recommendations.
|
||||
"PLW", # Pylint warnings.
|
||||
"NPY201" # NumPY 2.0 migration https://numpy.org/devdocs/numpy_2_0_migration_guide.html#ruff-plugin
|
||||
]
|
||||
ignore = [
|
||||
lint.ignore = [
|
||||
"E501", # Line too long.
|
||||
"F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
|
||||
"F821", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
|
||||
|
||||
Reference in new issue
Block a user