Enable full mypy (#985)

* Add mypy types to dev requirements

* Add optional discord dependencies and generate requirements.txt for DiscordBot

* Add a full run of MyPy

* Fixing mypy errors and ignoring where unclear to establish a baseline

* Don't run mypy on Windows
This commit is contained in:
Artem Veremey
2021-11-25 08:56:14 -08:00
committed by GitHub
parent 8234ecbe27
commit a1cba7378a
12 changed files with 42 additions and 32 deletions

View File

@@ -252,6 +252,11 @@ jobs:
pip install pylint==2.11.1
pylint terminal.py gamestonk_terminal discordbot tests
- name: Run MyPy (Bash)
if: runner.os != 'Windows'
shell: bash -l {0}
run: mypy --ignore-missing-imports --exclude '/setup\.py$' .
- name: Run tests (Bash)
shell: bash -l {0}
run: pytest tests/