-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathpyproject.toml
90 lines (74 loc) · 2.2 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"
[project]
name = "dnadiffusion"
authors = [{ name = "dnadiffusion", email = "[email protected]" }]
description = "Library for generation of synthetic regulatory elements using diffusion models"
readme = "README.md"
dynamic = ["version"]
classifiers = ["Programming Language :: Python :: 3 :: Only"]
requires-python = ">=3.12"
dependencies = [
"einops>=0.8.1",
"hydra-core>=1.3.2",
"jupyterlab>=4.4.0",
"matplotlib>=3.10.1",
"memory-efficient-attention-pytorch>=0.1.6",
"pandas>=2.2.3",
"seaborn>=0.13.2",
"torch>=2.6.0",
"torchvision>=0.21.0",
"tqdm>=4.67.1",
"wandb>=0.19.9",
]
[project.scripts]
dnadiffusion = "dnadiffusion.cli:main"
[project.urls]
Documentation = "https://pinellolab.github.io/DNA-Diffusion"
Source = "https://github.com/pinellolab/DNA-Diffusion"
[tool.ruff]
target-version = "py312"
line-length = 120
extend-include = ["*.ipynb"]
select = ["E", "F", "I"]
ignore = ["E721", "E731", "E741", "E742", "E743"]
exclude = ["src/refactor"]
[tool.ruff.isort]
known-first-party = ["dnadiffusion"]
[tool.ruff.format]
quote-style = "double"
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.per-file-ignores]
# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101", "TID252"]
[tool.pytest.ini_options]
addopts = "--cov=src/dnadiffusion/ --cov-report=term-missing --ignore=src/refactor"
asyncio_mode = "strict"
[tool.coverage.run]
source_pkgs = ["dnadiffusion", "tests"]
branch = true
parallel = true
omit = [
"src/dnadiffusion/__about__.py",
"src/dnadiffusion/__main__.py",
"tests/conftest.py",
]
[tool.coverage.paths]
dnadiffusion = ["src/dnadiffusion", "*/dnadiffusion/src/dnadiffusion"]
tests = ["tests", "*/dnadiffusion/tests"]
[tool.coverage.report]
exclude_lines = ["no cov", "if **name** == .__main__.:", "if TYPE_CHECKING:"]
[tool.hatch.version]
path = "src/dnadiffusion/__about__.py"
[tool.hatch.build.targets.wheel]
packages = ['src/dnadiffusion']
[tool.hatch.metadata]
allow-direct-references = true
[dependency-groups]
dev = [
"pytest-cov>=6.1.1",
"pytest>=8.3.5",
"ruff>=0.11.5",
]