[pre-commit.ci] pre-commit autoupdate (#1916)

* [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>
This commit is contained in:
pre-commit-ci[bot]
2026-04-07 09:09:50 -07:00
committed by GitHub
parent dd2ee4bbd2
commit 5544db53f9
2 changed files with 15 additions and 25 deletions

View File

@@ -20,12 +20,12 @@ repos:
- id: debug-statements - id: debug-statements
- repo: https://github.com/tox-dev/pyproject-fmt - repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.11.1" rev: "v2.21.0"
hooks: hooks:
- id: pyproject-fmt - id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10 rev: v0.15.9
hooks: hooks:
# Run the linter. # Run the linter.
- id: ruff - id: ruff

View File

@@ -1,6 +1,5 @@
[build-system] [build-system]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
requires = [ requires = [
"setuptools>=77.0.3", "setuptools>=77.0.3",
"setuptools-scm>=8", "setuptools-scm>=8",
@@ -14,7 +13,6 @@ license = "MIT"
license-files = [ "LICENSE" ] license-files = [ "LICENSE" ]
authors = [ { name = "The OpenFE developers", email = "openfreeenergy@omsf.io" } ] authors = [ { name = "The OpenFE developers", email = "openfreeenergy@omsf.io" } ]
requires-python = ">=3.11" requires-python = ">=3.11"
classifiers = [ classifiers = [
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research", "Intended Audience :: Science/Research",
@@ -28,20 +26,15 @@ classifiers = [
"Topic :: Scientific/Engineering :: Chemistry", "Topic :: Scientific/Engineering :: Chemistry",
] ]
dynamic = [ "version" ] dynamic = [ "version" ]
urls = { Homepage = "https://github.com/OpenFreeEnergy/openfe" } urls = { Homepage = "https://github.com/OpenFreeEnergy/openfe" }
scripts.openfe = "openfecli.cli:main" scripts.openfe = "openfecli.cli:main"
[tool.setuptools] [tool.setuptools]
zip-safe = false zip-safe = false
include-package-data = true include-package-data = true
package-data.openfe = [ '"./src/openfe/tests/data/lomap_basic/toluene.mol2"' ]
[tool.setuptools.packages.find] packages.find.where = [ "src" ]
where = [ "src" ] packages.find.namespaces = false
namespaces = false
[tool.setuptools.package-data]
openfe = [ '"./src/openfe/tests/data/lomap_basic/toluene.mol2"' ]
[tool.setuptools_scm] [tool.setuptools_scm]
fallback_version = "0.0.0" fallback_version = "0.0.0"
@@ -49,7 +42,6 @@ fallback_version = "0.0.0"
[tool.ruff] [tool.ruff]
line-length = 100 line-length = 100
format.docstring-code-format = true format.docstring-code-format = true
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
lint.select = [ lint.select = [
"E", # pycodestyle errors "E", # pycodestyle errors
@@ -69,23 +61,21 @@ lint.ignore = [
] ]
lint.isort.known-first-party = [ "openfe" ] lint.isort.known-first-party = [ "openfe" ]
[tool.coverage.run] [tool.mypy]
omit = [ files = "src/openfe" # TODO: add src/openfecli
"src/openfe/due.py", ignore_missing_imports = true
warn_unused_ignores = true
[tool.coverage]
run.omit = [
"src/*/tests/dev/*py", "src/*/tests/dev/*py",
"src/*/tests/protocols/test_openmm_rfe_slow.py", "src/*/tests/protocols/test_openmm_rfe_slow.py",
"src/openfe/due.py",
] ]
report.exclude_lines = [
[tool.coverage.report] "-no-cov",
exclude_lines = [
'if __name__ == "__main__"', 'if __name__ == "__main__"',
"pragma: no cover", "pragma: no cover",
"pragma: no-cover", "pragma: no-cover",
"-no-cov",
"raise NotImplementedError", "raise NotImplementedError",
] ]
[tool.mypy]
files = "src/openfe" # TODO: add src/openfecli
ignore_missing_imports = true
warn_unused_ignores = true