rdemaria / pysixtrack

Reference sixtrack tracking engine in pure python
Apache License 2.0
1 stars 12 forks source link

Merge spacecharge #23

Closed giadarol closed 5 years ago

pep8speaks commented 5 years ago

Hello @giadarol! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 36:66: W291 trailing whitespace

Line 5:5: E271 multiple spaces after keyword Line 15:20: E225 missing whitespace around operator Line 15:25: W291 trailing whitespace Line 16:7: E225 missing whitespace around operator Line 17:7: E225 missing whitespace around operator Line 18:10: E225 missing whitespace around operator Line 22:16: E261 at least two spaces before inline comment Line 22:17: E262 inline comment should start with '# ' Line 27:17: E225 missing whitespace around operator Line 28:17: E225 missing whitespace around operator Line 29:9: E225 missing whitespace around operator Line 29:15: W291 trailing whitespace Line 35:72: W291 trailing whitespace Line 36:80: E501 line too long (88 > 79 characters) Line 39:19: E228 missing whitespace around modulo operator Line 40:80: E501 line too long (81 > 79 characters) Line 46:67: W291 trailing whitespace Line 49:80: E501 line too long (109 > 79 characters) Line 52:80: E501 line too long (89 > 79 characters) Line 53:80: E501 line too long (81 > 79 characters) Line 57:5: E128 continuation line under-indented for visual indent Line 57:58: W291 trailing whitespace Line 58:5: E128 continuation line under-indented for visual indent Line 69:78: W291 trailing whitespace Line 70:4: E128 continuation line under-indented for visual indent Line 74:4: E111 indentation is not a multiple of four Line 78:4: E111 indentation is not a multiple of four Line 84:1: E402 module level import not at top of file Line 89:43: E231 missing whitespace after ',' Line 89:63: E231 missing whitespace after ',' Line 95:37: E231 missing whitespace after ',' Line 98:26: E701 multiple statements on one line (colon) Line 98:80: E501 line too long (80 > 79 characters) Line 99:18: E231 missing whitespace after ',' Line 100:18: E231 missing whitespace after ','

Line 21:21: E261 at least two spaces before inline comment Line 22:36: E261 at least two spaces before inline comment Line 32:80: E501 line too long (82 > 79 characters) Line 74:80: E501 line too long (86 > 79 characters) Line 75:80: E501 line too long (94 > 79 characters) Line 83:80: E501 line too long (107 > 79 characters) Line 84:80: E501 line too long (107 > 79 characters) Line 91:1: W391 blank line at end of file

Line 4:1: E402 module level import not at top of file Line 5:1: E402 module level import not at top of file Line 6:1: E402 module level import not at top of file Line 7:1: E402 module level import not at top of file Line 8:1: E402 module level import not at top of file Line 9:1: E402 module level import not at top of file Line 10:1: E402 module level import not at top of file Line 30:21: E261 at least two spaces before inline comment Line 31:36: E261 at least two spaces before inline comment Line 34:80: E501 line too long (82 > 79 characters) Line 35:80: E501 line too long (85 > 79 characters) Line 74:32: E231 missing whitespace after ',' Line 76:65: E251 unexpected spaces around keyword / parameter equals Line 76:67: E251 unexpected spaces around keyword / parameter equals Line 82:32: E231 missing whitespace after ',' Line 84:61: E251 unexpected spaces around keyword / parameter equals Line 84:63: E251 unexpected spaces around keyword / parameter equals Line 88:16: E231 missing whitespace after ',' Line 89:16: E231 missing whitespace after ',' Line 91:1: W391 blank line at end of file

Line 26:6: E127 continuation line over-indented for visual indent Line 27:6: E127 continuation line over-indented for visual indent Line 31:1: E303 too many blank lines (3) Line 33:80: E501 line too long (86 > 79 characters)

Line 5:1: E265 block comment should start with '# ' Line 7:1: E302 expected 2 blank lines, found 1 Line 8:39: E231 missing whitespace after ',' Line 8:80: E501 line too long (150 > 79 characters) Line 8:83: E231 missing whitespace after ',' Line 8:89: E231 missing whitespace after ',' Line 8:130: E231 missing whitespace after ',' Line 8:140: E231 missing whitespace after ',' Line 10:1: E302 expected 2 blank lines, found 1 Line 11:25: E231 missing whitespace after ',' Line 11:55: E231 missing whitespace after ',' Line 11:61: E231 missing whitespace after ',' Line 11:80: E501 line too long (106 > 79 characters) Line 11:94: E231 missing whitespace after ',' Line 11:100: E231 missing whitespace after ',' Line 14:80: E501 line too long (81 > 79 characters) Line 30:15: E231 missing whitespace after ',' Line 30:19: E231 missing whitespace after ',' Line 30:36: E231 missing whitespace after ',' Line 30:41: E231 missing whitespace after ',' Line 31:14: E231 missing whitespace after ',' Line 31:18: E231 missing whitespace after ',' Line 31:35: E231 missing whitespace after ',' Line 32:14: E231 missing whitespace after ',' Line 32:17: E231 missing whitespace after ',' Line 32:34: E231 missing whitespace after ',' Line 33:15: E231 missing whitespace after ',' Line 33:18: E231 missing whitespace after ',' Line 33:35: E231 missing whitespace after ',' Line 35:5: E265 block comment should start with '# ' Line 36:28: E231 missing whitespace after ',' Line 36:31: E231 missing whitespace after ',' Line 36:34: E231 missing whitespace after ',' Line 37:5: E265 block comment should start with '# ' Line 38:37: E231 missing whitespace after ',' Line 38:40: E231 missing whitespace after ',' Line 38:42: E231 missing whitespace after ',' Line 39:50: E231 missing whitespace after ',' Line 41:5: E265 block comment should start with '# ' Line 42:23: E231 missing whitespace after ',' Line 42:25: E231 missing whitespace after ',' Line 43:35: E231 missing whitespace after ',' Line 43:37: E231 missing whitespace after ',' Line 44:35: E231 missing whitespace after ',' Line 44:37: E231 missing whitespace after ',' Line 46:66: E231 missing whitespace after ',' Line 46:80: E231 missing whitespace after ',' Line 46:80: E501 line too long (123 > 79 characters) Line 46:100: E231 missing whitespace after ',' Line 54:26: E231 missing whitespace after ',' Line 54:28: E231 missing whitespace after ',' Line 68:1: E302 expected 2 blank lines, found 1 Line 69:42: E231 missing whitespace after ',' Line 69:44: E231 missing whitespace after ',' Line 69:47: E231 missing whitespace after ',' Line 69:50: E231 missing whitespace after ',' Line 69:59: E231 missing whitespace after ',' Line 71:31: E231 missing whitespace after ',' Line 72:31: E231 missing whitespace after ',' Line 72:36: W292 no newline at end of file

Line 12:48: W291 trailing whitespace Line 15:34: E231 missing whitespace after ',' Line 42:80: E501 line too long (92 > 79 characters) Line 55:6: E111 indentation is not a multiple of four Line 55:6: E117 over-indented Line 56:52: W291 trailing whitespace Line 57:49: W291 trailing whitespace Line 60:34: E231 missing whitespace after ',' Line 64:6: E111 indentation is not a multiple of four Line 69:6: E111 indentation is not a multiple of four Line 92:80: E501 line too long (92 > 79 characters) Line 96:80: E501 line too long (84 > 79 characters) Line 97:37: E127 continuation line over-indented for visual indent Line 97:80: E501 line too long (93 > 79 characters)

Line 8:1: E302 expected 2 blank lines, found 1 Line 12:64: W291 trailing whitespace Line 13:9: E128 continuation line under-indented for visual indent Line 14:1: W293 blank line contains whitespace Line 16:1: W293 blank line contains whitespace Line 18:1: W293 blank line contains whitespace Line 26:13: E128 continuation line under-indented for visual indent Line 29:13: E128 continuation line under-indented for visual indent Line 36:1: W293 blank line contains whitespace Line 42:80: E501 line too long (88 > 79 characters) Line 44:9: E265 block comment should start with '# ' Line 45:1: W293 blank line contains whitespace Line 49:52: W291 trailing whitespace Line 54:1: W293 blank line contains whitespace Line 58:1: W293 blank line contains whitespace Line 69:80: E501 line too long (85 > 79 characters) Line 70:9: E128 continuation line under-indented for visual indent Line 71:1: W293 blank line contains whitespace Line 72:71: W291 trailing whitespace Line 73:13: E128 continuation line under-indented for visual indent Line 75:73: W291 trailing whitespace Line 76:13: E128 continuation line under-indented for visual indent Line 79:1: W293 blank line contains whitespace Line 83:1: E302 expected 2 blank lines, found 1 Line 101:9: E128 continuation line under-indented for visual indent Line 102:80: E501 line too long (80 > 79 characters) Line 104:9: E131 continuation line unaligned for hanging indent Line 107:1: W293 blank line contains whitespace Line 192:80: E501 line too long (82 > 79 characters) Line 196:24: E712 comparison to False should be 'if cond is False:' or 'if not cond:' Line 249:28: E231 missing whitespace after ',' Line 249:43: E231 missing whitespace after ',' Line 254:28: E225 missing whitespace around operator Line 258:80: E501 line too long (83 > 79 characters) Line 263:22: E231 missing whitespace after ':' Line 263:37: E231 missing whitespace after ':' Line 266:65: W291 trailing whitespace Line 278:51: W291 trailing whitespace Line 279:32: E231 missing whitespace after ':' Line 279:45: E231 missing whitespace after ':' Line 285:5: E128 continuation line under-indented for visual indent Line 285:58: W291 trailing whitespace Line 286:5: E125 continuation line with same indent as next logical line Line 286:5: E128 continuation line under-indented for visual indent Line 291:1: W293 blank line contains whitespace Line 301:19: E225 missing whitespace around operator Line 304:80: E501 line too long (83 > 79 characters) Line 305:28: E225 missing whitespace around operator Line 306:27: E225 missing whitespace around operator

Line 129:33: E251 unexpected spaces around keyword / parameter equals Line 129:35: E251 unexpected spaces around keyword / parameter equals Line 129:40: W291 trailing whitespace Line 130:28: E251 unexpected spaces around keyword / parameter equals Line 130:30: E251 unexpected spaces around keyword / parameter equals Line 131:28: E251 unexpected spaces around keyword / parameter equals Line 131:30: E251 unexpected spaces around keyword / parameter equals Line 132:27: E251 unexpected spaces around keyword / parameter equals Line 132:29: E251 unexpected spaces around keyword / parameter equals Line 133:28: E251 unexpected spaces around keyword / parameter equals Line 133:30: E251 unexpected spaces around keyword / parameter equals Line 133:34: W291 trailing whitespace Line 134:28: E251 unexpected spaces around keyword / parameter equals Line 134:30: E251 unexpected spaces around keyword / parameter equals Line 138:40: E251 unexpected spaces around keyword / parameter equals Line 138:42: E251 unexpected spaces around keyword / parameter equals Line 139:36: E251 unexpected spaces around keyword / parameter equals Line 139:38: E251 unexpected spaces around keyword / parameter equals Line 140:28: E251 unexpected spaces around keyword / parameter equals Line 140:30: E251 unexpected spaces around keyword / parameter equals Line 140:34: W291 trailing whitespace Line 141:28: E251 unexpected spaces around keyword / parameter equals Line 141:30: E251 unexpected spaces around keyword / parameter equals Line 142:27: E251 unexpected spaces around keyword / parameter equals Line 142:29: E251 unexpected spaces around keyword / parameter equals Line 143:28: E251 unexpected spaces around keyword / parameter equals Line 143:30: E251 unexpected spaces around keyword / parameter equals Line 144:28: E251 unexpected spaces around keyword / parameter equals Line 144:30: E251 unexpected spaces around keyword / parameter equals Line 145:18: W291 trailing whitespace Line 146:18: W291 trailing whitespace Line 174:1: W293 blank line contains whitespace Line 175:35: W291 trailing whitespace Line 177:1: W293 blank line contains whitespace Line 180:80: E501 line too long (80 > 79 characters) Line 180:81: W291 trailing whitespace Line 188:32: W291 trailing whitespace Line 189:1: W293 blank line contains whitespace Line 237:1: W293 blank line contains whitespace Line 242:1: W293 blank line contains whitespace