File: Makefile

package info (click to toggle)
python-django-formtools 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,060 kB
  • sloc: python: 2,092; makefile: 187; sh: 4
file content (29 lines) | stat: -rw-r--r-- 740 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
export DJANGO_SETTINGS_MODULE = tests.settings
export PYTHONPATH := $(shell pwd)

clean:
	git clean -Xfd

maketranslations:
	cd formtools; django-admin makemessages -a -v2

pulltranslations:
	tx pull -f -a --minimum-perc=1

compiletranslations:
	cd formtools; django-admin compilemessages

translations: pulltranslations maketranslations compiletranslations
	@echo "Pulling, making and compiling translations"

docs:
	$(MAKE) -C docs clean html

test:
	@ruff .
	@isort --check-only --diff formtools tests
	@ python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m coverage run `which django-admin` test tests
	@coverage report
	@coverage xml

.PHONY: clean docs test maketranslations pulltranslations compiletranslations