-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (65 loc) · 2.33 KB
/
Copy pathpyproject.toml
File metadata and controls
71 lines (65 loc) · 2.33 KB
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
71
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "queryocc"
version = "1.0.0"
description = "QueryOcc: Query-based Self-Supervision for 3D Semantic Occupancy (official implementation)."
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
authors = [
{ name = "Adam Lilja" },
{ name = "Ji Lan" },
{ name = "Junsheng Fu" },
{ name = "Lars Hammarstrand" },
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
]
[project.urls]
"Project page" = "https://research.zenseact.com/publications/queryocc/"
"Paper" = "https://arxiv.org/abs/2511.17221"
"Repository" = "https://github.com/zenseact/queryocc"
[tool.ruff]
line-length = 120
respect-gitignore = false
exclude = [
".venv",
]
[tool.ruff.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.
]
ignore = [
"E501", # Line too long.
"F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
# NB: F821 (undefined-name) is deliberately NOT ignored: ignoring it (once done for
# jaxtyping annotations) hid real undefined names that only surfaced at runtime.
"PLR2004", # Magic value used in comparison.
"PLR0915", # Too many statements.
"PLR0913", # Too many arguments.
"PLR0917", # Too many positional arguments (same rationale as PLR0913).
"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.
"PLC0415", # Import outside top-level. Lazy imports of heavy/optional deps (plotly, transformers, ...) are intentional.
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["queryocc", "generate_pseudo_labels"]
split-on-trailing-comma = false
[tool.setuptools.packages.find]
include = ["queryocc*", "generate_pseudo_labels*"]