Skip to content
Snippets Groups Projects
Commit 09d6b6e7 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

mypy type checking CI task

parent bcd147bb
No related merge requests found
Pipeline #60268 failed with stages
in 3 minutes and 2 seconds
...@@ -275,7 +275,7 @@ pycodegen-integration: ...@@ -275,7 +275,7 @@ pycodegen-integration:
reports: reports:
junit: pycodegen/*/report.xml junit: pycodegen/*/report.xml
# -------------------- Linter & Documentation -------------------------------------------------------------------------- # -------------------- Linter, Type Checker & Documentation ---------------------------------------------------------------------
flake8-lint: flake8-lint:
...@@ -289,6 +289,19 @@ flake8-lint: ...@@ -289,6 +289,19 @@ flake8-lint:
tags: tags:
- docker - docker
mypy-typecheck:
stage: pretest
except:
variables:
- $ENABLE_NIGHTLY_BUILDS
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
before_script:
- pip install -e .[tests]
script:
- mypy src/pystencils
tags:
- docker
build-documentation: build-documentation:
stage: test stage: test
......
...@@ -59,6 +59,7 @@ tests = [ ...@@ -59,6 +59,7 @@ tests = [
'ansi2html', 'ansi2html',
'pytest-xdist', 'pytest-xdist',
'flake8', 'flake8',
'mypy>=1.8',
'nbformat', 'nbformat',
'nbconvert', 'nbconvert',
'ipython', 'ipython',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment