-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
70 lines (64 loc) · 2.17 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "fillerbuster"
version = "0.0.0"
description = "fillerbuster package"
requires-python = ">=3.7.3"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
]
dependencies = [
"diffusers==0.30.0",
"einops==0.8.0",
"mediapy",
"nerfstudio==1.1.5",
"numpy==1.26.3",
"transformers==4.48.0",
"viser",
]
[tool.setuptools.packages.find]
include = ["fillerbuster*"]
[project.scripts]
tnd-train = "fillerbuster.scripts.train:entrypoint"
[tool.ruff]
line-length = 120
respect-gitignore = false
exclude = [
"fillerbuster/external"
]
lint.select = [
"E", # pycodestyle errors.
"F", # Pyflakes rules.
"I", # isort formatting.
"PLC", # Pylint convention warnings.
"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
]
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.
"PLR2004", # Magic value used in comparison.
"PLR0915", # Too many statements.
"PLR0913", # Too many arguments.
"PLC0414", # Import alias does not rename variable. (this is used for exporting names)
"PLC1901", # Use falsey strings.
"PLR5501", # Use `elif` instead of `else if`.
"PLR0911", # Too many return statements.
"PLR0912", # Too many branches.
"PLW0603", # Globa statement updates are discouraged.
"PLW2901", # For loop variable overwritten.
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["nerfstudio"]
split-on-trailing-comma = false
[project.entry-points.'nerfstudio.method_configs']
fillerbuster-scannetpp = "fillerbuster.configs.nerfstudio_methods:fillerbuster_scannetpp_config"
fillerbuster-sstk3d = "fillerbuster.configs.nerfstudio_methods:fillerbuster_sstk3d_config"
fillerbuster = "fillerbuster.configs.nerfstudio_methods:fillerbuster_config"