Skip to content

Commit 0be1bf0

Browse files
author
Fabian Ihl
committed
Merge branch 'feature/readme'
2 parents d5dcda1 + 68da700 commit 0be1bf0

File tree

1 file changed

+58
-1
lines changed

1 file changed

+58
-1
lines changed

README.md

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,59 @@
11
# python-template
2-
Generic python project template to get you started
2+
Generic python project template to get you started utilizing docker containers.
3+
4+
Predefined containers include:
5+
6+
* Python
7+
* MongoDB
8+
* PostgreSQL
9+
* RabbitMQ
10+
11+
## Quickstart
12+
13+
```shell
14+
make
15+
```
16+
17+
This installs any dependencies and fires up all containers
18+
19+
## Tests
20+
### Running tests
21+
22+
```shell
23+
make test
24+
```
25+
26+
Discovers any testfile matching test*.py
27+
28+
### Tests with coverage reports
29+
30+
```shell
31+
make coverage
32+
```
33+
34+
HTML coverage report will be dumped to ./htmlcov
35+
36+
> We aim to get a minimum code coverage of 95%
37+
> Remember to use coverage before committing so the build will not fail after pushing!
38+
39+
## Linting
40+
41+
> Every file with a rating below 8.0 will be rejected after pushing a commit!
42+
43+
### Running the linter
44+
45+
```shell
46+
make lint
47+
```
48+
49+
### Installing the linter as pre commit hook
50+
51+
```shell
52+
make install_pre_commit
53+
```
54+
55+
## Running custom commands in the python container
56+
57+
```shell
58+
docker-compose run --rm py <your command>
59+
```

0 commit comments

Comments
 (0)