Page MenuHomeSoftware Heritage

Reduce cli's loading time by moving import statements in commands
ClosedPublic

Authored by douardda on Apr 7 2022, 12:03 PM.

Diff Detail

Repository
rDDATASET Datasets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D7519 (id=27282)

Rebasing onto 9d97f0c082...

Current branch diff-target is up to date.
Changes applied before test
commit 18325cc8e78e99ac35f550687e41b6f21c5d3a9f
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Apr 6 16:16:09 2022 +0200

    Reduce cli's loading time by moving import statements in commands

See https://jenkins.softwareheritage.org/job/DDATASET/job/tests-on-diff/124/ for more details.

ardumont added a subscriber: ardumont.

thanks.

Same player plays again (you did that in other modules back in the day ;)

This revision is now accepted and ready to land.Apr 7 2022, 2:37 PM
vlorentz added inline comments.
swh/dataset/cli.py
16

why not this one too?

swh/dataset/cli.py
16

because it's used to fill a click.Choice() argument... in a following revision :-)
(plus it's really just a bunch of dicts declarations).