mirror of
https://github.com/OpenFreeEnergy/openfe.git
synced 2026-06-04 14:14:22 +08:00
[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:
committed by
GitHub
parent
dd2ee4bbd2
commit
5544db53f9
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user