Use decorator to avoid flag repetition
This should allow to deprecate or simplify those when we start using a swh deposit --config-file
or swh --config-file deposit
or even moving those
flags up to the main swh deposit
command.
Note that this includes a secondary commit which drops spurious noqa comment.
Test Plan
tox
Migrated from D4748 (view on Phabricator)