django-bldtool 0.0.1

Creator: codyrutscher

Last updated:

Add to Cart

Description:

djangobldtool 0.0.1

=======
bldtool
bldtool is a Django app to that adds management commands to support
developers with standard quality and build support. These buildtools
assume python django server side, and TypeScript/react client side.
Quick start


Build the bldtool installer from srouce

cd
python setup.py sdist



Create your django site and vm

virtualenv -p python3.8 env
. env/bin/activate
pip install django
django-admin startproject
cd site
pip install dist/django-bldtool-X.Y.tar.gz
Add "bldtool" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'bldtool',
]


Run "python manage.py qc" and update the errors until it runs
clean. In particular update the manage.py so that the setting
import exception does not need to be covered:
except ImportError as exc: # pragma: no cover


When creating new apps be sure to:

Remove the generated files you will not be using.
Update the generated files with docstrings to pass lint.



Project Requirements
This tool assumes:

django
django_rest_framework
typescript for js-react components.
The client side is not a single page react application, but is
served with typical django templates that may have react components
as the body of some pages.

Management Commands
lint
^^^^
This runs pylint on all python files on all the modules.
It also runs jslint on all typescript files.
coverage
^^^^^^^^
This runs tests and generates a coverage report on all apps.
qc
^^^
This runs both lint and coverage.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.