From 5544db53f9641d91cd89fea0bc466710ed97c102 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2026 09:09:50 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#1916) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [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> --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 36 +++++++++++++----------------------- 2 files changed, 15 insertions(+), 25 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d548167b..05c59cb1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,12 +20,12 @@ repos: - id: debug-statements - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.11.1" + rev: "v2.21.0" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.10 + rev: v0.15.9 hooks: # Run the linter. - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 16d56472..8eabc673 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,5 @@ [build-system] build-backend = "setuptools.build_meta" - requires = [ "setuptools>=77.0.3", "setuptools-scm>=8", @@ -14,7 +13,6 @@ 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", @@ -28,20 +26,15 @@ classifiers = [ "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 - -[tool.setuptools.packages.find] -where = [ "src" ] -namespaces = false - -[tool.setuptools.package-data] -openfe = [ '"./src/openfe/tests/data/lomap_basic/toluene.mol2"' ] +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" @@ -49,7 +42,6 @@ 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 @@ -69,23 +61,21 @@ lint.ignore = [ ] lint.isort.known-first-party = [ "openfe" ] -[tool.coverage.run] -omit = [ - "src/openfe/due.py", +[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", ] - -[tool.coverage.report] -exclude_lines = [ +report.exclude_lines = [ + "-no-cov", 'if __name__ == "__main__"', "pragma: no cover", "pragma: no-cover", - "-no-cov", "raise NotImplementedError", ] - -[tool.mypy] -files = "src/openfe" # TODO: add src/openfecli -ignore_missing_imports = true -warn_unused_ignores = true