-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (121 loc) · 3.55 KB
/
pyproject.toml
File metadata and controls
141 lines (121 loc) · 3.55 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
[project]
name = "autochem"
version = "0.2026.2"
description = "Cheminformatics libraries used by the AutoMech project"
readme = "README.md"
authors = [{name = "avcopan", email = "avcopan@gmail.com"}]
dependencies = []
requires-python = ">= 3.11"
[dependency-groups]
test = ["pytest", "pytest-xdist[psutil]"]
lint = ["lefthook", "mypy", "pylint", "ruff"]
docs = ["myst-parser", "sphinx", "sphinx-autodoc-typehints", "sphinx-book-theme"]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
# Hatchling configurations
[tool.hatch.build.targets.wheel]
packages = ["src/automol", "src/autochem", "src/autoreact", "src/molsym", "src/phydat"]
# Pixi configurations
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64"]
preview = ["pixi-build"]
# - Build
[tool.pixi.package]
name = "autochem"
[tool.pixi.package.build]
backend = { name = "pixi-build-python", version = "*" }
[tool.pixi.package.host-dependencies]
hatchling = "==1.26.3"
[tool.pixi.package.run-dependencies]
altair = ">=5.5.0"
ipython = ">=8.15"
more-itertools = ">=10.8.0"
networkx = ">=3.3"
numpy = ">=1.26"
pint = ">=0.25"
py3dmol = ">=2.5.3"
pyparsing = ">=3.2.5"
pyyaml = ">=6.0.3"
qcelemental = ">=0.29.0"
rdkit = ">=2025.9.1"
scipy = ">=1.12"
xarray = ">=2023.8"
# - Environments
[tool.pixi.pypi-dependencies]
autochem = { path = ".", editable = true }
[tool.pixi.dependencies]
altair = ">=5.5.0"
ipython = ">=8.15"
more-itertools = ">=10.8.0"
networkx = ">=3.3"
numpy = ">=1.26"
pint = ">=0.25"
py3dmol = ">=2.5.3"
pyparsing = ">=3.2.5"
pyyaml = ">=6.0.3"
qcelemental = ">=0.29.0"
rdkit = ">=2025.9.1"
scipy = ">=1.12"
xarray = ">=2023.8"
[tool.pixi.feature.build.dependencies]
rattler-build = ">=0.47.1"
bumpver = ">=2025.1131,<2026"
[tool.pixi.environments]
test = ["test"]
lint = ["lint"]
docs = ["docs"]
build = ["build"]
# - Tasks
[tool.pixi.feature.test.tasks]
test-automol = "pytest -n auto -v src/automol"
test-autochem = "pytest -v src/autochem"
test-autoreact = "pytest -v src/autoreact"
test = { depends-on = ["test-automol", "test-autochem", "test-autoreact"] }
[tool.pixi.feature.lint.tasks]
pre-commit = "lefthook run pre-commit --all-files"
pre-push = "lefthook run pre-push --all-files"
lint = { depends-on = ["pre-commit", "pre-push"] }
format = "ruff format"
[tool.pixi.feature.docs.tasks]
build-docs = { cmd = "make html", cwd = "docs" }
[tool.pixi.feature.build.tasks]
upload = "rattler-build upload anaconda -o Auto-Mech *.conda"
current-version = "bumpver show -n | awk -F': ' '/Current Version: / {print $2}'"
# Ruff configurations
[tool.ruff]
target-version = "py311"
exclude = ["automol", "autoreact", "molsym", "phydat", "tests", "docs"]
output-format = "concise"
fix = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # missing trailing comma (handled by format)
"RUF022", # `__all__` is not sorted
"PLR2004", # magic value in comparison
"S101", # assert statement (may want to remove this eventually)
"TID252", # relative import
# resolve rule conflicts:
"D203", # incorrect blank line before class (uses D211 instead)
"D213", # multi-line summary second line (uses D212 instead)
]
[tool.bumpver]
current_version = "0.2026.2"
version_pattern = "MAJOR.YYYY.PATCH"
commit_message = "Release {new_version}"
tag_message = "{new_version}"
tag_scope = "default"
pre_commit_hook = "scripts/update_lockfile.sh"
post_commit_hook = ""
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'version = "{version}"',
]
"src/automol/__init__.py" = [
'__version__ = "{version}"',
]