-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (81 loc) · 1.9 KB
/
pyproject.toml
File metadata and controls
94 lines (81 loc) · 1.9 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[project]
authors = [{name = "Yogesh Thambidurai", email = "yogesh@gyoge.com"}]
name = "sub_volume"
requires-python = ">= 3.11"
version = "0.1.0"
dependencies = [
"funlib-geometry>=0.3.0,<0.4",
"glfw>=2.9.0,<3",
"numpy",
"pygfx",
]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pixi.pypi-dependencies]
sub_volume = { path = ".", editable = true }
[tool.pixi.tasks]
main = "python scripts/main.py"
[tool.pixi.dependencies]
numpy = ">=2.3.0,<3"
zarr = ">=3.0.8,<4"
pygfx = ">=0.12.0,<0.13"
tensorstore = ">=0.1.65,<0.2"
[tool.pixi.feature.test.dependencies]
pytest = ">=8.4.1,<9.0"
hypothesis = ">=6.135.16,<7"
[tool.pixi.feature.dev.dependencies]
pixi-pycharm = ">=0.0.8,<0.0.9"
ruff = ">=0.11.10, <0.12"
[tool.pixi.feature.test.tasks]
test = "pytest ."
[tool.pixi.feature.dev.tasks]
# F401: unused imports, I: isort
# both of these should count as formatting for us
format = "ruff check --select F401,I --fix . && ruff format ."
check = "ruff check ."
[tool.pixi.environments]
dev = ["dev", "test"]
[tool.ruff.lint]
preview = true
pydocstyle.convention = "google"
select = [
# ruff defaults
"E4", "E7", "E9", "F",
# imports
"F401", "I",
# simplify statements
"SIM",
# pytest
"PT",
# comprehensions
"C4",
# builtins
"A",
# unused arguments
"ARG",
# numpy
"NPY",
# naming conventions
"N",
# extraneous docstring return/yield/raise
# also consider adding DOC as a whole?
"DOC202", "DOC403", "DOC502",
# general docstring stuff
"D",
# no blank lines before class docstrings
"D211",
# multiline docstrings start on second line
"D213",
# python upgrades
"UP",
]
ignore = [
# conflicts with D211 and D213
"D203", "D212",
]
[tool.ruff.lint.per-file-ignores]
"**/{tests,scripts}/*" = ["D", "DOC"]