configure mypy vscode extension and start fixing some types

This commit is contained in:
sadnub
2022-04-07 21:55:02 -04:00
parent 3325c30f29
commit 62e2b5230c
18 changed files with 462 additions and 303 deletions

View File

@@ -105,7 +105,7 @@ services:
image: postgres:13-alpine
restart: always
environment:
POSTGRES_DB: tacticalrmm
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASS}
volumes:
@@ -145,6 +145,7 @@ services:
TRMM_PASS: ${TRMM_PASS}
HTTP_PROTOCOL: ${HTTP_PROTOCOL}
APP_PORT: ${APP_PORT}
POSTGRES_DB: ${POSTGRES_DB}
depends_on:
- postgres-dev
- meshcentral-dev

View File

@@ -102,6 +102,7 @@ EOF
echo "${localvars}" > ${WORKSPACE_DIR}/api/tacticalrmm/tacticalrmm/local_settings.py
# run migrations and init scripts
"${VIRTUAL_ENV}"/bin/python manage.py pre_update_tasks
"${VIRTUAL_ENV}"/bin/python manage.py migrate --no-input
"${VIRTUAL_ENV}"/bin/python manage.py collectstatic --no-input
"${VIRTUAL_ENV}"/bin/python manage.py initial_db_setup

View File

@@ -1,8 +1,8 @@
# To ensure app dependencies are ported from your virtual environment/host machine into your container, run 'pip freeze > requirements.txt' in the terminal to overwrite this file
asgiref==3.5.0
celery==5.2.3
celery==5.2.6
channels==3.0.4
channels_redis==3.3.1
channels_redis==3.4.0
daphne==3.0.2
Django==4.0.3
django-cors-headers==3.11.0
@@ -11,29 +11,29 @@ django-rest-knox==4.2.0
djangorestframework==3.13.1
future==0.18.2
msgpack==1.0.3
nats-py==2.0.0
nats-py==2.1.0
packaging==21.3
psycopg2-binary==2.9.3
psycopg-binary==3.0.11
pycryptodome==3.14.1
pyotp==2.6.0
pytz==2021.3
pytz==2022.1
qrcode==7.3.1
redis==4.1.3
redis==4.2.2
requests==2.27.1
twilio==7.6.0
urllib3==1.26.8
twilio==7.8.1
urllib3==1.26.9
validators==0.18.2
websockets==10.1
drf_spectacular==0.21.2
websockets==10.2
drf_spectacular==0.22.0
# dev
black==22.1.0
Werkzeug==2.0.2
black==22.3.0
django-extensions==3.1.5
Pygments==2.11.2
isort==5.10.1
mypy==0.931
types-pytz==2021.3.4
model-bakery==1.4.0
mypy==0.942
types-pytz==2021.3.6
model-bakery==1.5.0
coverage==6.3.2
django-silk==4.3.0
django-stubs==1.10.1
djangorestframework-stubs==1.5.0