Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comply with Python Pep8 guidelines #29

Open
wildintellect opened this issue Dec 4, 2018 · 0 comments
Open

Comply with Python Pep8 guidelines #29

wildintellect opened this issue Dec 4, 2018 · 0 comments

Comments

@wildintellect
Copy link
Collaborator

Ran make pep8 which checks the code against python style guidelines.
Should be easy to fix most of these, not critical as it doesn't break code.

`./literature_mapper.py:24:80: E501 line too long (127 > 79 characters)
./literature_mapper.py:26:80: E501 line too long (80 > 79 characters)
./literature_mapper.py:33:12: E261 at least two spaces before inline comment
./literature_mapper.py:33:13: E262 inline comment should start with '# '
./literature_mapper.py:33:80: E501 line too long (91 > 79 characters)
./literature_mapper.py:35:22: E401 multiple imports on one line
./literature_mapper.py:37:80: E501 line too long (116 > 79 characters)
./literature_mapper.py:41:1: E265 block comment should start with '# '
./literature_mapper.py:43:1: E265 block comment should start with '# '
./literature_mapper.py:44:1: E265 block comment should start with '# '
./literature_mapper.py:46:1: E302 expected 2 blank lines, found 1
./literature_mapper.py:48:1: W293 blank line contains whitespace
./literature_mapper.py:49:5: E265 block comment should start with '# '
./literature_mapper.py:50:6: E114 indentation is not a multiple of four (comment)
./literature_mapper.py:50:6: E116 unexpected indentation (comment)
./literature_mapper.py:52:1: E302 expected 2 blank lines, found 1
./literature_mapper.py:66:47: E262 inline comment should start with '# '
./literature_mapper.py:69:1: W293 blank line contains whitespace
./literature_mapper.py:89:1: W293 blank line contains whitespace
./literature_mapper.py:113:5: E303 too many blank lines (2)
./literature_mapper.py:195:1: W293 blank line contains whitespace
./literature_mapper.py:197:9: E265 block comment should start with '# '
./literature_mapper.py:197:80: E501 line too long (131 > 79 characters)
./literature_mapper.py:198:1: W293 blank line contains whitespace
./literature_mapper.py:200:9: E265 block comment should start with '# '
./literature_mapper.py:200:80: E501 line too long (93 > 79 characters)
./literature_mapper.py:204:9: E265 block comment should start with '# '
./literature_mapper.py:204:80: E501 line too long (97 > 79 characters)
./literature_mapper.py:206:1: W293 blank line contains whitespace
./literature_mapper.py:208:9: E265 block comment should start with '# '
./literature_mapper.py:208:80: E501 line too long (107 > 79 characters)
./literature_mapper.py:209:80: E501 line too long (84 > 79 characters)
./literature_mapper.py:211:9: E265 block comment should start with '# '
./literature_mapper.py:211:80: E501 line too long (117 > 79 characters)
./literature_mapper.py:215:80: E501 line too long (194 > 79 characters)
./literature_mapper.py:215:95: E231 missing whitespace after ','
./literature_mapper.py:215:97: E231 missing whitespace after ','
./literature_mapper.py:215:177: E231 missing whitespace after ','
./literature_mapper.py:216:1: W293 blank line contains whitespace
./literature_mapper.py:217:9: E265 block comment should start with '# '
./literature_mapper.py:220:9: E265 block comment should start with '# '
./literature_mapper.py:220:80: E501 line too long (87 > 79 characters)
./literature_mapper.py:222:80: E501 line too long (103 > 79 characters)
./literature_mapper.py:222:93: E231 missing whitespace after ','
./literature_mapper.py:223:80: E501 line too long (102 > 79 characters)
./literature_mapper.py:223:92: E231 missing whitespace after ','
./literature_mapper.py:224:80: E501 line too long (102 > 79 characters)
./literature_mapper.py:224:92: E231 missing whitespace after ','
./literature_mapper.py:225:80: E501 line too long (102 > 79 characters)
./literature_mapper.py:225:92: E231 missing whitespace after ','
./literature_mapper.py:226:80: E501 line too long (103 > 79 characters)
./literature_mapper.py:226:92: E231 missing whitespace after ','
./literature_mapper.py:237:9: E265 block comment should start with '# '
./literature_mapper.py:238:80: E501 line too long (86 > 79 characters)
./literature_mapper.py:240:13: E265 block comment should start with '# '
./literature_mapper.py:240:80: E501 line too long (87 > 79 characters)
./literature_mapper.py:243:80: E501 line too long (138 > 79 characters)
./literature_mapper.py:244:1: W293 blank line contains whitespace
./literature_mapper.py:245:80: E501 line too long (93 > 79 characters)
./literature_mapper.py:247:80: E501 line too long (123 > 79 characters)
./literature_mapper.py:250:22: E225 missing whitespace around operator
./literature_mapper.py:251:80: E501 line too long (159 > 79 characters)
./literature_mapper.py:252:80: E501 line too long (113 > 79 characters)
./literature_mapper.py:257:80: E501 line too long (86 > 79 characters)
./literature_mapper.py:258:13: E265 block comment should start with '# '
./literature_mapper.py:260:80: E501 line too long (94 > 79 characters)
./literature_mapper.py:263:9: E265 block comment should start with '# '
./literature_mapper.py:263:80: E501 line too long (122 > 79 characters)
./literature_mapper.py:265:1: W293 blank line contains whitespace
./literature_mapper.py:267:9: E265 block comment should start with '# '
./literature_mapper.py:269:80: E501 line too long (102 > 79 characters)
./literature_mapper.py:270:80: E501 line too long (108 > 79 characters)
./literature_mapper.py:271:9: E265 block comment should start with '# '
./literature_mapper.py:271:80: E501 line too long (125 > 79 characters)
./literature_mapper.py:272:9: E265 block comment should start with '# '
./literature_mapper.py:272:80: E501 line too long (132 > 79 characters)
./literature_mapper.py:274:9: E265 block comment should start with '# '
./literature_mapper.py:274:80: E501 line too long (104 > 79 characters)
./literature_mapper.py:275:1: W293 blank line contains whitespace
./literature_mapper.py:281:1: W293 blank line contains whitespace
./literature_mapper.py:282:80: E501 line too long (91 > 79 characters)
./literature_mapper.py:283:80: E501 line too long (103 > 79 characters)
./literature_mapper.py:284:80: E501 line too long (90 > 79 characters)
./literature_mapper.py:285:80: E501 line too long (96 > 79 characters)
./literature_mapper.py:286:80: E501 line too long (102 > 79 characters)
./literature_mapper.py:287:1: W293 blank line contains whitespace
./literature_mapper.py:288:80: E501 line too long (176 > 79 characters)
./literature_mapper.py:288:95: E231 missing whitespace after ','
./literature_mapper.py:288:97: E231 missing whitespace after ','
./literature_mapper.py:289:1: W293 blank line contains whitespace
./literature_mapper.py:290:9: E265 block comment should start with '# '
./literature_mapper.py:290:80: E501 line too long (144 > 79 characters)
./literature_mapper.py:291:9: E265 block comment should start with '# '
./literature_mapper.py:291:80: E501 line too long (126 > 79 characters)
./literature_mapper.py:291:127: W291 trailing whitespace
./literature_mapper.py:292:9: E265 block comment should start with '# '
./literature_mapper.py:292:80: E501 line too long (106 > 79 characters)
./literature_mapper.py:293:1: W293 blank line contains whitespace
./literature_mapper.py:300:80: E501 line too long (182 > 79 characters)
./literature_mapper.py:301:1: W293 blank line contains whitespace
./literature_mapper.py:303:80: E501 line too long (176 > 79 characters)
./literature_mapper.py:303:95: E231 missing whitespace after ','
./literature_mapper.py:303:97: E231 missing whitespace after ','
./literature_mapper.py:307:1: W293 blank line contains whitespace
./literature_mapper.py:311:5: E303 too many blank lines (4)
./literature_mapper.py:318:1: W293 blank line contains whitespace
./literature_mapper.py:321:80: E501 line too long (80 > 79 characters)
./literature_mapper.py:322:48: E241 multiple spaces after ','
./literature_mapper.py:322:80: E501 line too long (81 > 79 characters)
./literature_mapper.py:323:80: E501 line too long (94 > 79 characters)
./literature_mapper.py:327:80: E501 line too long (82 > 79 characters)
./literature_mapper.py:328:80: E501 line too long (82 > 79 characters)
./literature_mapper.py:329:80: E501 line too long (96 > 79 characters)
./literature_mapper.py:333:5: E303 too many blank lines (3)
./literature_mapper.py:337:1: W293 blank line contains whitespace
./literature_mapper.py:345:1: W293 blank line contains whitespace
./literature_mapper.py:347:1: W293 blank line contains whitespace
./literature_mapper.py:348:9: E303 too many blank lines (3)
./literature_mapper.py:350:13: E265 block comment should start with '# '
./literature_mapper.py:350:80: E501 line too long (105 > 79 characters)
./literature_mapper.py:350:106: W291 trailing whitespace
./literature_mapper.py:353:80: E501 line too long (152 > 79 characters)
./literature_mapper.py:354:80: E501 line too long (80 > 79 characters)
./literature_mapper.py:357:1: W293 blank line contains whitespace
./literature_mapper.py:358:13: E265 block comment should start with '# '
./literature_mapper.py:360:58: W291 trailing whitespace
./literature_mapper.py:361:80: E501 line too long (81 > 79 characters)
./literature_mapper.py:362:17: E265 block comment should start with '# '
./literature_mapper.py:364:1: W293 blank line contains whitespace
./literature_mapper.py:365:1: W293 blank line contains whitespace
./literature_mapper.py:366:13: E303 too many blank lines (2)
./literature_mapper.py:369:1: W293 blank line contains whitespace
./literature_mapper.py:370:80: E501 line too long (134 > 79 characters)
./literature_mapper.py:373:1: W293 blank line contains whitespace
./literature_mapper.py:374:13: E265 block comment should start with '# '
./literature_mapper.py:378:1: W293 blank line contains whitespace
./literature_mapper.py:379:13: E265 block comment should start with '# '
./literature_mapper.py:380:80: E501 line too long (96 > 79 characters)
./literature_mapper.py:381:80: E501 line too long (108 > 79 characters)
./literature_mapper.py:382:80: E501 line too long (96 > 79 characters)
./literature_mapper.py:383:1: W293 blank line contains whitespace
./literature_mapper.py:384:13: E265 block comment should start with '# '
./literature_mapper.py:384:80: E501 line too long (82 > 79 characters)
./literature_mapper.py:386:13: E265 block comment should start with '# '
./literature_mapper.py:386:47: W291 trailing whitespace
./literature_mapper.py:387:47: W291 trailing whitespace
./literature_mapper.py:389:13: E265 block comment should start with '# '
./literature_mapper.py:392:80: E501 line too long (109 > 79 characters)
./literature_mapper.py:395:36: E226 missing whitespace around arithmetic operator
./literature_mapper.py:395:41: E226 missing whitespace around arithmetic operator
./literature_mapper.py:396:40: E226 missing whitespace around arithmetic operator
./literature_mapper.py:397:31: E226 missing whitespace around arithmetic operator
./literature_mapper.py:398:80: E501 line too long (103 > 79 characters)
./literature_mapper.py:399:46: E226 missing whitespace around arithmetic operator
./literature_mapper.py:401:1: W293 blank line contains whitespace
./literature_mapper.py:402:13: E265 block comment should start with '# '
./literature_mapper.py:402:80: E501 line too long (99 > 79 characters)
./literature_mapper.py:404:34: W291 trailing whitespace
./literature_mapper.py:408:25: E265 block comment should start with '# '
./literature_mapper.py:410:13: E265 block comment should start with '# '
./literature_mapper.py:411:13: E265 block comment should start with '# '
./literature_mapper.py:411:80: E501 line too long (115 > 79 characters)
./literature_mapper.py:412:38: E251 unexpected spaces around keyword / parameter equals
./literature_mapper.py:412:40: E251 unexpected spaces around keyword / parameter equals
./literature_mapper.py:413:80: E501 line too long (80 > 79 characters)
./literature_mapper.py:416:1: W293 blank line contains whitespace
./literature_mapper.py:417:13: E265 block comment should start with '# '
./literature_mapper.py:417:80: E501 line too long (105 > 79 characters)
./literature_mapper.py:419:17: E265 block comment should start with '# '
./literature_mapper.py:419:80: E501 line too long (81 > 79 characters)
./literature_mapper.py:420:17: E265 block comment should start with '# '
./literature_mapper.py:422:1: W293 blank line contains whitespace
./literature_mapper.py:423:17: E265 block comment should start with '# '
./literature_mapper.py:425:80: E501 line too long (83 > 79 characters)
./literature_mapper.py:426:1: W293 blank line contains whitespace
./literature_mapper.py:427:17: E265 block comment should start with '# '
./literature_mapper.py:428:80: E501 line too long (102 > 79 characters)
./literature_mapper.py:430:1: W293 blank line contains whitespace
./literature_mapper.py:433:80: E501 line too long (83 > 79 characters)
./literature_mapper.py:434:37: E241 multiple spaces after ','
./literature_mapper.py:439:47: E261 at least two spaces before inline comment
./literature_mapper.py:439:80: E501 line too long (105 > 79 characters)
./literature_mapper.py:440:1: W293 blank line contains whitespace
./literature_mapper.py:441:17: E265 block comment should start with '# '
./literature_mapper.py:442:80: E501 line too long (117 > 79 characters)
./literature_mapper.py:446:80: E501 line too long (88 > 79 characters)
./literature_mapper.py:447:37: E241 multiple spaces after ','
./literature_mapper.py:452:52: E261 at least two spaces before inline comment
./literature_mapper.py:452:80: E501 line too long (110 > 79 characters)
./literature_mapper.py:453:1: W293 blank line contains whitespace
./literature_mapper.py:455:21: E265 block comment should start with '# '
./literature_mapper.py:463:1: W293 blank line contains whitespace
./literature_mapper.py:465:80: E501 line too long (146 > 79 characters)
./literature_mapper.py:473:1: W293 blank line contains whitespace
./literature_mapper.py:476:80: E501 line too long (97 > 79 characters)
./literature_mapper.py:477:1: W293 blank line contains whitespace
./literature_mapper.py:481:1: W293 blank line contains whitespace
./literature_mapper.py:482:80: E501 line too long (85 > 79 characters)
./literature_mapper.py:485:1: W293 blank line contains whitespace
./literature_mapper.py:487:80: E501 line too long (111 > 79 characters)
./literature_mapper.py:491:80: E501 line too long (90 > 79 characters)
./literature_mapper.py:491:88: E226 missing whitespace around arithmetic operator
./literature_mapper.py:493:62: E226 missing whitespace around arithmetic operator
./literature_mapper.py:493:80: E501 line too long (82 > 79 characters)
./literature_mapper.py:494:29: E265 block comment should start with '# '
./literature_mapper.py:494:80: E501 line too long (114 > 79 characters)
./literature_mapper.py:496:80: E501 line too long (90 > 79 characters)
./literature_mapper.py:496:86: E231 missing whitespace after ','
./literature_mapper.py:497:80: E501 line too long (106 > 79 characters)
./literature_mapper.py:501:29: E265 block comment should start with '# '
./literature_mapper.py:502:29: E265 block comment should start with '# '
./literature_mapper.py:503:80: E501 line too long (115 > 79 characters)
./literature_mapper.py:504:1: W293 blank line contains whitespace
./literature_mapper.py:505:80: E501 line too long (155 > 79 characters)
./literature_mapper.py:506:68: E226 missing whitespace around arithmetic operator
./literature_mapper.py:506:80: E501 line too long (91 > 79 characters)
./literature_mapper.py:506:88: E226 missing whitespace around arithmetic operator
./literature_mapper.py:507:29: E265 block comment should start with '# '
./literature_mapper.py:507:80: E501 line too long (171 > 79 characters)
./literature_mapper.py:508:80: E501 line too long (106 > 79 characters)
./literature_mapper.py:509:29: E265 block comment should start with '# '
./literature_mapper.py:510:30: E225 missing whitespace around operator
./literature_mapper.py:510:42: E201 whitespace after '('
./literature_mapper.py:510:47: E202 whitespace before ')'
./literature_mapper.py:512:29: E265 block comment should start with '# '
./literature_mapper.py:513:44: E201 whitespace after '('
./literature_mapper.py:513:49: E202 whitespace before ')'
./literature_mapper.py:515:1: W293 blank line contains whitespace
./literature_mapper.py:516:46: E226 missing whitespace around arithmetic operator
./literature_mapper.py:516:58: E226 missing whitespace around arithmetic operator
./literature_mapper.py:517:80: E501 line too long (116 > 79 characters)
./literature_mapper.py:518:1: W293 blank line contains whitespace
./literature_mapper.py:519:29: E265 block comment should start with '# '
./literature_mapper.py:519:80: E501 line too long (119 > 79 characters)
./literature_mapper.py:521:29: E265 block comment should start with '# '
./literature_mapper.py:521:80: E501 line too long (92 > 79 characters)
./literature_mapper.py:522:80: E501 line too long (97 > 79 characters)
./literature_mapper.py:523:29: E265 block comment should start with '# '
./literature_mapper.py:524:80: E501 line too long (106 > 79 characters)
./literature_mapper.py:532:1: W293 blank line contains whitespace
./literature_mapper.py:534:1: W293 blank line contains whitespace
./literature_mapper.py:535:17: E303 too many blank lines (3)
./literature_mapper.py:535:80: E501 line too long (91 > 79 characters)
./literature_mapper.py:536:17: E265 block comment should start with '# '
./literature_mapper.py:537:1: W293 blank line contains whitespace
./literature_mapper.py:538:80: E501 line too long (82 > 79 characters)
./literature_mapper.py:541:1: W293 blank line contains whitespace
./literature_mapper.py:543:80: E501 line too long (382 > 79 characters)
./literature_mapper.py:544:80: E501 line too long (134 > 79 characters)
./literature_mapper.py:546:1: W293 blank line contains whitespace
./literature_mapper.py:548:80: E501 line too long (120 > 79 characters)
./literature_mapper.py:549:80: E501 line too long (153 > 79 characters)
./literature_mapper.py:551:1: W293 blank line contains whitespace
./literature_mapper.py:552:1: W293 blank line contains whitespace
./literature_mapper.py:553:13: E303 too many blank lines (2)
./literature_mapper.py:554:80: E501 line too long (127 > 79 characters)
./literature_mapper.py:556:1: W391 blank line at end of file
./literature_mapper_dialog.py:28:1: E265 block comment should start with '# '
./literature_mapper_dialog.py:33:80: E501 line too long (99 > 79 characters)
./literature_mapper_dialog.py:34:1: W293 blank line contains whitespace
./literature_mapper_dialog.py:35:1: E302 expected 2 blank lines, found 1
./literature_mapper_dialog.py:46:1: E302 expected 2 blank lines, found 1
./resources_rc.py:145:1: E302 expected 2 blank lines, found 1
./resources_rc.py:146:80: E501 line too long (101 > 79 characters)
./resources_rc.py:148:1: E302 expected 2 blank lines, found 1
./resources_rc.py:149:80: E501 line too long (103 > 79 characters)
./settings_local.py:11:36: W292 no newline at end of file
./test/init.py:2:46: W292 no newline at end of file
./test/qgis_interface.py:26:1: E402 module level import not at top of file
./test/qgis_interface.py:27:1: E402 module level import not at top of file
./test/qgis_interface.py:28:1: E402 module level import not at top of file
./test/qgis_interface.py:29:1: E402 module level import not at top of file
./test/qgis_interface.py:33:1: E265 block comment should start with '# '
./test/qgis_interface.py:70:9: E265 block comment should start with '# '
./test/qgis_interface.py:71:9: E265 block comment should start with '# '
./test/qgis_interface.py:72:9: E265 block comment should start with '# '
./test/qgis_interface.py:81:9: E265 block comment should start with '# '
./test/test_init.py:11:1: E402 module level import not at top of file
./test/test_init.py:12:1: E402 module level import not at top of file
./test/test_init.py:13:1: E402 module level import not at top of file
./test/test_init.py:14:1: E402 module level import not at top of file
./test/test_literature_mapper_dialog.py:15:1: E402 module level import not at top of file
./test/test_literature_mapper_dialog.py:17:1: E402 module level import not at top of file
./test/test_literature_mapper_dialog.py:19:1: E402 module level import not at top of file
./test/test_literature_mapper_dialog.py:21:1: E402 module level import not at top of file
./test/test_literature_mapper_dialog.py:55:1: W391 blank line at end of file
./test/test_qgis_environment.py:16:1: E402 module level import not at top of file
./test/test_qgis_environment.py:17:1: E402 module level import not at top of file
./test/test_qgis_environment.py:18:1: E402 module level import not at top of file
./test/test_qgis_environment.py:23:1: E402 module level import not at top of file
./test/test_resources.py:15:1: E402 module level import not at top of file
./test/test_resources.py:17:1: E402 module level import not at top of file
./test/test_resources.py:21:1: E303 too many blank lines (3)
./test/test_resources.py:44:1: W391 blank line at end of file
./test/test_translations.py:16:1: E402 module level import not at top of file
./test/test_translations.py:17:1: E402 module level import not at top of file
./test/test_translations.py:19:1: E402 module level import not at top of file
./test/utilities.py:37:9: E265 block comment should start with '# '
./test/utilities.py:46:9: E265 block comment should start with '# '
./test/utilities.py:51:9: E265 block comment should start with '# '
./test/utilities.py:58:9: E265 block comment should start with '# '

Ignored in PEP8 check:
pydev,resources.py,conf.py,third_party,ui
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant