yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04333
[Bug 1220510] Re: H302 import only modules.
** Changed in: horizon
Status: New => Invalid
** Changed in: horizon
Assignee: Simon Luo (simon-t) => (unassigned)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1220510
Title:
H302 import only modules.
Status in OpenStack Dashboard (Horizon):
Invalid
Bug description:
simonluo@ubuntu1210:~/horizon$ ./run_tests.sh -p
Checking environment.
Your environment appears to be out of date. Update? (Y/n) n
Running flake8 ...
openstack_dashboard/policy.py:29:1: H302 import only modules.'from openstack_dashboard.openstack.common import policy' does not import a module
openstack_dashboard/settings.py:192:1: H302 import only modules.'from openstack_dashboard import policy' does not import a module
openstack_dashboard/dashboards/project/instances/views.py:40:1: H302 import only modules.'from openstack_dashboard.dashboards.project.instances import forms as project_forms' does not import a module
openstack_dashboard/api/__init__.py:37:1: H302 import only modules.'from openstack_dashboard.api import ceilometer' does not import a module
openstack_dashboard/test/tests/policy.py:17:1: H302 import only modules.'from openstack_dashboard import policy' does not import a module
openstack_dashboard/test/test_data/utils.py:17:5: H302 import only modules.'from openstack_dashboard.test.test_data import ceilometer_data' does not import a module
simonluo@ubuntu1210:~/horizon$
https://review.openstack.org/#/c/41870/
Here we enabled H302 check, but with new Horizon, there are some improvements need to do.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1220510/+subscriptions