Refactor: Resolve Flake8 F401 and F403 and F405 43/68943/2
authorThanh Ha <zxiiro@gmail.com>
Tue, 5 Oct 2021 23:25:12 +0000 (19:25 -0400)
committerThanh Ha <zxiiro@gmail.com>
Wed, 6 Oct 2021 00:02:41 +0000 (20:02 -0400)
commit3db275705ac286a6c5efbee9a8bcd76b8d70b1b8
tree5dad183dd474f6cda73ddc1bd7f32b6a2a2f64b9
parentb5a00224f62a6af57a79dfe7604f1cf9981217f8
Refactor: Resolve Flake8 F401 and F403 and F405

It's bad practice to use * imports (F405) since the methods or
variables being imported could be undefined. Explicitly importing
makes this more clear. Also F403 violation makes it difficult to
detect undefined names.

Additionally F401 violation to allow an indirect module import makes
things harder to debug. It's better to be explicit.

https://www.flake8rules.com/rules/F401.html
https://www.flake8rules.com/rules/F403.html
https://www.flake8rules.com/rules/F405.html

Change-Id: Ib938f865d3ac6456216a119c830d3b013932bf88
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
lftools/cli/nexus2/__init__.py
lftools/cli/nexus3/__init__.py
lftools/cli/nexus3/repository.py
lftools/cli/nexus3/role.py
lftools/cli/nexus3/script.py
lftools/cli/nexus3/task.py
lftools/cli/nexus3/user.py