-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (98 loc) · 2.14 KB
/
pyproject.toml
File metadata and controls
119 lines (98 loc) · 2.14 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[project]
name = "DNANet"
version = "0.1.0"
description = " An open source repository offering tools for parsing DNA profiles and integrating machine learning models."
dependencies = [
"numpy>=2.2.4",
"scipy>=1.15.1",
"tqdm>=4.67.1",
"confidence>=0.15",
"torch>=2.5.1",
"torchmetrics>=1.7.1",
"construct>=2.10.70",
"datasets>=4.0.0",
"matplotlib>=3.10.1",
"mlflow>=2.21.3",
"tensorboard>=2.18.0",
"huggingface-hub[hf_xet]>=0.35.0",
"coolname>=2.2.0",
"openpyxl>=3.1.5",
"pydantic>=2.12.5",
"pydantic-numpy>=8.0.1",
"loguru>=0.7.3",
]
requires-python = ">=3.10,<=3.12"
readme = "README.md"
license = {text = "Apache-2.0"}
[dependency-groups]
testing = [
"pytest>=8.3.5",
"pytest-cov>=7.0.0",
"pytest-xdist>=3.8.0",
]
quality = [
"ruff>=0.15.5",
"mypy>=1.19.1",
]
[tool.pytest.ini_options]
pythonpath = "."
addopts = "--cov --cov-report=term"
source = ["."]
[tool.coverage.run]
branch = true
omit = [
"tests/*",
"*__init__.py"
]
[tool.coverage.report]
skip_empty = true
show_missing = true
exclude_also = [
"def __repr__",
"if self\\.debug",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
##### LINT & FORMAT #####
[tool.ruff]
extend-exclude = [
".venv"
]
line-length = 101
[tool.ruff.format]
quote-style = "single"
skip-magic-trailing-comma = false
[tool.ruff.lint]
# Rules: 'https://docs.astral.sh/ruff/rules'
select = [
"I", # Imports
"B", # Bugbear,
"D", # Docstyles
"NPY", # Numpy
"TC", # Type Checking
]
exclude = ["tests/*"]
ignore = ["D100"]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "D104"]
"**/{tests,docs}/*" = ["E402", "D"]
[tool.ruff.lint.isort]
length-sort = true
lines-after-imports = 2
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
disable_error_code = ["import-untyped"]
[tool.pdm]
distribution = false
[tool.pdm.scripts]
test = "pdm run pytest"
lint = "pdm run ruff check ."
format = "pdm run ruff format --check ."
typing = "pdm run mypy"