Closed cclauss closed 5 years ago
flake8 testing of https://github.com/IBM/flocker-driver on Python 3.6.1
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./ibm_storage_flocker_driver/ibm_storage_blockdevice.py:82:24: F821 undefined name 'unicode' hostname_aligned = unicode(hostname) if hostname else None ^ ./ibm_storage_flocker_driver/ibm_storage_blockdevice.py:158:24: F821 undefined name 'unicode' blockdevice_id=unicode(wwn), ^ ./ibm_storage_flocker_driver/ibm_storage_blockdevice.py:292:13: F821 undefined name 'unicode' unicode(socket.gethostname()) ^ ./ibm_storage_flocker_driver/ibm_storage_blockdevice.py:571:28: F821 undefined name 'unicode' hostname = unicode(hostname) ^ ./ibm_storage_flocker_driver/ibm_storage_blockdevice.py:592:33: F821 undefined name 'unicode' raise UnknownVolume(unicode(vol_obj.wwn)) ^ ./ibm_storage_flocker_driver/ibm_storage_blockdevice.py:595:16: F821 undefined name 'unicode' host = unicode(host) if host else None ^ ./ibm_storage_flocker_driver/test_ibm_storage_flocker_driver.py:40:57: F821 undefined name 'unicode' unknown_blockdevice_id_factory=lambda test: unicode(uuid4()) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:65:20: F821 undefined name 'unicode' blockdevice_id=unicode(UUID1_STR), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:72:20: F821 undefined name 'unicode' blockdevice_id=unicode(UUID3_STR), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:129:28: F821 undefined name 'unicode' blockdevice_id=unicode(test_host_actions.MULTIPATH_OUTPUT_WWN), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:204:48: F821 undefined name 'unicode' self.assertTrue(driver_obj._get_volume(unicode(UUID1_STR)), BDV1) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:207:48: F821 undefined name 'unicode' self.assertTrue(driver_obj._get_volume(unicode(UUID3_STR)), BDV3) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:211:27: F821 undefined name 'unicode' unicode('fack-lockdevice-id')) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:224:50: F821 undefined name 'unicode' self.assertTrue(driver_obj._volume_exist(unicode(UUID1_STR))) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:227:50: F821 undefined name 'unicode' self.assertTrue(driver_obj._volume_exist(unicode(UUID3_STR))) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:231:38: F821 undefined name 'unicode' driver_obj._volume_exist(unicode('fack-lockdevice-id'))) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:257:28: F821 undefined name 'unicode' blockdevice_id=unicode(mock_vol_obj.wwn), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:274:28: F821 undefined name 'unicode' blockdevice_id=unicode(test_host_actions.MULTIPATH_OUTPUT_WWN2), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:308:28: F821 undefined name 'unicode' blockdevice_id=unicode(UUID1_STR), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:330:28: F821 undefined name 'unicode' blockdevice_id=unicode(UUID1_STR), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:358:28: F821 undefined name 'unicode' blockdevice_id=unicode(UUID1_STR), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:381:27: F821 undefined name 'unicode' unicode(UUID(UUID1_STR))) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:388:28: F821 undefined name 'unicode' blockdevice_id=unicode('999'), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:396:35: F821 undefined name 'unicode' driver_obj.destroy_volume(unicode(UUID(UUID1_STR))) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:416:28: F821 undefined name 'unicode' blockdevice_id=unicode('999'), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:430:13: F821 undefined name 'unicode' unicode(UUID1_STR), 'fake-host') ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:439:13: F821 undefined name 'unicode' unicode(UUID1_STR), u'fake-host').attached_to ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:450:13: F821 undefined name 'unicode' unicode(UUID1_STR)) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:461:43: F821 undefined name 'unicode' self.driver_obj.detach_volume(unicode(UUID1_STR))) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:491:32: F821 undefined name 'unicode' blockdevice_id=unicode(WWN1), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:493:29: F821 undefined name 'unicode' attached_to=unicode(HOST), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:497:32: F821 undefined name 'unicode' blockdevice_id=unicode(WWN2), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:499:29: F821 undefined name 'unicode' attached_to=unicode(HOST), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:531:28: F821 undefined name 'unicode' blockdevice_id=unicode(WWN2), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:544:28: F821 undefined name 'unicode' blockdevice_id=unicode(WWN1), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:558:28: F821 undefined name 'unicode' blockdevice_id=unicode(WWN1), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:565:28: F821 undefined name 'unicode' blockdevice_id=unicode(WWN2), ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:712:50: F821 undefined name 'unicode' self.assertEqual(type(api._instance_id), unicode) ^ ./ibm_storage_flocker_driver/tests/test_ibm_storage_blockdevice_ut.py:720:50: F821 undefined name 'unicode' self.assertEqual(type(api._instance_id), unicode) ^
flake8 testing of https://github.com/IBM/flocker-driver on Python 3.6.1
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics