-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (61 loc) · 1.97 KB
/
pyproject.toml
File metadata and controls
64 lines (61 loc) · 1.97 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
[build-system]
build-backend = "hatchling.build"
requires = [ "hatch-vcs", "hatchling" ]
[project]
name = "scanpy-tutorials"
authors = [
{ name = "Alex Wolf" },
{ name = "Fidel Ramirez" },
{ name = "Sergei Rybakov" },
]
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = [ "version" ]
dependencies = [
"myst-nb",
"scanpydoc[theme]>=0.13.4",
"sphinx",
"sphinx-design",
]
[tool.hatch]
build.targets.wheel.bypass-selection = true # This is not a package
envs.default.python = "3.13"
envs.default.installer = "uv"
envs.default.scripts.build = "sphinx-build -M html . ./_build {args}"
envs.default.scripts.clean = "git clean -fdX _build"
envs.notebook.scripts.install-kernel = "python -m ipykernel install --user --name=scanpy-tutorials --display-name=\"Scanpy Tutorials\""
envs.notebook.extra-dependencies = [
"dask[distributed]",
"ipykernel",
"ipywidgets",
"scanpy[skmisc,leiden,dask]",
"pooch",
]
version.source = "vcs"
[tool.ruff]
line-length = 120
extend-exclude = [ "scanpy_workshop/" ]
lint.select = [ "ALL" ]
lint.ignore = [
"C408", # dict() calls are nice
"COM812", # trailing commas handled by black
"D", # no module docstrings for notebooks
"E741", # variable names aren’t really ambiguous
"F821", # `%%R -o` means that ruff doesn’t understand which variables exist
"FIX002", # “TODO” comments
"PLR0913", # having many (kw)args is fine
"PLR2004", # Magic numbers are sadly common
"Q", # handled by formatter
"S", # no need to worry about security here
"T201", # Allow print in notebooks
]
lint.allowed-confusables = [ "×", "’", "l" ]
lint.isort.known-first-party = [ "anndata2ri" ]
lint.isort.lines-after-imports = 2
lint.isort.required-imports = [ "from __future__ import annotations" ]