-
Notifications
You must be signed in to change notification settings - Fork 93
/
pyproject.toml
103 lines (91 loc) · 2.54 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools", "versioningit"]
build-backend = "setuptools.build_meta"
[project]
name="openff-toolkit"
description = "openff-toolkit"
license = {text = "MIT"}
urls = {Homepage = "https://github.com/openforcefield/openff-toolkit"}
authors = [{name = "Open Force Field Consortium", email = "[email protected]"}]
keywords=["molecular mechanics", "force field", "parameterization",]
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: MIT",
'Programming Language :: Python :: 3',
]
readme = "README.md"
dynamic = ["version"]
[tool.setuptools.packages]
find = {}
[tool.versioningit]
[tool.ruff]
line-length = 119
exclude = ["examples/deprecated/", "utilities/deprecated"]
[tool.ruff.lint]
ignore = ["E721","D105","D107","D200","D203","D212", "RUF012"]
select = ["I", "E", "F", "W", "NPY", "UP", "RUF"]
[tool.ruff.lint.per-file-ignores]
"openff/toolkit/**/__init__.py" = ["F401"]
"openff/toolkit/_tests/**/*.py" = ["E501"]
"openff/toolkit/typing/engines/smirnoff.parameters.py" = ["RUF012"]
"openff/toolkit/_tests/_stale_tests.py" = ["F821"]
"docs/users/molecule_cookbook.ipynb" = ["F821", "E402"]
"examples/visualization/visualization.ipynb" = ["F821"]
[tool.ruff.lint.isort]
# can't find a clean way to get Rust's globset to handle this via regex ...
# https://docs.astral.sh/ruff/settings/#lint_isort_known-third-party
known-third-party = ["openff.interchange", "openff.utilities", "openff.units"]
known-first-party = ["openff.toolkit"]
[tool.pytest.ini_options]
doctest_optionflags = [
"ELLIPSIS",
"DONT_ACCEPT_TRUE_FOR_1",
"NORMALIZE_WHITESPACE",
]
testpaths = [
"openff/toolkit/_tests/",
]
[tool.coverage.run]
omit = [
"*/*/_tests/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"@overload",
]
[tool.mypy]
plugins = "numpy.typing.mypy_plugin"
warn_unused_configs = true
warn_unused_ignores = true
warn_incomplete_stub = true
show_error_codes = true
exclude = "openff/toolkit/_tests/|openff/toolkit/data/"
[[tool.mypy.overrides]]
module = [
"openff.units",
"openff.units.*",
"openff.nagl.*",
"openff.nagl_models.*",
"mdtraj",
"openmm",
"openmm.app",
"openmm.unit",
"rdkit",
"rdkit.Chem",
"rdkit.Chem.Draw",
"rdkit.DataStructs.cDataStructs",
"openeye",
"openeye.oechem",
"parmed",
"msgpack",
"qcelemental",
"nglview",
"nglview.base_adaptor",
"cached_property",
"constraint",
]
ignore_missing_imports = true