-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
187 lines (171 loc) · 3.87 KB
/
pyproject.toml
File metadata and controls
187 lines (171 loc) · 3.87 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[build-system]
requires = ["setuptools>=80", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mdpp"
dynamic = ["version"]
authors = [{ name = "Zhaoyang Li", email = "zhaoyangli@stanford.edu" }]
license = { file = "LICENSE" }
readme = "README.md"
description = "MD simulation pre- and post-processing"
requires-python = ">=3.12"
dependencies = [
"ParmEd",
"Pillow",
"biopython",
"biotite",
"deeptime",
"matplotlib",
"mdanalysis",
"mdtraj",
"mplplots @ git+https://github.com/FridrichMethod/mplplots.git",
"numba",
"nglview",
"numpy",
"pandas",
"panedr",
"pdb-tools",
"pdb2pqr",
"plotly",
"polars",
"prody",
"propka",
"py3dmol",
"rdkit",
"scikit-learn",
"scipy",
"seaborn",
"tqdm",
"uv",
]
[tool.setuptools.dynamic]
version = { attr = "mdpp.__version__" }
[project.optional-dependencies]
viz = ["gmxvg", "jupyter"]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"pytest-env",
"pytest-timeout",
"pytest-xdist",
"ruff",
]
docs = ["mkdocs-material", "mkdocstrings[python]"]
mypy = ["mypy"]
gpu = ["cupy-cuda12x", "torch", "jax[cuda12]"]
openmm = ["openmm[cuda12]"]
[tool.ruff]
target-version = "py312"
preview = true
src = ["src"]
line-length = 100
force-exclude = true
extend-exclude = [
".git",
".hg",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".svn",
".tox",
".venv",
"_build",
"buck-out",
"build",
"dist",
]
[tool.ruff.lint]
# Check https://beta.ruff.rs/docs/rules/ for full list of rules
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"NPY", # numpy
"PD", # pandas-vet
"PERF", # perflint
"PLE", # pylint-error
"RUF", # ruff
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
extend-select = [
"D", # pydocstyle
"W", # pycodestyle
"PLW", # pylint-warning
]
ignore = ["B905", "E203", "E501", "E741", "UP037"]
explicit-preview-rules = true
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
known-first-party = ["mdpp"]
[tool.ruff.lint.mccabe]
max-complexity = 12
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"*.ipynb" = ["F401", "RUF059"]
"tests/**" = ["D101", "D102", "D103", "D104"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.mypy]
python_version = "3.12"
mypy_path = "src"
pretty = true
no_implicit_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = false
namespace_packages = true
explicit_package_bases = true
disable_error_code = ["import-not-found", "import-untyped", "no-any-return"]
[[tool.mypy.overrides]]
module = [
"Bio.*",
"IPython.*",
"PIL.*",
"cupy.*",
"jax.*",
"matplotlib.*",
"mdtraj.*",
"numba.*",
"numpy.*",
"openmm.*",
"torch.*",
"tqdm.*",
"pandas.*",
"pdbfixer.*",
"pytest.*",
"panedr.*",
"rdkit.*",
"scipy.*",
"sklearn.*",
]
ignore_missing_imports = true
[tool.setuptools]
include-package-data = true
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
addopts = "-v -s --tb=short --strict-markers --color=yes -n auto"
testpaths = ["tests"]
pythonpath = ["src"]
env = ["TQDM_DISABLE=1"]
markers = [
"benchmark: performance benchmarks with timing output (deselect with '-m \"not benchmark\"')",
"slow: resource-intensive tests that take >10s (deselect with '-m \"not slow\"')",
"gpu: tests that exercise GPU backends cupy/torch/jax (deselect with '-m \"not gpu\"')",
]