Skip to content

Commit

Permalink
Add hatch test config
Browse files Browse the repository at this point in the history
- add hatch test config
- add config for hatch dev environment
- separate test dependencies from other dev dependencies
  • Loading branch information
maarten-vermeyen committed Sep 20, 2024
1 parent 43ea6c1 commit 384d8f0
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,21 @@ Repository = "https://github.com/OnroerendErfgoed/brdr"
Issues = "https://github.com/OnroerendErfgoed/brdr/issues"

[project.optional-dependencies]
test = [
"pytest-cov==5.0.0",
"pytest==8.1.1",
"responses==0.25.3",
"toml==0.10.2",
]
dev = [
"brdr[test]",
"black==24.4.0",
"flake8==7.0.0",
"geopandas==0.14.3",
"hatchling==1.24.2",
"matplotlib==3.8.4",
"mypy==1.9.0",
"pip-tools==7.4.1",
"pytest-cov==5.0.0",
"pytest==8.1.1",
"responses==0.25.3",
"toml==0.10.2",
"types-requests==2.31.0.20240406",
]

Expand All @@ -59,3 +62,18 @@ packages = ["brdr"]

[tool.black]
target-version = ['py39', 'py310', 'py311', 'py312']

# Config for hatch environments
[tool.hatch.envs.dev]
features = [
'dev',
]

# Config for hatch test
[tool.hatch.envs.hatch-test]
features = [
'test',
]

[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.9", "3.10", '3.11', '3.12']

0 comments on commit 384d8f0

Please sign in to comment.