Created
September 24, 2017 16:51
-
-
Save gurpreetsingh00885/ea5c3ee54c7ac24e08f6d7c1ffe805b1 to your computer and use it in GitHub Desktop.
Ran coala on one of my projects. Here's the whole output...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please enter a value for the setting "use_spaces" (True if spaces are to be used instead of tabs.) needed by SpaceConsistencyBear for section "cli": | |
True | |
Executing section cli... | |
evaluator/admin.py | |
[ 5] | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/admin.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/admin.py | |
[ 5] | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/templatetags/evaluator_filters.py | |
[ 5] | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/templatetags/evaluator_filters.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/templatetags/evaluator_filters.py | |
[ 5] | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 4 | |
[ ] All actions have been applied | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 4 | |
**** PEP8Bear [Section: cli] **** | |
**** Action Applied: ShowAppliedPatchesAction **** | |
! ! [Severity: NORMAL] | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/templatetags/evaluator_filters.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/templatetags/evaluator_filters.py | |
[ 5] | |
************** | |
[ ] All actions have been applied | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/templatetags/evaluator_filters.py | |
[ 8] » return·value[number-1].statement | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/templatetags/evaluator_filters.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/templatetags/evaluator_filters.py | |
[ 9] return value[number-1].statement | |
[ 9] return value[number-1].statement | |
[ 10] | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/templatetags/evaluator_filters.py | |
[ 8] » return·value[number-1].statement | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/templatetags/evaluator_filters.py | |
[ 12] » return·random.choice(["#FFCA28",·"#2196F3",·"#ASAAAE",·"#6DD8D1F",·"#9CCC65",·"#EC407A",·"#666666"]) | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/templatetags/evaluator_filters.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/templatetags/evaluator_filters.py | |
[ 14] return random.choice(["#FFCA28", "#2196F3", "#ASAAAE", "#6DD8D1F", "#9CCC65", "#EC407A", "#666666"]) | |
[ 14] return random.choice(["#FFCA28", "#2196F3", "#ASAAAE", "#6DD8D1F", "#9CCC65", "#EC407A", "#666666"]) | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/templatetags/evaluator_filters.py | |
[ 12] » return·random.choice(["#FFCA28",·"#2196F3",·"#ASAAAE",·"#6DD8D1F",·"#9CCC65",·"#EC407A",·"#666666"]) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - No newline at EOF. | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Print (M)ore info | |
[ ] 3. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 4] | |
[ 5] class·Question(models.Model): | |
[ 6] » statement·=·models.CharField(blank=False,·max_length=1000) | |
[ 7] » answer·=·models.CharField(blank=False,·max_length=1000) | |
[ 8] » marks·=·models.IntegerField(blank=False) | |
[ 9] » | |
[ 10] » def·__str__(self): | |
[ 11] » » return·self.statement | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
! ! +8 -6 in /home/gurpreet/hsproject/evaluate/evaluator/models.py | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. (S)how patch | |
[ ] 4. Add (I)gnore comment | |
[ ] 5. Show Applied (P)atches | |
[ ] 6. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 6] » statement·=·models.CharField(blank=False,·max_length=1000) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 7] » answer·=·models.CharField(blank=False,·max_length=1000) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 8] » marks·=·models.IntegerField(blank=False) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 9] » | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Trailing whitespaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Print (M)ore info | |
[ ] 3. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 10] » def·__str__(self): | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 11] » » return·self.statement | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): 2 | |
! ! Please enter a value for the parameter 'language' (No description given.): python | |
[ERROR][03:49:23] Failed to execute the action IgnoreResultAction with error: A line cannot be changed and deleted at the same time.. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 14] » unanswered·=·models.BooleanField(default=False) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/models.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/models.py | |
[ 16] unanswered = models.BooleanField(default=False) | |
[ 16] unanswered = models.BooleanField(default=False) | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 14] » unanswered·=·models.BooleanField(default=False) | |
[ 15] » question·=·models.ForeignKey(Question,·related_name="answer_related") | |
[ 16] » marks_awarded·=·models.IntegerField(blank=False) | |
[ 17] » your_response·=·models.CharField(blank=False,·max_length=1000) | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
! ! +4 -4 in /home/gurpreet/hsproject/evaluate/evaluator/models.py | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. (S)how patch | |
[ ] 4. Add (I)gnore comment | |
[ ] 5. Show Applied (P)atches | |
[ ] 6. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 15] » question·=·models.ForeignKey(Question,·related_name="answer_related") | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 16] » marks_awarded·=·models.IntegerField(blank=False) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/models.py | |
[ 17] » your_response·=·models.CharField(blank=False,·max_length=1000) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluate/settings.py | |
[ 28] ALLOWED_HOSTS·=·["*",] | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluate/settings.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluate/settings.py | |
[ 28] ALLOWED_HOSTS = ["*",] | |
[ 28] ALLOWED_HOSTS = ["*", ] | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/migrations/0002_answer.py | |
[ 19] ················('id',·models.AutoField(auto_created=True,·primary_key=True,·serialize=False,·verbose_name='ID')), | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/migrations/0002_answer.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/migrations/0002_answer.py | |
[ 19] ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |
[ 19] ('id', models.AutoField(auto_created=True, | |
[ 20] primary_key=True, serialize=False, verbose_name='ID')), | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/migrations/0002_answer.py | |
[ 23] ················('question',·models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,·related_name='answer_related',·to='evaluator.Question')), | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/migrations/0002_answer.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/migrations/0002_answer.py | |
[ 24] ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answer_related', to='evaluator.Question')), | |
[ 24] ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, | |
[ 25] related_name='answer_related', to='evaluator.Question')), | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/migrations/0002_answer.py | |
[ 23] ················('question',·models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,·related_name='answer_related',·to='evaluator.Question')), | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/migrations/0002_answer.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/migrations/0002_answer.py | |
[ 24] ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answer_related', to='evaluator.Question')), | |
[ 24] ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, | |
[ 25] related_name='answer_related', to='evaluator.Question')), | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
manage.py | |
[ 14] ············import·django | |
**** PyUnusedCodeBear [Section: cli | Severity: NORMAL] **** | |
! ! This file contains unused source code. | |
[----] /home/gurpreet/hsproject/evaluate/manage.py | |
[++++] /home/gurpreet/hsproject/evaluate/manage.py | |
[ 14] import django | |
[ 14] pass | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Print (M)ore info | |
[ ] 4. Add (I)gnore comment | |
[ ] 5. Show Applied (P)atches | |
[ ] 6. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Print (M)ore info | |
[ ] 3. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/forms.py | |
[ 2] | |
[ 3] class·AnswerForm(forms.Form): | |
[ 4] » answer·=·forms.CharField(label="Your·answer:·",·required=True,·widget=forms.Textarea) | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
! ! +4 -1 in /home/gurpreet/hsproject/evaluate/evaluator/forms.py | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. (S)how patch | |
[ ] 4. Add (I)gnore comment | |
[ ] 5. Show Applied (P)atches | |
[ ] 6. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/forms.py | |
[ 4] » answer·=·forms.CharField(label="Your·answer:·",·required=True,·widget=forms.Textarea) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/forms.py | |
[ 7] » answer·=·forms.ImageField() | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/forms.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/forms.py | |
[ 10] answer = forms.ImageField() | |
[ 10] answer = forms.ImageField() | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/forms.py | |
[ 7] » answer·=·forms.ImageField() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - No newline at EOF. | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Print (M)ore info | |
[ ] 3. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/tests.py | |
[ 1] from·django.test·import·TestCase | |
**** PyUnusedCodeBear [Section: cli | Severity: NORMAL] **** | |
! ! This file contains unused source code. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/tests.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/tests.py | |
[ 1] from django.test import TestCase | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Print (M)ore info | |
[ ] 4. Add (I)gnore comment | |
[ ] 5. Show Applied (P)atches | |
[ ] 6. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Print (M)ore info | |
[ ] 3. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluate/urls.py | |
[ 6] » url(r'^$',·HomeView.as_view()), | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluate/urls.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluate/urls.py | |
[ 6] url(r'^$', HomeView.as_view()), | |
[ 6] url(r'^$', HomeView.as_view()), | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluate/urls.py | |
[ 6] » url(r'^$',·HomeView.as_view()), | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/migrations/0001_initial.py | |
[ 19] ················('id',·models.AutoField(auto_created=True,·primary_key=True,·serialize=False,·verbose_name='ID')), | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/migrations/0001_initial.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/migrations/0001_initial.py | |
[ 19] ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |
[ 19] ('id', models.AutoField(auto_created=True, | |
[ 20] primary_key=True, serialize=False, verbose_name='ID')), | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 5] import·json | |
**** PyUnusedCodeBear [Section: cli | Severity: NORMAL] **** | |
! ! This file contains unused source code. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[ 5] import json | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Print (M)ore info | |
[ ] 4. Add (I)gnore comment | |
[ ] 5. Show Applied (P)atches | |
[ ] 6. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Print (M)ore info | |
[ ] 3. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 11] | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[ 8] | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 14] » def·get(self,·request,·*args,·**kwargs): | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[ 12] def get(self, request, *args, **kwargs): | |
[ 12] def get(self, request, *args, **kwargs): | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 14] » def·get(self,·request,·*args,·**kwargs): | |
[ 15] » » total_marks·=·sum([x.marks·for·x·in·Question.objects.all()]) | |
[ 16] » » marks_obtained·=·sum([x.marks_awarded·for·x·in·Answer.objects.all()]) | |
[ 17] » » | |
[ 18] | |
[ 19] » » context·=·{ | |
[ 20] » » "answers":·Answer.objects.all(), | |
[ 21] » » "total_marks":·total_marks, | |
[ 22] » » "marks_obtained":·marks_obtained, | |
[ 23] » » } | |
[ 24] » » return·render(request,·"evaluate.html",·context) | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
! ! +10 -10 in /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. (S)how patch | |
[ ] 4. Add (I)gnore comment | |
[ ] 5. Show Applied (P)atches | |
[ ] 6. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 15] » » total_marks·=·sum([x.marks·for·x·in·Question.objects.all()]) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 16] » » marks_obtained·=·sum([x.marks_awarded·for·x·in·Answer.objects.all()]) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 17] » » | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Trailing whitespaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Print (M)ore info | |
[ ] 3. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 19] » » context·=·{ | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 20] » » "answers":·Answer.objects.all(), | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 21] » » "total_marks":·total_marks, | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 22] » » "marks_obtained":·marks_obtained, | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 23] » » } | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 24] » » return·render(request,·"evaluate.html",·context) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 28] » def·get(self,·request,·*args,·**kwargs): | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[ 26] def get(self, request, *args, **kwargs): | |
[ 26] def get(self, request, *args, **kwargs): | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 28] » def·get(self,·request,·*args,·**kwargs): | |
[ 29] » » Answer.objects.all().delete() | |
[ 30] » » questions·=·Question.objects.all() | |
[ 31] » » AnswerFormSet·=·formset_factory(AnswerForm,·extra=questions.count()) | |
[ 32] » » return·render(request,·'answer.html', | |
[ 33] » » ················» {'formset':·AnswerFormSet(), | |
[ 34] » » ················» 'questions':·questions}) | |
[ 35] | |
[ 36] » def·post(self,·request,··*args,·**kwargs): | |
[ 37] » » Answer.objects.all().delete() | |
[ 38] » » AnswerFormSet·=·formset_factory(AnswerForm) | |
[ 39] » » formset·=·AnswerFormSet(request.POST) | |
[ 40] » » questions·=·Question.objects.all() | |
[ 41] » » for·form·in·formset: | |
[ 42] » » » formid·=·int(form.prefix[5:]) | |
[ 43] » » » question·=·questions[formid] | |
[ 44] » » » text1·=·question.answer | |
[ 45] » » » text2·=·form.data[form.prefix+"-answer"] | |
[ 46] » » » token·=·"27cfd17d8c6a46758b2559c2e6df3388" | |
[ 47] » » » marks·=·question.marks» #set·by·teacher | |
[ 48] | |
[ 49] » » » url·=·"https://api.dandelion.eu/datatxt/sim/v1/?text1=%s&text2=%s&token=%s"·%(text1.replace("·",·"%20"),·text2.replace("·",·"%20"),·token) | |
[ 50] | |
[ 51] » » » r·=·requests.get(url).json() | |
[ 52] » » » if·"error"·not·in·r: | |
[ 53] » » » » Answer.objects.create(question=question,·your_response=text2·,marks_awarded=round(0.5·*·round(r["similarity"]·*·marks·/·0.5)·,·1)) | |
[ 54] » » » else: | |
[ 55] » » » » Answer.objects.create(question=question,·marks_awarded=0,·your_response="Unanswered."·,·unanswered·=·True) | |
[ 56] » » return·HttpResponseRedirect("/evaluator/evaluate/") | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
! ! +30 -26 in /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. (S)how patch | |
[ ] 4. Add (I)gnore comment | |
[ ] 5. Show Applied (P)atches | |
[ ] 6. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 29] » » Answer.objects.all().delete() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 30] » » questions·=·Question.objects.all() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 31] » » AnswerFormSet·=·formset_factory(AnswerForm,·extra=questions.count()) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 32] » » return·render(request,·'answer.html', | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 33] » » ················» {'formset':·AnswerFormSet(), | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 34] » » ················» 'questions':·questions}) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 36] » def·post(self,·request,··*args,·**kwargs): | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 37] » » Answer.objects.all().delete() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 38] » » AnswerFormSet·=·formset_factory(AnswerForm) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 39] » » formset·=·AnswerFormSet(request.POST) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 40] » » questions·=·Question.objects.all() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 41] » » for·form·in·formset: | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 42] » » » formid·=·int(form.prefix[5:]) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 43] » » » question·=·questions[formid] | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 44] » » » text1·=·question.answer | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 45] » » » text2·=·form.data[form.prefix+"-answer"] | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 46] » » » token·=·"27cfd17d8c6a46758b2559c2e6df3388" | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 47] » » » marks·=·question.marks» #set·by·teacher | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 49] » » » url·=·"https://api.dandelion.eu/datatxt/sim/v1/?text1=%s&text2=%s&token=%s"·%(text1.replace("·",·"%20"),·text2.replace("·",·"%20"),·token) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 51] » » » r·=·requests.get(url).json() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 52] » » » if·"error"·not·in·r: | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 53] » » » » Answer.objects.create(question=question,·your_response=text2·,marks_awarded=round(0.5·*·round(r["similarity"]·*·marks·/·0.5)·,·1)) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 54] » » » else: | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 55] » » » » Answer.objects.create(question=question,·marks_awarded=0,·your_response="Unanswered."·,·unanswered·=·True) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 56] » » return·HttpResponseRedirect("/evaluator/evaluate/") | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 59] » def·get(self,·request,·*args,·**kwargs): | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[----] /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[++++] /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[ 61] def get(self, request, *args, **kwargs): | |
[ 61] def get(self, request, *args, **kwargs): | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. Add (I)gnore comment | |
[ ] 4. Show Applied (P)atches | |
[ ] 5. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 64] » def·get(self,·request,·*args,·**kwargs): | |
[ 65] » » Answer.objects.all().delete() | |
[ 66] » » questions·=·Question.objects.all() | |
[ 67] » » AnswerFormSet·=·formset_factory(AnswerFormOCR,·extra=questions.count()) | |
[ 68] » » return·render(request,·'answer_ocr.html', | |
[ 69] » » » » » » » {'formset':·AnswerFormSet(), | |
[ 70] » » » » » » » 'questions':·questions}) | |
[ 71] | |
[ 72] » def·post(self,·request,·*args,·**kwargs): | |
[ 73] » » Answer.objects.all().delete() | |
[ 74] » » AnswerFormSet·=·formset_factory(AnswerFormOCR) | |
[ 75] » » formset·=·AnswerFormSet(request.POST) | |
[ 76] » » questions·=·Question.objects.all() | |
[ 77] » » for·form·in·formset: | |
[ 78] » » » formid·=·int(form.prefix[5:]) | |
[ 79] » » » question·=·questions[formid] | |
[ 80] » » » text1·=·question.answer | |
[ 81] » » » try: | |
[ 82] » » » » text2·=·request.FILES[form.prefix+"-answer"] | |
[ 83] » » » » payload·=·{ | |
[ 84] » » » » » 'isOverlayRequired':·False, | |
[ 85] » » » » » 'apikey':·"41cdc99a8c88957", | |
[ 86] » » » » » 'language':·"eng", | |
[ 87] » » » » » } | |
[ 88] » » » » r·=·requests.post('https://api.ocr.space/parse/image', | |
[ 89] » » » » » » » files={"filename":·text2}, | |
[ 90] » » » » » » » data=payload,) | |
[ 91] » » » » text2·=·r.json()["ParsedResults"][0]["ParsedText"] | |
[ 92] » » » » | |
[ 93] » » » except: | |
[ 94] » » » » text2·=·"" | |
[ 95] » » » | |
[ 96] » » » token·=·"27cfd17d8c6a46758b2559c2e6df3388" | |
[ 97] » » » marks·=·question.marks» #set·by·teacher | |
[ 98] | |
[ 99] » » » url·=·"https://api.dandelion.eu/datatxt/sim/v1/?text1=%s&text2=%s&token=%s"·%(text1.replace("·",·"%20"),·text2.replace("·",·"%20"),·token) | |
[ 100] | |
[ 101] » » » r·=·requests.get(url).json() | |
[ 102] » » » if·"error"·not·in·r: | |
[ 103] » » » » Answer.objects.create(question=question,·your_response=text2·,marks_awarded=round(0.5·*·round(r["similarity"]·*·marks·/·0.5)·,·1)) | |
[ 104] » » » else: | |
[ 105] » » » » Answer.objects.create(question=question,·marks_awarded=0,·your_response="Unanswered."·,·unanswered·=·True) | |
[ 106] » » return·HttpResponseRedirect("/evaluator/evaluate/") | |
**** PEP8Bear [Section: cli | Severity: NORMAL] **** | |
! ! The code does not comply to PEP8. | |
! ! +43 -40 in /home/gurpreet/hsproject/evaluate/evaluator/views.py | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. (A)pply patch | |
[ ] 3. (S)how patch | |
[ ] 4. Add (I)gnore comment | |
[ ] 5. Show Applied (P)atches | |
[ ] 6. (G)enerate patches | |
[ ] Enter number (Ctrl-D to exit): 2 | |
[ ] Patch applied successfully. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 65] » » Answer.objects.all().delete() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 66] » » questions·=·Question.objects.all() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 67] » » AnswerFormSet·=·formset_factory(AnswerFormOCR,·extra=questions.count()) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 68] » » return·render(request,·'answer_ocr.html', | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 69] » » » » » » » {'formset':·AnswerFormSet(), | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 70] » » » » » » » 'questions':·questions}) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 72] » def·post(self,·request,·*args,·**kwargs): | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 73] » » Answer.objects.all().delete() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 74] » » AnswerFormSet·=·formset_factory(AnswerFormOCR) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 75] » » formset·=·AnswerFormSet(request.POST) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 76] » » questions·=·Question.objects.all() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 77] » » for·form·in·formset: | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 78] » » » formid·=·int(form.prefix[5:]) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 79] » » » question·=·questions[formid] | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 80] » » » text1·=·question.answer | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 81] » » » try: | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 82] » » » » text2·=·request.FILES[form.prefix+"-answer"] | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 83] » » » » payload·=·{ | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 84] » » » » » 'isOverlayRequired':·False, | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 85] » » » » » 'apikey':·"41cdc99a8c88957", | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 86] » » » » » 'language':·"eng", | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 87] » » » » » } | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 88] » » » » r·=·requests.post('https://api.ocr.space/parse/image', | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 89] » » » » » » » files={"filename":·text2}, | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 90] » » » » » » » data=payload,) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 91] » » » » text2·=·r.json()["ParsedResults"][0]["ParsedText"] | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 92] » » » » | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Trailing whitespaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Print (M)ore info | |
[ ] 3. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 93] » » » except: | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 94] » » » » text2·=·"" | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 95] » » » | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Trailing whitespaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Print (M)ore info | |
[ ] 3. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 96] » » » token·=·"27cfd17d8c6a46758b2559c2e6df3388" | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 97] » » » marks·=·question.marks» #set·by·teacher | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 99] » » » url·=·"https://api.dandelion.eu/datatxt/sim/v1/?text1=%s&text2=%s&token=%s"·%(text1.replace("·",·"%20"),·text2.replace("·",·"%20"),·token) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 101] » » » r·=·requests.get(url).json() | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 102] » » » if·"error"·not·in·r: | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 103] » » » » Answer.objects.create(question=question,·your_response=text2·,marks_awarded=round(0.5·*·round(r["similarity"]·*·marks·/·0.5)·,·1)) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 104] » » » else: | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 105] » » » » Answer.objects.create(question=question,·marks_awarded=0,·your_response="Unanswered."·,·unanswered·=·True) | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
evaluator/views.py | |
[ 106] » » return·HttpResponseRedirect("/evaluator/evaluate/") | |
**** SpaceConsistencyBear [Section: cli | Severity: NORMAL] **** | |
! ! Line contains following spacing inconsistencies: | |
! ! - Tabs used instead of spaces. | |
[ ] *0. Do (N)othing | |
[ ] 1. (O)pen file | |
[ ] 2. Add (I)gnore comment | |
[ ] Enter number (Ctrl-D to exit): | |
(coala-venv) [gurpreet@archlinux evaluate]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment