-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (86 loc) · 2.56 KB
/
pyproject.toml
File metadata and controls
102 lines (86 loc) · 2.56 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
95
96
97
98
99
100
101
102
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"
[project]
name = "dnadiffusion"
authors = [{ name = "dnadiffusion", email = "dnadiffusion@pinellolab.org" }]
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",
"safetensors>=0.5.3",
"seaborn>=0.13.2",
"torch>=2.6.0",
"torchvision>=0.21.0",
"tqdm>=4.67.1",
"transformers>=4.52.4",
"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"]
lint.select = ["E", "F", "I"]
lint.ignore = ["E721", "E731", "E741", "E742", "E743"]
exclude = ["src/refactor"]
[tool.ruff.lint.isort]
known-first-party = ["dnadiffusion"]
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.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"
testpaths = ["tests"]
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",
"mkdocs-material>=9.6.12",
"mkdocstrings[python]>=0.29.1",
"pytest-asyncio>=0.26.0",
]
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true