File tree 2 files changed +39
-1
lines changed
2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,37 @@ Open any link in any browser
36
36
* ReDoc http://127.0.0.1:8080/redoc
37
37
* OpenAPI documentation (json) http://127.0.0.1:8080/openapi.json
38
38
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
+ ```
39
70
40
71
# Проектное задание четвёртого спринта
41
72
Original file line number Diff line number Diff line change
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
+ """
1
7
from pathlib import Path
2
8
3
9
from pydantic import BaseSettings
7
13
8
14
9
15
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"
11
18
12
19
class Config :
13
20
env_file = '.env'
You can’t perform that action at this time.
0 commit comments