Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Enforce PEP8 conventions #13

Open
dmuhs opened this issue Feb 6, 2015 · 0 comments
Open

Enforce PEP8 conventions #13

dmuhs opened this issue Feb 6, 2015 · 0 comments

Comments

@dmuhs
Copy link

dmuhs commented Feb 6, 2015

Problem

There are plenty of cases where direct mistakes against the PEP8 naming convention. As for the specific syntax requirements of Django, convention E501 (maximum line length) can be neglected.

Logs

A check with the pep8 tool run inside the project directory yields the following output:
Command: pep8 --ignore=E501 .
Output:

./CManagement/CManagement/settings.py:23:19: W291 trailing whitespace
./CManagement/CManagement/settings.py:58:5: E122 continuation line missing indentation or outdented
./CManagement/CManagement/settings.py:90:22: W292 no newline at end of file
./CManagement/CManagement/urls.py:12:1: E124 closing bracket does not match visual indentation
./CManagement/course_manager/admin.py:13:33: W292 no newline at end of file
./CManagement/course_manager/urls.py:104:2: W292 no newline at end of file
./CManagement/course_manager/models/Appointment.py:81:28: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/models/Appointment.py:81:33: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/models/Appointment.py:81:45: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/models/Appointment.py:81:51: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/models/Appointment.py:121:5: E303 too many blank lines (2)
./CManagement/course_manager/models/Appointment.py:166:20: W292 no newline at end of file
./CManagement/course_manager/models/Management.py:16:32: W292 no newline at end of file
./CManagement/course_manager/models/UserManagement.py:163:47: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/models/UserManagement.py:214:44: W292 no newline at end of file
./CManagement/course_manager/models/__init__.py:12:64: W292 no newline at end of file
./CManagement/course_manager/models/Users/Executive.py:27:50: W292 no newline at end of file
./CManagement/course_manager/models/Users/Organizer.py:32:50: W292 no newline at end of file
./CManagement/course_manager/models/Users/Tutor.py:36:46: W292 no newline at end of file
./CManagement/course_manager/models/Users/User.py:37:33: W292 no newline at end of file
./CManagement/course_manager/views/View_Login.py:194:69: W292 no newline at end of file
./CManagement/course_manager/views/View_Organizer.py:1364:23: E261 at least two spaces before inline comment
./CManagement/course_manager/views/View_Organizer.py:1364:24: E262 inline comment should start with '# '
./CManagement/course_manager/views/View_Organizer.py:1489:44: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Organizer.py:1489:58: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Organizer.py:1567:74: W292 no newline at end of file
./CManagement/course_manager/views/View_Organizer_Email.py:100:27: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Organizer_Email.py:100:49: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Organizer_Email.py:100:56: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Organizer_Email.py:205:27: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Organizer_Email.py:205:49: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Organizer_Email.py:205:64: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Organizer_Email.py:228:96: W292 no newline at end of file
./CManagement/course_manager/views/View_Participants.py:224:21: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Participants.py:287:26: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Participants.py:292:43: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Participants.py:292:79: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Participants.py:470:43: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Participants.py:533:72: W292 no newline at end of file
./CManagement/course_manager/views/View_Tutor.py:440:74: W292 no newline at end of file
./CManagement/course_manager/views/View_Tutor_Email.py:177:27: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Tutor_Email.py:177:49: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Tutor_Email.py:177:56: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Tutor_Email.py:240:27: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Tutor_Email.py:240:49: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Tutor_Email.py:240:64: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/views/View_Tutor_Email.py:267:95: W292 no newline at end of file
./CManagement/course_manager/views/View_password.py:185:1: W391 blank line at end of file
./CManagement/course_manager/testFiles/Test_Appointment.py:39:37: E127 continuation line over-indented for visual indent
./CManagement/course_manager/testFiles/Test_Appointment.py:112:5: E303 too many blank lines (2)
./CManagement/course_manager/testFiles/Test_Appointment.py:163:5: E303 too many blank lines (3)
./CManagement/course_manager/testFiles/Test_Course.py:33:77: W292 no newline at end of file
./CManagement/course_manager/testFiles/Test_CourseManagement.py:6:9: W292 no newline at end of file
./CManagement/course_manager/testFiles/Test_UserManagement.py:51:52: W292 no newline at end of file
./CManagement/course_manager/testFiles/Test_View_Participant.py:99:1: W391 blank line at end of file
./CManagement/course_manager/testFiles/Test_Users/Test_Organizer.py:74:1: W391 blank line at end of file
./CManagement/course_manager/testFiles/Test_Users/Test_Participant.py:68:69: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/testFiles/Test_Users/Test_Participant.py:70:69: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/testFiles/Test_Users/Test_Participant.py:72:69: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/testFiles/Test_Users/Test_Participant.py:74:69: E226 missing whitespace around arithmetic operator
./CManagement/course_manager/testFiles/Test_Users/Test_Participant.py:78:1: W391 blank line at end of file
./CManagement/course_manager/testFiles/Test_Users/Test_Tutor.py:82:88: W292 no newline at end of file

The often whitespace-related errors are trivial to fix, however mistakes like E127 and E262 affect readability and can easily be fixed and avoided in the future.

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

No branches or pull requests

1 participant