add black and mypy to tests

5 jobs for topic/default/test-black-mypy in 4 minutes and 59 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Tests
failed black #126384

00:00:25

passed check-manifest #126381

00:00:22

passed flake8 #126382

00:00:23

failed mypy #126385

00:01:18

passed py3 #126383

00:04:59

 
Name Stage Failure
failed
mypy Tests
mypy run-test: commands[0] | mypy --ignore-missing-imports cubicweb_intranet
cubicweb_intranet/schema.py:37: error: Incompatible types in assignment (expression has type "Tuple[str, str, str, str, str, str, str, str]", variable has type "Tuple[str, str, str, str, str, str, str]")
Found 1 error in 1 file (checked 4 source files)
ERROR: InvocationError for command /builds/cubicweb/cubes/intranet/.tox/mypy/bin/mypy --ignore-missing-imports cubicweb_intranet (exited with code 1)
___________________________________ summary ____________________________________
ERROR: mypy: commands failed
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: command terminated with exit code 1
failed
black Tests
would reformat /builds/cubicweb/cubes/intranet/setup.py
Oh no! 💥 💔 💥
13 files would be reformatted, 2 files would be left unchanged.
ERROR: InvocationError for command /builds/cubicweb/cubes/intranet/.tox/black/bin/black --check . (exited with code 1)
___________________________________ summary ____________________________________
ERROR: black: commands failed
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: command terminated with exit code 1