-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (124 loc) · 3.55 KB
/
pyproject.toml
File metadata and controls
140 lines (124 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
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "graph-pes"
version = "1.0.0"
description = "Potential Energy Surfaces on Graphs"
readme = "README.md"
authors = [{ name = "John Gardner", email = "gardner.john97@gmail.com" }]
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
keywords = []
dependencies = [
"torch",
"pytorch-lightning",
"ase",
"numpy",
"rich",
"dacite",
"e3nn==0.4.4",
"scikit-learn",
"locache>=4.0.2",
"load-atoms>=0.3.9",
"wandb",
"data2objects>=0.1.0",
"vesin>=0.3.2",
]
requires-python = ">=3.9"
[project.optional-dependencies]
test = ["pytest", "pytest-cov"]
docs = [
"sphinx",
"furo",
"nbsphinx",
"sphinxext-opengraph",
"sphinx-copybutton",
"sphinx-design",
]
publish = ["build", "twine"]
[project.scripts]
graph-pes-train = "graph_pes.scripts.train:main"
graph-pes-test = "graph_pes.scripts.test:main"
graph-pes-resume = "graph_pes.scripts.resume:main"
graph-pes-id = "graph_pes.scripts.id:main"
[project.urls]
Homepage = "https://github.com/jla-gardner/graph-pes"
[tool.bumpver]
current_version = "1.0.0"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "{old_version} -> {new_version}"
commit = true
tag = true
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = ['current_version = "{version}"', 'version = "{version}"']
"src/graph_pes/__init__.py" = ["{version}"]
"docs/source/conf.py" = ['release = "{version}"']
"src/graph_pes/graph_property_model.py" = [
'self._GRAPH_PES_VERSION: Final\[str\] = "{version}"',
]
"CITATION.cff" = ['^version: {version}$']
[tool.ruff]
line-length = 80
indent-width = 4
target-version = "py38"
extend-include = ["*.ipynb", "*.pyi", "*.toml"]
[tool.ruff.lint]
select = ["E", "F", "UP", "B", "SIM", "I"]
ignore = ["SIM300", "E402", "E703", "F722", "UP037", "F821", "B018", "E741"]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.coverage.report]
exclude_also = [
"def __repr__",
"def _repr",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"\\.\\.\\.",
"except ImportError",
"if TYPE_CHECKING",
"raise NotImplementedError",
"if __name__ == '__main__':",
]
# allow for coverage to find relevant files in both src/ and */site-packages
# so that we can install the package both normally and in editable mode, and
# still get coverage for both cases using `pytest --cov`
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.run]
branch = true
source = ["graph_pes"]
omit = ["*/graph_pes/interfaces/*"]
[tool.pytest.ini_options]
# ignore all warnings coming from the pytorch_lightning package
filterwarnings = [
"ignore::DeprecationWarning:pytorch_lightning",
"ignore::DeprecationWarning:lightning_fabric",
"ignore::DeprecationWarning:lightning_utilities",
"ignore::DeprecationWarning:pkg_resources",
"ignore::DeprecationWarning:torchmetrics",
"ignore::UserWarning:pytorch_lightning",
"ignore:.*The TorchScript type system doesn't support instance-level annotations on empty non-base types.*",
]
norecursedirs = "tests/helpers"
[dependency-groups]
dev = [
"bumpver>=2024.1130",
"notebook>=7.3.2",
"pre-commit>=4.3.0",
"ruff",
"sphinx-autobuild",
]