Skip to content

Commit 3c22362

Browse files
committed
Readme is updated with dev's information about maintenance. mypy is run.
1 parent 9c7e436 commit 3c22362

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,37 @@ Open any link in any browser
3636
* ReDoc http://127.0.0.1:8080/redoc
3737
* OpenAPI documentation (json) http://127.0.0.1:8080/openapi.json
3838

39+
## A tidy up and a health check
40+
41+
Install additional "developer's" requirements
42+
```bash
43+
pip install -r requirements-dev.txt
44+
```
45+
46+
A linter
47+
```bash
48+
ruff src
49+
```
50+
51+
A linter's fixing tool
52+
```bash
53+
ruff src --fix
54+
```
55+
56+
A formatter
57+
```bash
58+
ruff format src
59+
```
60+
61+
A default 'health-checking' linter
62+
```bash
63+
flake8 src
64+
```
65+
66+
A static type checker tool
67+
```bash
68+
mypy src
69+
```
3970

4071
# Проектное задание четвёртого спринта
4172

src/core/config.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Run through console:
3+
4+
uvicorn src.main:app --host 127.0.0.1 --port 8080
5+
additional notes are in the `../README.md` file
6+
"""
17
from pathlib import Path
28

39
from pydantic import BaseSettings
@@ -7,7 +13,8 @@
713

814

915
class AppSettings(BaseSettings):
10-
PROJECT_NAME: str # set any name in '.env' file
16+
# Don't use this name, set any name in '.env' file.
17+
PROJECT_NAME: str = "Default app's name"
1118

1219
class Config:
1320
env_file = '.env'

0 commit comments

Comments
 (0)