Skip to content

Commit

Permalink
MAINT: Consolidate Python config in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwthompson committed Nov 13, 2024
1 parent 92f6b9d commit 0ef609e
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 111 deletions.
14 changes: 0 additions & 14 deletions .codecov.yml

This file was deleted.

58 changes: 58 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,53 @@ authors = [{name = "Open Force Field Initiative", email = "info@openforcefield.o
license = {text = "MIT"}
dynamic = ["version"]

[tool.setuptools.packages.find]
where = ["openff/interchange"]

[tool.versioningit]

[tool.mypy]
mypy_path = "stubs/"
python_version = "3.11"
plugins = "numpy.typing.mypy_plugin,pydantic.mypy"
warn_unused_configs = true
warn_unused_ignores = true
warn_incomplete_stub = true
show_error_codes = true

[[tool.mypy.overrides]]
module = [
"pandas",
"networkx",
"openmm",
"openmm.app",
"openmm.app.element",
"openmm.unit",
"intermol.*",
"rdkit",
"openff.toolkit.*",
"openff.units.*",
"openff.utilities.*",
"openff.recharge.*",
"parmed",
"parmed.amber",
"pmdtest.utils",
"pytest",
"pint",
"unyt",
"openeye",
"jax",
"scipy.spatial",
"nonbonded_plugins.*",
"lammps",
]
ignore_missing_imports = true

[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]

[tool.interrogate]
ignore-init-method = true
ignore-init-module = true
Expand Down Expand Up @@ -60,3 +105,16 @@ known-first-party = ["openff.interchange"]

[tool.ruff.lint.pydocstyle]
property-decorators=["validator"]

[tool.coverage.run]
omit = [
"*/*/_tests/*",
]

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"@overload",
]
3 changes: 0 additions & 3 deletions pytest.ini

This file was deleted.

88 changes: 0 additions & 88 deletions setup.cfg

This file was deleted.

6 changes: 0 additions & 6 deletions setup.py

This file was deleted.

0 comments on commit 0ef609e

Please sign in to comment.