mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-28 23:33:32 +02:00
Write Django cmd for running lint (#100)
* Write Django cmd for running lint * Respond to PR feedback
This commit is contained in:
parent
49cf72fee2
commit
196e4b8fd6
6 changed files with 330 additions and 3 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue