mirror of
https://github.com/OpenFreeEnergy/openfe.git
synced 2026-06-04 14:14:22 +08:00
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/tox-dev/pyproject-fmt: v2.11.1 → v2.21.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.11.1...v2.21.0) - [github.com/astral-sh/ruff-pre-commit: v0.14.10 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.10...v0.15.9) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
82 lines
2.2 KiB
TOML
82 lines
2.2 KiB
TOML
[build-system]
|
|
build-backend = "setuptools.build_meta"
|
|
requires = [
|
|
"setuptools>=77.0.3",
|
|
"setuptools-scm>=8",
|
|
]
|
|
|
|
[project]
|
|
name = "openfe"
|
|
description = ""
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
license-files = [ "LICENSE" ]
|
|
authors = [ { name = "The OpenFE developers", email = "openfreeenergy@omsf.io" } ]
|
|
requires-python = ">=3.11"
|
|
classifiers = [
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Intended Audience :: Science/Research",
|
|
"Operating System :: POSIX",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Programming Language :: Python :: 3.14",
|
|
"Topic :: Scientific/Engineering :: Bio-Informatics",
|
|
"Topic :: Scientific/Engineering :: Chemistry",
|
|
]
|
|
dynamic = [ "version" ]
|
|
urls = { Homepage = "https://github.com/OpenFreeEnergy/openfe" }
|
|
scripts.openfe = "openfecli.cli:main"
|
|
|
|
[tool.setuptools]
|
|
zip-safe = false
|
|
include-package-data = true
|
|
package-data.openfe = [ '"./src/openfe/tests/data/lomap_basic/toluene.mol2"' ]
|
|
packages.find.where = [ "src" ]
|
|
packages.find.namespaces = false
|
|
|
|
[tool.setuptools_scm]
|
|
fallback_version = "0.0.0"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
format.docstring-code-format = true
|
|
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
|
lint.select = [
|
|
"E", # pycodestyle errors
|
|
"F", # Pyflakes
|
|
"I", # isort
|
|
"W", # pycodestyle warnings
|
|
# "C901" # mccabe complexity TODO: add this back in
|
|
# "UP", # TODO: add this in
|
|
]
|
|
lint.ignore = [
|
|
"E402", # module-level import not at top (conflicts w/ isort)
|
|
"E501", # line length too long, resolve this for comments
|
|
"F401", # unused imports (TODO: we should fix these)
|
|
"F811",
|
|
"F841",
|
|
"UP03", # pyupgrade linting (TODO: we should fix these)
|
|
]
|
|
lint.isort.known-first-party = [ "openfe" ]
|
|
|
|
[tool.mypy]
|
|
files = "src/openfe" # TODO: add src/openfecli
|
|
ignore_missing_imports = true
|
|
warn_unused_ignores = true
|
|
|
|
[tool.coverage]
|
|
run.omit = [
|
|
"src/*/tests/dev/*py",
|
|
"src/*/tests/protocols/test_openmm_rfe_slow.py",
|
|
"src/openfe/due.py",
|
|
]
|
|
report.exclude_lines = [
|
|
"-no-cov",
|
|
'if __name__ == "__main__"',
|
|
"pragma: no cover",
|
|
"pragma: no-cover",
|
|
"raise NotImplementedError",
|
|
]
|