Skip to content

Commit

Permalink
ci: add hatch matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Sep 11, 2023
1 parent 1e3cc27 commit 717b7e3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,30 @@ source = "vcs"
[tool.hatch.build.targets.sdist]
include = ["src", "tests", "CHANGELOG.md"]

# these let you run tests across all backends easily with:
# hatch run test:test
[tool.hatch.envs.test]

[tool.hatch.envs.test.scripts]
test = "pytest"

[[tool.hatch.envs.test.matrix]]
qt = ["pyside6", "pyqt6"]
python = ["3.11"]

[[tool.hatch.envs.test.matrix]]
qt = ["pyside2", "pyqt5", "pyqt5.12"]
python = ["3.8"]

[tool.hatch.envs.test.overrides]
matrix.qt.extra-dependencies = [
{value = "pyside2", if = ["pyside2"]},
{value = "pyside6", if = ["pyside6"]},
{value = "pyqt5", if = ["pyqt5"]},
{value = "pyqt6", if = ["pyqt6"]},
{value = "pyqt5==5.12", if = ["pyqt5.12"]},
]

# https://pycqa.github.io/isort/docs/configuration/options.html
[tool.isort]
profile = "black"
Expand Down Expand Up @@ -159,12 +183,16 @@ warn_unused_ignores = false
allow_redefinition = true

# https://coverage.readthedocs.io/en/6.4/config.html
[tool.coverage.run]
source = ["src/superqt"]

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"@overload",
"except ImportError",
"\\.\\.\\."
]

# https://github.com/mgedmin/check-manifest#configuration
Expand Down

0 comments on commit 717b7e3

Please sign in to comment.