File: Makefile

package info (click to toggle)
django-modeltranslation 0.20.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,084 kB
  • sloc: python: 6,195; javascript: 448; makefile: 154
file content (29 lines) | stat: -rw-r--r-- 553 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
release:
	commit-and-tag-version

publish: build
	twine upload dist/*
	git push --follow-tags

build: clean
	python -m build --installer uv

clean:
	rm -rf dist

lint:
	ruff check modeltranslation
	ruff format --check modeltranslation *.py

typecheck:
	mypy --pretty modeltranslation

sync:
	uv sync --group dev --group lsp --no-install-project

test:
	uv run --no-sync pytest

recreate-migrations:
	rm modeltranslation/tests/migrations/0*.py
	PYTHONPATH="." uv run --no-sync django-admin makemigrations tests --settings=modeltranslation.tests.settings