Solve execute flake8 stuck in cyborg
When use 'flake8 cyborg/' cmd in cyborg dir, the check will be stuck. This reason is beacuse monkey_patch in cyborg/__init__.py. The solution is to move the monkey_patch to cmd/__init__.py. Actually, the monkey_patch should be put in cmd dir. Change-Id: Ic5e79bf43c2a895561e727cf56487c03e09db804
This commit is contained in:
parent
fcdb495619
commit
33d8ffeb8d
@ -12,11 +12,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import eventlet
|
||||
import pbr.version
|
||||
|
||||
|
||||
__version__ = pbr.version.VersionInfo(
|
||||
'openstack-cyborg').version_string()
|
||||
|
||||
eventlet.monkey_patch(os=False)
|
||||
|
@ -13,7 +13,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import eventlet
|
||||
import oslo_i18n as i18n
|
||||
|
||||
eventlet.monkey_patch()
|
||||
|
||||
i18n.install('cyborg')
|
||||
|
Loading…
Reference in New Issue
Block a user