Skip to content

Commit

Permalink
chore: use dependency-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed Nov 13, 2024
1 parent 91ac118 commit f5717da
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ocr-correction-viklofg-sweocr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ publish:
prepare-release: update-changelog tests/requirements-testing.lock

# we use lock extension so that dependabot doesn't pick up changes in this file
tests/requirements-testing.lock: tests/requirements-testing.in pyproject.toml
uv pip compile $^ --output-file $@
tests/requirements-testing.lock: pyproject.toml
uv pip compile $< --group dev --output-file $@

.PHONY: update-changelog
update-changelog: CHANGELOG.md
Expand Down
4 changes: 2 additions & 2 deletions ocr-correction-viklofg-sweocr/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ packages = ["src/sbx_ocr_correction_viklofg_sweocr"]
[tool.hatch.metadata]
allow-direct-references = true

[tool.uv]
dev-dependencies = [
[dependency-groups]
dev = [
"pytest>=8.3.3",
"syrupy>=4.7.2",
"sparv-pipeline-testing @ git+https://github.com/spraakbanken/[email protected]",
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ readme = "README.md"
requires-python = ">=3.9"
dependencies = []

[tool.uv]
dev-dependencies = [
[dependency-groups]
dev = [
"bump-my-version>=0.28.0",
"mypy>=1.12.1",
"pytest>=8.3.3",
Expand All @@ -17,5 +17,7 @@ dev-dependencies = [
"sparv-pipeline-testing @ git+https://github.com/spraakbanken/[email protected]",
]

[tool.uv]

[tool.uv.workspace]
members = ["ocr-correction-viklofg-sweocr"]
15 changes: 14 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5717da

Please sign in to comment.