-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (143 loc) · 3.4 KB
/
pyproject.toml
File metadata and controls
166 lines (143 loc) · 3.4 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pypopart"
dynamic = ["version"]
description = "Pure Python implementation of PopART haplotype network analysis"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "GPL-3.0-or-later" }
authors = [{ name = "Adam Taranto" }]
classifiers = [
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
dependencies = [
"biopython",
"cartopy",
"click",
"dash",
"dash-bootstrap-components",
"dash-cytoscape",
"folium",
"lxml",
"matplotlib",
"networkx",
"numba",
"numpy",
"pandas",
"plotly",
"scikit-learn",
"scipy",
]
# Optional dependencies for testing
[project.optional-dependencies]
dev = [
"hatch",
"ipykernel",
"isort",
"numpydoc-validation",
"pre-commit",
"pytest-cov",
"pytest",
"ruff",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]",
"mkdocs-jupyter",
"pymdown-extensions",
]
[project.urls]
documentation = "https://github.com/adamtaranto/pypopart"
homepage = "https://github.com/adamtaranto/pypopart"
repository = "https://github.com/adamtaranto/pypopart"
[project.scripts]
pypopart = "pypopart.cli:main"
pypopart-gui = "pypopart.gui:main"
[tool.hatch.build]
source = "src"
exclude = ["environment.yml", ".github", ".vscode"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.vcs]
tag-pattern = "v*" # Git tags starting with 'v' will be used for versioning
fallback-version = "0.0.0"
[tool.hatch.build.hooks.vcs]
version-file = "src/pypopart/_version.py"
[tool.pytest.ini_options]
addopts = "-v --cov=pypopart --cov-branch --cov-report=xml --cov-report=term"
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.ruff]
target-version = "py310"
line-length = 88
fix = true
[tool.ruff.lint]
select = [
"C", # mccabe rules
"F", # pyflakes rules
"E", # pycodestyle error rules
"W", # pycodestyle warning rules
"B", # flake8-bugbear rules
"I", # isort rules
"D", # pydocstyle rules
]
ignore = [
"C901", # max-complexity-10
"E501", # line-too-long
"I001", # isort-imports
"B905", # `zip()` without an explicit `strict=` parameter
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
[tool.isort]
profile = "black"
known_third_party = [
"biopython",
"numpy",
"scipy",
"pandas",
"networkx",
"plotly",
"dash",
"dash_bootstrap_components",
"numba",
"sklearn",
]
known_first_party = ["pypopart"]
default_section = "THIRDPARTY"
force_sort_within_sections = true
[tool.numpydoc_validation]
checks = [
"all", # report on all checks
"ES01", # but don't require an extended summary
"EX01", # or examples
"SA01", # or a see also section
"SS06", # and don't require the summary to fit on one line
]
exclude = [ # don't report on checks for these
'\.__init__$',
'\.__repr__$',
'\.__str__$',
]
override_SS05 = [ # allow docstrings to start with these words
'^Process ',
'^Assess ',
'^Access ',
]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.pydocstyle]
convention = "numpy"
# Ignore files in directories named "tests"
match-dir = "((?!tests).)*"