mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-27 03:33:24 +00:00
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:
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user