Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (73 loc) · 1.88 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (73 loc) · 1.88 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=84",
"setuptools-scm>=10",
]
[project]
name = "openff-units"
description = "A common units module for the OpenFF software stack"
readme = "README.md"
license = "MIT"
authors = [ { name = "Open Force Field Initiative", email = "info@openforcefield.org" } ]
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
dynamic = [ "version" ]
dependencies = [
"numpy",
"openff-utilities>=0.1.3",
"pint>=0.25,<0.27",
]
optional-dependencies.pydantic = [ "pydantic==2.13.*" ]
optional-dependencies.test = [
# "openmm", add back when wheels are more reliable
"pytest",
"pytest-cov",
"pytest-randomly",
"pytest-xdist",
"uncertainties",
]
optional-dependencies.typing = [
"mypy",
"types-setuptools",
]
[tool.setuptools]
packages.find.include = [ "openff.units*" ]
[tool.setuptools_scm]
fallback_version = "0.0.0"
[tool.ruff]
target-version = "py312"
line-length = 99
namespace-packages = [ "openff/units/" ]
lint.select = [ "E", "F", "I", "NPY", "RUF", "UP", "W" ]
lint.ignore = [ "D105", "D107", "D200", "D203", "D212", "E721" ]
lint.per-file-ignores."openff/units/**/__init__.py" = [ "F401" ]
lint.isort.known-third-party = [ "openff.utilities" ]
[tool.mypy]
mypy_path = "stubs/"
exclude = [
"openff/units/_tests/",
"openff/units/data",
]
warn_unused_ignores = true
warn_incomplete_stub = true
warn_unused_configs = true
show_error_codes = true
[tool.pytest]
ini_options.addopts = "--cov=openff/units --cov-report=xml --cov-append"
[tool.coverage]
run.omit = [
"*/*/_tests/*",
]
report.exclude_lines = [
"@overload",
"if TYPE_CHECKING:",
"pragma: no cover",
"raise NotImplementedError",
]