Skip to content

Commit

Permalink
Restrict pytest version to prevent pytest-asyncio incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
golmschenk committed Feb 1, 2024
1 parent 875433b commit e38e0a0
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies = [
"astropy>=5.2.1",
"astroquery>=0.4.6",
"requests>=2.28.2",
"pytest>=7.2.1",
"pytest>=7.2.1,<8",
"pyarrow>=11.0.0",
"gitpython>=3.1.30",
"matplotlib>=3.6.3",
Expand Down Expand Up @@ -54,3 +54,49 @@ build-backend = "hatchling.build"

[tool.hatch.version]
path = "src/qusi/__about__.py"

[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-cov",
"cov-report",
]

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.types]
dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/qusi tests}"

[tool.coverage.run]
source_pkgs = ["qusi", "tests"]
branch = true
parallel = true
omit = [
"src/qusi/__about__.py",
]

[tool.coverage.paths]
qusi = ["src/qusi", "*/qusi/src/qusi"]
tests = ["tests", "*/qusi/tests"]

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]

0 comments on commit e38e0a0

Please sign in to comment.