diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..516f730 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +#!/bin/bash + +.PHONY: coverage errors + +coverage: + cd src/; coverage run --source='.' manage.py test; coverage report -m; cd .. + @echo "Testing of coverage in the sources finished." + +lint: + pylint src/* --disable=django-not-configured + +errors: + pylint src/* --errors-only --disable=django-not-configured diff --git a/requirements/dev.txt b/requirements/dev.txt index 47b1c24..6cef1ea 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,4 +6,5 @@ flake8==3.9.1 django-spaghetti-and-meatballs==0.4.2 docutils==0.16 pytest==6.2.4 -pytest-django==4.2.0 \ No newline at end of file +pytest-django==4.2.0 + diff --git a/src/.coveragerc b/src/.coveragerc new file mode 100644 index 0000000..8d55d25 --- /dev/null +++ b/src/.coveragerc @@ -0,0 +1,15 @@ +[run] +branch = true +omit = + */tests/* + */test* + */migrations/* + */urls.py + */settings/* + */wsgi.py + */__init__.py + manage.py +source = . + +[report] +show_missing = true \ No newline at end of file