feat(auto-mr): use Command.base_query to check if I need to apply a command on a cube

4 jobs for topic/default/_cube-doctor.yml in 3 minutes and 36 seconds (queued for 6 seconds)
Status Job ID Name Coverage
  Test
failed black-check #397900

00:01:28

failed flake8 #397901

00:01:50

passed py3 #397934

00:01:43

failed py3 #397902

00:01:26

 
Name Stage Failure
failed
flake8 Test
flake8 run-test: commands[0] | flake8 /builds/cubicweb/cube-doctor
./cube_doctor/doctor_hg.py:71: [E501] line too long (142 > 100 characters)
./cube_doctor/transforms/add_new_rules.py:16: [F821] undefined name 'rule_name'
./cube_doctor/transforms/propose_base_config.py:101: [E501] line too long (123 > 100 characters)
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
failed
black-check Test
black run-test: commands[0] | black --check .
would reformat cube_doctor/doctor_hg.py
Oh no! 💥 💔 💥
1 file would be reformatted, 45 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