forked from lamalab-org/openclatura
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (123 loc) · 3.29 KB
/
Copy pathpyproject.toml
File metadata and controls
137 lines (123 loc) · 3.29 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "openclatura"
version = "0.2.0"
description = "Deterministic SMILES-to-IUPAC name generator based on the IUPAC Blue Book"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [
{ name = "Adrian Mirza" },
{ name = "Kevin Maik Jablonka" },
{ name = "Rostislav Fedorov" },
]
keywords = ["chemistry", "iupac", "smiles", "nomenclature", "rdkit"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Chemistry",
]
dependencies = [
"rdkit>=2023.09",
]
[project.optional-dependencies]
opsin = [
"py2opsin>=1.2",
]
datasets = [
"datasets>=2.0",
"pandas>=2.0",
"huggingface-hub>=0.20",
"tqdm>=4.65",
]
web = [
"fastapi>=0.110",
"uvicorn[standard]>=0.27",
"pydantic>=2.5",
]
dev = [
"pytest>=7.4",
"pytest-cov>=4.1",
"pytest-xdist>=3.5",
"hypothesis>=6.92",
"ruff==0.15.15",
"pre-commit>=3.5",
"py2opsin>=1.2",
"fastapi>=0.110",
"httpx>=0.27",
"pydantic>=2.5",
]
[project.urls]
Homepage = "https://github.com/lamalab-org/openclatura"
Repository = "https://github.com/lamalab-org/openclatura"
Issues = "https://github.com/lamalab-org/openclatura/issues"
[project.scripts]
openclatura = "openclatura.cli:main"
[tool.hatch.build]
exclude = [
"/examples",
"/evaluations",
"/eval_failures",
]
[tool.hatch.build.targets.wheel]
packages = ["src/openclatura"]
[tool.ruff]
target-version = "py310"
line-length = 120
src = ["src"]
extend-exclude = ["**/__pycache__"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "W"]
ignore = [
"E501", # line length handled by formatter
"B008", # function call in default arg (FastAPI uses this)
# The following are tolerated in the existing codebase and slated for
# gradual cleanup; tightening them all at once would balloon PR1.
"E701", # multiple statements on one line (used in compact dispatchers)
"E741", # ambiguous variable name (chemistry domain uses l, O, etc.)
"B905", # zip() without strict=
"B007", # unused loop control variable
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = [
"tests",
"src/openclatura/tests",
"src/openclatura/tests_roundtrip",
]
addopts = [
"-ra",
"--strict-markers",
]
markers = [
"slow: marks tests as slow (deselect with -m 'not slow')",
"opsin: requires py2opsin and Java",
"dataset: requires the [datasets] extra and network access",
"fuzz: hypothesis-based fuzz tests",
"golden: strict golden-output regression test; run via the rdkit-compat job",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.coverage.run]
source = ["openclatura"]
omit = ["*/tests/*", "*/tests_roundtrip/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]