feat(fix-deprecated-warnings): handle case where a renaming has been assigned before

3 jobs for topic/default/fix-deprecated-warnings in 1 minute and 18 seconds (queued for 2 seconds)
Name Stage Failure
failed
black-check Test
would reformat cube_doctor/__init__.py

Oh no! 💥 💔 💥
2 files would be reformatted, 49 files would be left unchanged.
ERROR: InvocationError for command /builds/cubicweb/cube-doctor/.tox/black/bin/black --check . (exited with code 1)
___________________________________ summary ____________________________________
ERROR: black: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1
failed
flake8 Test
./cube_doctor/transforms/migrate_to_cubicweb_web_cube.py:1: [F401] 're' imported but unused
./cube_doctor/transforms/migrate_to_cubicweb_web_cube.py:2: [F401] 'string' imported but unused
./cube_doctor/transforms/migrate_to_cubicweb_web_cube.py:3: [F401] 'requests' imported but unused
./cube_doctor/transforms/migrate_to_cubicweb_web_cube.py:10: [F401] 'distutils.version.LooseVersion' imported but unused
ERROR: InvocationError for command /builds/cubicweb/cube-doctor/.tox/flake8/bin/flake8 . (exited with code 1)
___________________________________ summary ____________________________________
ERROR: flake8: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1