PrestonStringham / DATA515-MusicGeneration

MIT License
3 stars 0 forks source link

Flake8 Issues #8

Open carljparker opened 3 years ago

carljparker commented 3 years ago

When I run flake8 from the top of the repo, I get the following **72** errors.

None of these look as though they are difficult to fix . . . but there are a bunch of them . . . :-P

./tests/emg-import-test.py:3:7: E201 whitespace after '('
./tests/emg-import-test.py:3:23: E202 whitespace before ')'
./tests/emg-import-test.py:7:1: W391 blank line at end of file
./easy_music_generator/__version.py:4:1: W391 blank line at end of file
./easy_music_generator/easy_music_generator.py:5:1: E302 expected 2 blank lines, found 1
./easy_music_generator/easy_music_generator.py:15:9: F841 local variable 'scores_parsed' is assigned to but never used
./easy_music_generator/easy_music_generator.py:19:76: W291 trailing whitespace
./easy_music_generator/easy_music_generator.py:20:9: E265 block comment should start with '# '
./easy_music_generator/easy_music_generator.py:21:1: W293 blank line contains whitespace
./easy_music_generator/easy_music_generator.py:27:1: W293 blank line contains whitespace
./easy_music_generator/easy_music_generator.py:30:80: E501 line too long (254 > 79 characters)
./easy_music_generator/easy_music_generator.py:34:14: E211 whitespace before '('
./easy_music_generator/pregenerator.py:3:1: E302 expected 2 blank lines, found 1
./easy_music_generator/pregenerator.py:19:13: E265 block comment should start with '# '
./easy_music_generator/pregenerator.py:37:80: E501 line too long (101 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:4:1: E302 expected 2 blank lines, found 1
./easy_music_generator/preprocessor/chord_distribution.py:16:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/chord_distribution.py:20:80: E501 line too long (114 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:21:80: E501 line too long (90 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:22:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/chord_distribution.py:22:80: E501 line too long (88 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:23:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/chord_distribution.py:23:80: E501 line too long (80 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:29:25: E265 block comment should start with '# '
./easy_music_generator/preprocessor/chord_distribution.py:29:80: E501 line too long (112 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:30:25: E265 block comment should start with '# '
./easy_music_generator/preprocessor/chord_distribution.py:31:80: E501 line too long (118 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:32:80: E501 line too long (122 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:33:80: E501 line too long (98 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:37:9: E265 block comment should start with '# '
./easy_music_generator/preprocessor/chord_distribution.py:37:80: E501 line too long (105 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:49:80: E501 line too long (90 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:65:80: E501 line too long (82 > 79 characters)
./easy_music_generator/preprocessor/chord_distribution.py:66:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/chord_distribution.py:82:1: E302 expected 2 blank lines, found 1
./easy_music_generator/preprocessor/chord_distribution.py:83:80: E501 line too long (97 > 79 characters)
./easy_music_generator/preprocessor/note_distribution.py:5:1: E402 module level import not at top of file
./easy_music_generator/preprocessor/note_distribution.py:5:1: F401 'matplotlib.pyplot as plt' imported but unused
./easy_music_generator/preprocessor/note_distribution.py:7:1: E302 expected 2 blank lines, found 1
./easy_music_generator/preprocessor/note_distribution.py:14:9: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:17:9: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:19:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:20:13: F841 local variable 'part_stream' is assigned to but never used
./easy_music_generator/preprocessor/note_distribution.py:22:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:25:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:27:17: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:28:80: E501 line too long (104 > 79 characters)
./easy_music_generator/preprocessor/note_distribution.py:30:17: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:30:80: E501 line too long (86 > 79 characters)
./easy_music_generator/preprocessor/note_distribution.py:31:54: E221 multiple spaces before operator
./easy_music_generator/preprocessor/note_distribution.py:31:80: E501 line too long (83 > 79 characters)
./easy_music_generator/preprocessor/note_distribution.py:33:17: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:44:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:49:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:50:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:55:80: E501 line too long (80 > 79 characters)
./easy_music_generator/preprocessor/note_distribution.py:61:9: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:64:9: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:68:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:68:80: E501 line too long (89 > 79 characters)
./easy_music_generator/preprocessor/note_distribution.py:70:13: E265 block comment should start with '# '
./easy_music_generator/preprocessor/note_distribution.py:73:17: E117 over-indented
./easy_music_generator/preprocessor/note_distribution.py:86:1: E302 expected 2 blank lines, found 1
./easy_music_generator/preprocessor/note_distribution.py:87:80: E501 line too long (96 > 79 characters)
./easy_music_generator/preprocessor/__init__.py:1:1: F403 'from preprocessor.note_distribution import *' used; unable to detect undefined names
./easy_music_generator/preprocessor/__init__.py:1:1: F401 'preprocessor.note_distribution.*' imported but unused
./easy_music_generator/preprocessor/__init__.py:2:1: F403 'from preprocessor.chord_distribution import *' used; unable to detect undefined names
./easy_music_generator/preprocessor/__init__.py:2:1: F401 'preprocessor.chord_distribution.*' imported but unused
./easy_music_generator/preprocessor/preprocessor.py:6:1: E302 expected 2 blank lines, found 1
./easy_music_generator/preprocessor/preprocessor.py:12:9: E265 block comment should start with '# '
./easy_music_generator/preprocessor/preprocessor.py:16:9: E265 block comment should start with '# '
./easy_music_generator/preprocessor/preprocessor.py:37:80: E501 line too long (116 > 79 characters)
christiegan commented 3 years ago

I believe I removed all the flake8 errors for the preprocessor.py and note_distribution.py files. Mostly were all spacing fixes. One major change was having to comment out the import matplotlib statement because flake8 didn't see where it was being used; so if we end up doing any visuals we can uncomment this out