Skip to content

Commit 83b0e4e

Browse files
changes compose naming
refactors repositories standardizes controller exception handling refactors application routes fixes repositories connection close timing updates postman collection updates README fixes pylint errors fixes pylint errors apply black style to modules Update pylint.yml Update pylint.yml Update pylint.yml disable warnings
1 parent 3630483 commit 83b0e4e

29 files changed

+4258
-2089
lines changed

.github/workflows/pylint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
pip install -r requirements.txt
2222
- name: Analysing the code with pylint
2323
run: |
24-
pylint -d C0200,C0301,C0114,R0903,C0115,W0246,R0914,C0209,E1121,C0103,C2801,R0801,E1101,R0911,C0116 $(git ls-files '*.py')
24+
pylint -d C0200,C0301,C0114,R0903,C0115,W0246,R0914,C0209,E1121,C0103,C2801,R0801,E1101,E0401,E0611,R0911,C0116,W0212,W0719,W0601,W1203,W0123 $(git ls-files '*.py')

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
- Stores simulation input data in mongo-db
66

77
## Docker
8-
- touch .env
9-
- docker-compose up --build -d
8+
- set MONGODB_CONNECTION_STRING: `touch .env && echo MONGODB_CONNECTION_STRING="$ConnectionString" > .env`
9+
- run docker compose: `docker-compose up --build -d`
1010

1111
## Setup
1212
- [Install python3](https://www.python.org/downloads/) 3.11.5 or above
@@ -34,19 +34,25 @@
3434
│   │   ├── motor.py
3535
│   │   └── rocket.py
3636
│   │  
37-
│   ├── models
38-
│   │   ├── aerosurfaces.py
37+
│   ├── routes
3938
│   │   ├── environment.py
4039
│   │   ├── flight.py
4140
│   │   ├── motor.py
42-
│   │   ├── parachute.py
4341
│   │   └── rocket.py
4442
│   │  
4543
│   ├── repositories
44+
│   │   ├── repo.py
4645
│   │   ├── environment.py
4746
│   │   ├── flight.py
4847
│   │   ├── motor.py
49-
│   │   ├── repo.py
48+
│   │   └── rocket.py
49+
│   │  
50+
│   ├── models
51+
│   │   ├── aerosurfaces.py
52+
│   │   ├── environment.py
53+
│   │   ├── flight.py
54+
│   │   ├── motor.py
55+
│   │   ├── parachute.py
5056
│   │   └── rocket.py
5157
│   │  
5258
│   └── views

compose.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
version: '1'
1+
version: '2'
22

33
services:
4-
fastapi-app:
4+
api:
55
build:
66
context: .
77
dockerfile: Dockerfile
88
image: infinity-api:latest
9+
container_name: infinity-api
910
ports:
1011
- "3000:3000"
1112
env_file:

0 commit comments

Comments
 (0)