stable-baselines3/.gitlab-ci.yml
Quentin Gallouédec abffa16198
Mypy type checking (#1143)
* Install and configure mypy

* Test if github CI uses setup.cfg for mypy

* force color output

* tab to space

* Try to fix regex

* follow_imports silent

* use space as indentation

* fix indentation setup.cfg

* Show error code

* Update doc

* Udate changelog

* Ignore mypy cache files from commit

* Update gitlab CI

* Add pytype and mypy entry in Makefile

* Make mypy happy

Co-authored-by: Antonin RAFFIN <antonin.raffin@ensta.org>
2022-11-16 13:22:57 +01:00

23 lines
469 B
YAML

image: stablebaselines/stable-baselines3-cpu:1.4.1a0
type-check:
script:
- pip install pytype mypy --upgrade
- make type
pytest:
script:
- pip install tqdm rich # for progress bar
- python --version
# MKL_THREADING_LAYER=GNU to avoid MKL_THREADING_LAYER=INTEL incompatibility error
- MKL_THREADING_LAYER=GNU make pytest
coverage: '/^TOTAL.+?(\d+\%)$/'
doc-build:
script:
- make doc
lint-check:
script:
- make check-codestyle
- make lint