Skip to content

Commit

Permalink
Merge remote-tracking branch 'make/main' into bump-minimum-python-to-39
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed Nov 18, 2024
2 parents 07bf238 + 2c86ff7 commit c7cf08b
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@


# use this Makefile as base in your project by running
# git remote add make https://github.com/spraakbanken/python-uv-make-conf
# git fetch make
Expand Down Expand Up @@ -57,8 +58,8 @@ help:
@echo ""

PLATFORM := `uname -o`
REPO := "sparv-sbx-ocr-correction"
PROJECT_SRC := "ocr-correction-viklofg-sweocr/src"
REPO := "<REPO-NAME-HERE>"
PROJECT_SRC := "<SRC-FOLDER-HERE>"

ifeq (${VIRTUAL_ENV},)
VENV_NAME = .venv
Expand All @@ -72,8 +73,8 @@ default_cov := "--cov=${PROJECT_SRC}"
cov_report := "term-missing"
cov := ${default_cov}

all_tests := ocr-correction-viklofg-sweocr/tests
tests := ocr-correction-viklofg-sweocr/tests
all_tests := tests
tests := tests

info:
@echo "Platform: ${PLATFORM}"
Expand Down Expand Up @@ -151,7 +152,7 @@ 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: pyproject.toml
uv pip compile $< --output-file $@
uv export --dev --format requirements-txt --no-hashes --output-file $@

.PHONY: update-changelog
update-changelog: CHANGELOG.md
Expand All @@ -166,9 +167,3 @@ snapshot-update:
${INVENV} pytest --snapshot-update

### === project targets below this line ===
.PHONY: kb-bert-prepare-release
viklofg-sweocr-prepare-release: ocr-correction-viklofg-sweocr/CHANGELOG.md

.PHONY: ocr-correction-viklofg-sweocr/CHANGELOG.md
ocr-correction-viklofg-sweocr/CHANGELOG.md:
git cliff --unreleased --include-path "ocr-correction-viklofg-sweocr/**/*" --include-path "examples/ocr-correction-viklofg-sweocr/**/*" --prepend $@

0 comments on commit c7cf08b

Please sign in to comment.