Write Django cmd for running lint (#100)

* Write Django cmd for running lint

* Respond to PR feedback
This commit is contained in:
Seamus Johnston 2022-09-02 18:42:40 +00:00 committed by GitHub
parent 49cf72fee2
commit 196e4b8fd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 330 additions and 3 deletions

View file

@ -34,4 +34,24 @@ You can change the logging verbosity, if needed. Do a web search for "django log
## Running tests
tbd.
Crash course on Docker's `run` vs `exec`: in order to run the tests inside of a container, a container must be running. If you already have a container running, you can use `exec`. If you do not, you can use `run`, which will attempt to start one.
To get a container running:
```shell
cd src
docker-compose build
docker-compose up -d
```
Django's test suite:
```shell
docker-compose exec app ./manage.py test
```
Linters:
```shell
docker-compose exec app ./manage.py lint
```