Skip to content

Commit 77e8ad8

Browse files
committed
add lint and test to Pipenv scripts, update docs
1 parent 015efda commit 77e8ad8

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

Pipfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ dev = "uvicorn app.main:APP --reload"
3030
start = "uvicorn app.main:APP"
3131
fmt = "invoke fmt"
3232
sort = "invoke sort"
33+
lint = "invoke lint"
34+
test = "invoke test"

README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -414,32 +414,26 @@ And don't despair if don't get the python setup working on the first try. No one
414414
* Visit your app at [http://localhost:5000](http://localhost:5000).
415415

416416
### Running Tests
417+
> pytest
417418
418419
```bash
419-
pipenv sync --dev
420-
pipenv shell
421-
make test
420+
pipenv run test
422421
```
423422

423+
424424
### Linting
425+
> pylint
425426
426427
```bash
427-
pipenv sync --dev
428-
pipenv shell
429-
make lint
428+
pipenv run lint
430429
```
431430

432431
### Formatting
432+
> black
433433
434434
```bash
435435
pipenv run fmt
436436
```
437-
or
438-
```bash
439-
pipenv shell
440-
make fmt
441-
```
442-
443437

444438
### Building
445439

0 commit comments

Comments
 (0)