refactor: use importlib instead of imp in compat.py

11 jobs for !43 with topic/default/deprecated-warnings in 3 minutes and 17 seconds (queued for 1 minute and 31 seconds)
latest detached
Status Job ID Name Coverage
  Lint
passed check-manifest #294606

00:00:28

passed flake8 #294604

00:00:31

failed mypy #294605
allowed to fail

00:00:43

 
  Tests
passed py3 #294607

00:00:41

passed py38 #294608

00:00:51

 
  After Tests
passed trigger-cubicweb-pipeline

passed trigger-logilab-constraint-pipeline

passed trigger-logilab-database-pipeline

passed trigger-logilab-mtconverter-pipeline

passed trigger-rql-pipeline

passed trigger-yams-pipeline

 
Name Stage Failure
failed
mypy Lint
logilab/common/optik_ext.py:365: note: This violates the Liskov substitution principle
logilab/common/optik_ext.py:365: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
logilab/common/optik_ext.py:371: error: Argument 1 to "format_option_strings" of "HelpFormatter" has incompatible type "OptionParser"; expected "Option"
Found 6 errors in 3 files (checked 41 source files)
ERROR: InvocationError for command /builds/open-source/logilab-common/.tox/mypy/bin/mypy --ignore-missing-imports logilab (exited with code 1)
___________________________________ summary ____________________________________
ERROR: mypy: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1