BobaUbisoft17 / Schedule_bot

Apache License 2.0
0 stars 0 forks source link

Статический анализ #20

Open Masynchin opened 2 years ago

Masynchin commented 2 years ago

Использовал следующие flake8-плагины:

flake8==4.0.1
flake8-annotations==2.9.0
flake8-bugbear==22.7.1
flake8-builtins==1.5.3
flake8-cognitive-complexity==0.1.0
flake8-comprehensions==3.10.0
flake8-docstrings==1.6.0
flake8-import-order==0.18.1
flake8-return==1.1.3

Команда запуска:

flake8 schedule_bot/ --max-cognitive-complexity=5

Вывод:

schedule_bot/convert_text_to_image.py:5:1: I201 Missing newline between import groups. 'from PIL import Image, ImageDraw, ImageFont' is identified as Third Party and 'from typing import List, Tuple' is identified as Stdlib.
schedule_bot/convert_text_to_image.py:6:1: I100 Import statements are in the wrong order. 'from dataclasses import dataclass' should be before 'from PIL import Image, ImageDraw, ImageFont' and in a different group.
schedule_bot/convert_text_to_image.py:6:1: I201 Missing newline between import groups. 'from dataclasses import dataclass' is identified as Stdlib and 'from PIL import Image, ImageDraw, ImageFont' is identified as Third Party.
schedule_bot/convert_text_to_image.py:7:1: I100 Import statements are in the wrong order. 'import os' should be before 'from dataclasses import dataclass'
schedule_bot/convert_text_to_image.py:8:1: I100 Import statements are in the wrong order. 'import glob' should be before 'import os'
schedule_bot/convert_text_to_image.py:15:1: D101 Missing docstring in public class
schedule_bot/convert_text_to_image.py:28:1: CCR001 Cognitive complexity is too high (15 > 5)
schedule_bot/convert_text_to_image.py:28:80: E501 line too long (92 > 79 characters)
schedule_bot/convert_text_to_image.py:74:28: W291 trailing whitespace
schedule_bot/convert_text_to_image.py:75:50: W291 trailing whitespace
schedule_bot/convert_text_to_image.py:78:80: E501 line too long (93 > 79 characters)
schedule_bot/convert_text_to_image.py:101:1: D103 Missing docstring in public function
schedule_bot/convert_text_to_image.py:101:80: E501 line too long (85 > 79 characters)
schedule_bot/convert_text_to_image.py:109:1: W293 blank line contains whitespace
schedule_bot/convert_text_to_image.py:111:80: E501 line too long (88 > 79 characters)
schedule_bot/convert_text_to_image.py:113:80: E501 line too long (87 > 79 characters)
schedule_bot/convert_text_to_image.py:122:1: D202 No blank lines allowed after function docstring
schedule_bot/convert_text_to_image.py:129:1: D103 Missing docstring in public function
schedule_bot/pdf_parser.py:1:1: D400 First line should end with a period
schedule_bot/pdf_parser.py:4:1: I100 Import statements are in the wrong order. 'from typing import List, Tuple' should be before 'from convert_text_to_image import Schedule' and in a different group.
schedule_bot/pdf_parser.py:4:1: I201 Missing newline between import groups. 'from typing import List, Tuple' is identified as Stdlib and 'from convert_text_to_image import Schedule' is identified as Third Party.
schedule_bot/pdf_parser.py:5:1: I201 Missing newline between import groups. 'import pdfplumber' is identified as Third Party and 'from typing import List, Tuple' is identified as Stdlib.
schedule_bot/pdf_parser.py:6:1: I100 Import statements are in the wrong order. 'import glob' should be before 'import pdfplumber' and in a different group.
schedule_bot/pdf_parser.py:6:1: I201 Missing newline between import groups. 'import glob' is identified as Stdlib and 'import pdfplumber' is identified as Third Party.
schedule_bot/pdf_parser.py:9:1: CCR001 Cognitive complexity is too high (6 > 5)
schedule_bot/pdf_parser.py:12:5: R503 missing explicit return at the  end of function ableto return non-None value.
schedule_bot/pdf_parser.py:17:80: E501 line too long (81 > 79 characters)
schedule_bot/pdf_parser.py:23:1: CCR001 Cognitive complexity is too high (17 > 5)
schedule_bot/pdf_parser.py:41:80: E501 line too long (91 > 79 characters)
schedule_bot/pdf_parser.py:48:28: E222 multiple spaces after operator
schedule_bot/pdf_parser.py:48:80: E501 line too long (82 > 79 characters)
schedule_bot/pdf_parser.py:63:1: CCR001 Cognitive complexity is too high (21 > 5)
schedule_bot/pdf_parser.py:89:39: C416 Unnecessary list comprehension - rewrite using list().
schedule_bot/pdf_parser.py:90:38: C416 Unnecessary list comprehension - rewrite using list().
schedule_bot/pdf_parser.py:94:1: CCR001 Cognitive complexity is too high (33 > 5)
schedule_bot/pdf_parser.py:94:80: E501 line too long (87 > 79 characters)
schedule_bot/pdf_parser.py:103:80: E501 line too long (82 > 79 characters)
schedule_bot/file_service.py:4:1: I100 Import statements are in the wrong order. 'import glob' should be before 'from typing import List'
schedule_bot/file_service.py:13:1: D103 Missing docstring in public function
schedule_bot/file_service.py:16:80: E501 line too long (88 > 79 characters)
schedule_bot/mailing.py:1:1: D100 Missing docstring in public module
schedule_bot/mailing.py:2:1: I201 Missing newline between import groups. 'from vkbottle import CodeException' is identified as Third Party and 'from db_users import get_users_id, unsubscribe_on_newsletter' is identified as Third Party.
schedule_bot/mailing.py:12:1: D103 Missing docstring in public function
schedule_bot/mailing.py:22:53: W292 no newline at end of file
schedule_bot/vk_bot.py:1:1: D400 First line should end with a period
schedule_bot/vk_bot.py:4:1: I101 Imported names are in the wrong order. Should be BaseStateGroup, PhotoMessageUploader
schedule_bot/vk_bot.py:4:1: I100 Import statements are in the wrong order. 'from vkbottle import PhotoMessageUploader, BaseStateGroup' should be before 'from vkbottle.bot import Bot, Message'
schedule_bot/vk_bot.py:5:1: I100 Import statements are in the wrong order. 'import logging' should be before 'from vkbottle import PhotoMessageUploader, BaseStateGroup' and in a different group.
schedule_bot/vk_bot.py:5:1: I201 Missing newline between import groups. 'import logging' is identified as Stdlib and 'from vkbottle import PhotoMessageUploader, BaseStateGroup' is identified as Third Party.
schedule_bot/vk_bot.py:6:1: I101 Imported names are in the wrong order. Should be all_classes_names, back1, back2, back3, change_class_keyboard, classes_names, get_schedule_keyboard, give_parallel, hide_keyboard, kb_select_school, memory_class_keyboard, parallel, parallels_keyboard, school_payloads, settings_keyboard, sub_keyboard, unsub_keyboard
schedule_bot/vk_bot.py:6:1: I201 Missing newline between import groups. 'from keyboard import hide_keyboard, back1, back2, back3, parallels_keyboard, school_payloads, kb_select_school, parallel, classes_names, give_parallel, get_schedule_keyboard, settings_keyboard, sub_keyboard, unsub_keyboard, memory_class_keyboard, change_class_keyboard, all_classes_names' is identified as Third Party and 'import logging' is identified as Stdlib.
schedule_bot/vk_bot.py:25:1: I101 Imported names are in the wrong order. Should be add_id, change_user_class, check_class, check_school_and_class, check_user_subscription, create_table, get_school_and_class, subscribe_on_newsletter, unsubscribe_on_newsletter
schedule_bot/vk_bot.py:25:1: I100 Import statements are in the wrong order. 'from db_users import create_table, add_id, check_user_subscription, subscribe_on_newsletter, unsubscribe_on_newsletter, check_school_and_class, get_school_and_class, change_user_class, check_class' should be before 'from keyboard import hide_keyboard, back1, back2, back3, parallels_keyboard, school_payloads, kb_select_school, parallel, classes_names, give_parallel, get_schedule_keyboard, settings_keyboard, sub_keyboard, unsub_keyboard, memory_class_keyboard, change_class_keyboard, all_classes_names' and in a different group.
schedule_bot/vk_bot.py:25:1: I201 Missing newline between import groups. 'from db_users import create_table, add_id, check_user_subscription, subscribe_on_newsletter, unsubscribe_on_newsletter, check_school_and_class, get_school_and_class, change_user_class, check_class' is identified as Third Party and 'from keyboard import hide_keyboard, back1, back2, back3, parallels_keyboard, school_payloads, kb_select_school, parallel, classes_names, give_parallel, get_schedule_keyboard, settings_keyboard, sub_keyboard, unsub_keyboard, memory_class_keyboard, change_class_keyboard, all_classes_names' is identified as Third Party.
schedule_bot/vk_bot.py:36:1: I201 Missing newline between import groups. 'from file_service import get_schedule_class' is identified as Third Party and 'from db_users import create_table, add_id, check_user_subscription, subscribe_on_newsletter, unsubscribe_on_newsletter, check_school_and_class, get_school_and_class, change_user_class, check_class' is identified as Third Party.
schedule_bot/vk_bot.py:37:1: I201 Missing newline between import groups. 'from schedule_parser14 import parse14' is identified as Third Party and 'from file_service import get_schedule_class' is identified as Third Party.
schedule_bot/vk_bot.py:38:1: I201 Missing newline between import groups. 'from schedule_parser40 import parse40' is identified as Third Party and 'from schedule_parser14 import parse14' is identified as Third Party.
schedule_bot/vk_bot.py:39:1: I100 Import statements are in the wrong order. 'import os' should be before 'from schedule_parser40 import parse40' and in a different group.
schedule_bot/vk_bot.py:39:1: I201 Missing newline between import groups. 'import os' is identified as Stdlib and 'from schedule_parser40 import parse40' is identified as Third Party.
schedule_bot/vk_bot.py:40:1: I100 Import statements are in the wrong order. 'import asyncio' should be before 'import os'
schedule_bot/vk_bot.py:43:1: D101 Missing docstring in public class
schedule_bot/vk_bot.py:43:8: N801 class name 'States_memory_class' should use CapWords convention
schedule_bot/vk_bot.py:47:1: D101 Missing docstring in public class
schedule_bot/vk_bot.py:47:8: N801 class name 'States_change_class' should use CapWords convention
schedule_bot/vk_bot.py:58:39: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:76:39: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:88:52: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:94:80: E501 line too long (88 > 79 characters)
schedule_bot/vk_bot.py:108:80: E501 line too long (80 > 79 characters)
schedule_bot/vk_bot.py:109:49: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:118:80: E501 line too long (81 > 79 characters)
schedule_bot/vk_bot.py:125:80: E501 line too long (96 > 79 characters)
schedule_bot/vk_bot.py:131:58: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:152:44: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:156:80: E501 line too long (89 > 79 characters)
schedule_bot/vk_bot.py:175:80: E501 line too long (138 > 79 characters)
schedule_bot/vk_bot.py:184:44: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:187:80: E501 line too long (88 > 79 characters)
schedule_bot/vk_bot.py:192:41: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:195:80: E501 line too long (98 > 79 characters)
schedule_bot/vk_bot.py:210:41: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:211:80: E501 line too long (87 > 79 characters)
schedule_bot/vk_bot.py:223:80: E501 line too long (85 > 79 characters)
schedule_bot/vk_bot.py:224:38: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:243:33: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:246:80: E501 line too long (103 > 79 characters)
schedule_bot/vk_bot.py:251:80: E501 line too long (85 > 79 characters)
schedule_bot/vk_bot.py:256:1: F811 redefinition of unused 'back' from line 243
schedule_bot/vk_bot.py:256:33: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:264:80: E501 line too long (88 > 79 characters)
schedule_bot/vk_bot.py:269:41: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:272:80: E501 line too long (104 > 79 characters)
schedule_bot/vk_bot.py:273:80: E501 line too long (88 > 79 characters)
schedule_bot/vk_bot.py:279:80: E501 line too long (86 > 79 characters)
schedule_bot/vk_bot.py:288:80: E501 line too long (134 > 79 characters)
schedule_bot/vk_bot.py:292:41: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:295:80: E501 line too long (96 > 79 characters)
schedule_bot/vk_bot.py:300:80: E501 line too long (84 > 79 characters)
schedule_bot/vk_bot.py:303:80: E501 line too long (82 > 79 characters)
schedule_bot/vk_bot.py:315:1: D103 Missing docstring in public function
schedule_bot/vk_bot.py:315:43: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:321:9: R503 missing explicit return at the  end of function ableto return non-None value.
schedule_bot/vk_bot.py:334:80: E501 line too long (82 > 79 characters)
schedule_bot/vk_bot.py:338:41: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:346:80: E501 line too long (84 > 79 characters)
schedule_bot/vk_bot.py:349:80: E501 line too long (82 > 79 characters)
schedule_bot/vk_bot.py:355:1: D103 Missing docstring in public function
schedule_bot/vk_bot.py:355:41: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:361:9: R503 missing explicit return at the  end of function ableto return non-None value.
schedule_bot/vk_bot.py:362:80: E501 line too long (82 > 79 characters)
schedule_bot/vk_bot.py:372:1: F811 redefinition of unused 'back' from line 256
schedule_bot/vk_bot.py:372:33: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:380:80: E501 line too long (84 > 79 characters)
schedule_bot/vk_bot.py:385:1: F811 redefinition of unused 'back' from line 372
schedule_bot/vk_bot.py:385:33: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:396:34: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:397:1: D400 First line should end with a period
schedule_bot/vk_bot.py:398:80: E501 line too long (85 > 79 characters)
schedule_bot/vk_bot.py:401:1: D103 Missing docstring in public function
schedule_bot/vk_bot.py:401:18: ANN201 Missing return type annotation for public function
schedule_bot/vk_bot.py:403:12: R504 unecessary variable assignement before return statement.
schedule_bot/vk_bot.py:406:11: ANN201 Missing return type annotation for public function
schedule_bot/csv_parser.py:14:1: D101 Missing docstring in public class
schedule_bot/csv_parser.py:26:80: E501 line too long (86 > 79 characters)
schedule_bot/csv_parser.py:38:80: E501 line too long (84 > 79 characters)
schedule_bot/csv_parser.py:46:80: E501 line too long (86 > 79 characters)
schedule_bot/csv_parser.py:62:1: CCR001 Cognitive complexity is too high (40 > 5)
schedule_bot/csv_parser.py:80:43: C416 Unnecessary list comprehension - rewrite using list().
schedule_bot/csv_parser.py:91:43: C416 Unnecessary list comprehension - rewrite using list().
schedule_bot/csv_parser.py:92:38: C416 Unnecessary list comprehension - rewrite using list().
schedule_bot/csv_parser.py:97:1: CCR001 Cognitive complexity is too high (26 > 5)
schedule_bot/csv_parser.py:97:74: ANN202 Missing return type annotation for protected function
schedule_bot/csv_parser.py:103:80: E501 line too long (82 > 79 characters)
schedule_bot/csv_parser.py:129:2: ANN202 Missing return type annotation for protected function
schedule_bot/csv_parser.py:133:80: E501 line too long (88 > 79 characters)
schedule_bot/db_users.py:3:1: I101 Imported names are in the wrong order. Should be List, Tuple
schedule_bot/db_users.py:4:1: I201 Missing newline between import groups. 'import aiosqlite' is identified as Third Party and 'from typing import Tuple, List' is identified as Stdlib.
schedule_bot/db_users.py:22:1: D400 First line should end with a period
schedule_bot/db_users.py:29:80: E501 line too long (80 > 79 characters)
schedule_bot/db_users.py:31:80: E501 line too long (133 > 79 characters)
schedule_bot/db_users.py:44:80: E501 line too long (80 > 79 characters)
schedule_bot/db_users.py:46:80: E501 line too long (138 > 79 characters)
schedule_bot/db_users.py:49:80: E501 line too long (103 > 79 characters)
schedule_bot/db_users.py:60:80: E501 line too long (83 > 79 characters)
schedule_bot/db_users.py:64:43: ANN001 Missing type annotation for function argument 'school'
schedule_bot/db_users.py:64:54: ANN001 Missing type annotation for function argument 'class_'
schedule_bot/db_users.py:72:80: E501 line too long (80 > 79 characters)
schedule_bot/db_users.py:74:80: E501 line too long (142 > 79 characters)
schedule_bot/db_users.py:77:80: E501 line too long (117 > 79 characters)
schedule_bot/db_users.py:81:1: CCR001 Cognitive complexity is too high (6 > 5)
schedule_bot/db_users.py:84:80: E501 line too long (106 > 79 characters)
schedule_bot/db_users.py:85:80: E501 line too long (107 > 79 characters)
schedule_bot/db_users.py:89:80: E501 line too long (80 > 79 characters)
schedule_bot/db_users.py:93:80: E501 line too long (84 > 79 characters)
schedule_bot/db_users.py:104:80: E501 line too long (99 > 79 characters)
schedule_bot/db_users.py:108:80: E501 line too long (84 > 79 characters)
schedule_bot/db_users.py:112:80: E501 line too long (88 > 79 characters)
schedule_bot/db_users.py:123:80: E501 line too long (80 > 79 characters)
schedule_bot/db_users.py:132:80: E501 line too long (89 > 79 characters)
schedule_bot/db_users.py:140:80: E501 line too long (101 > 79 characters)
schedule_bot/db_users.py:143:80: E501 line too long (88 > 79 characters)
schedule_bot/db_users.py:145:20: R504 unecessary variable assignement before return statement.
schedule_bot/xls_parser.py:1:1: D400 First line should end with a period
schedule_bot/xls_parser.py:4:1: I100 Import statements are in the wrong order. 'from typing import List, Tuple' should be before 'from convert_text_to_image import Schedule' and in a different group.
schedule_bot/xls_parser.py:4:1: I201 Missing newline between import groups. 'from typing import List, Tuple' is identified as Stdlib and 'from convert_text_to_image import Schedule' is identified as Third Party.
schedule_bot/xls_parser.py:5:1: I201 Missing newline between import groups. 'import xlrd' is identified as Third Party and 'from typing import List, Tuple' is identified as Stdlib.
schedule_bot/xls_parser.py:6:1: I100 Import statements are in the wrong order. 'import glob' should be before 'import xlrd' and in a different group.
schedule_bot/xls_parser.py:6:1: I201 Missing newline between import groups. 'import glob' is identified as Stdlib and 'import xlrd' is identified as Third Party.
schedule_bot/xls_parser.py:13:1: D400 First line should end with a period
schedule_bot/xls_parser.py:15:12: R504 unecessary variable assignement before return statement.
schedule_bot/xls_parser.py:19:1: D400 First line should end with a period
schedule_bot/xls_parser.py:24:80: E501 line too long (80 > 79 characters)
schedule_bot/xls_parser.py:30:1: D400 First line should end with a period
schedule_bot/xls_parser.py:45:1: D400 First line should end with a period
schedule_bot/xls_parser.py:51:80: E501 line too long (102 > 79 characters)
schedule_bot/xls_parser.py:52:1: D400 First line should end with a period
schedule_bot/xls_parser.py:52:80: E501 line too long (103 > 79 characters)
schedule_bot/xls_parser.py:57:80: E501 line too long (81 > 79 characters)
schedule_bot/xls_parser.py:64:17: ANN001 Missing type annotation for function argument 'sheet'
schedule_bot/xls_parser.py:65:1: D400 First line should end with a period
schedule_bot/xls_parser.py:72:1: CCR001 Cognitive complexity is too high (17 > 5)
schedule_bot/xls_parser.py:72:80: E501 line too long (96 > 79 characters)
schedule_bot/xls_parser.py:73:1: D400 First line should end with a period
schedule_bot/xls_parser.py:96:80: E501 line too long (117 > 79 characters)
schedule_bot/xls_parser.py:97:1: D400 First line should end with a period
schedule_bot/xls_parser.py:108:24: ANN001 Missing type annotation for function argument 'sheet'
schedule_bot/xls_parser.py:109:1: D400 First line should end with a period
schedule_bot/xls_parser.py:118:80: E501 line too long (140 > 79 characters)
schedule_bot/xls_parser.py:119:1: D400 First line should end with a period
schedule_bot/schedule_parser14.py:1:1: D400 First line should end with a period
schedule_bot/schedule_parser14.py:4:1: I201 Missing newline between import groups. 'from bs4 import BeautifulSoup' is identified as Third Party and 'from typing import Optional, Tuple' is identified as Stdlib.
schedule_bot/schedule_parser14.py:5:1: I201 Missing newline between import groups. 'from vkbottle.bot import Bot' is identified as Third Party and 'from bs4 import BeautifulSoup' is identified as Third Party.
schedule_bot/schedule_parser14.py:6:1: I100 Import statements are in the wrong order. 'from convert_text_to_image import del_img, make_image, save_img' should be before 'from vkbottle.bot import Bot' and in a different group.
schedule_bot/schedule_parser14.py:6:1: I201 Missing newline between import groups. 'from convert_text_to_image import del_img, make_image, save_img' is identified as Third Party and 'from vkbottle.bot import Bot' is identified as Third Party.
schedule_bot/schedule_parser14.py:7:1: I201 Missing newline between import groups. 'from pdf_parser import get_classes_schedules' is identified as Third Party and 'from convert_text_to_image import del_img, make_image, save_img' is identified as Third Party.
schedule_bot/schedule_parser14.py:8:1: I100 Import statements are in the wrong order. 'from mailing import mailing_list' should be before 'from pdf_parser import get_classes_schedules' and in a different group.
schedule_bot/schedule_parser14.py:8:1: I201 Missing newline between import groups. 'from mailing import mailing_list' is identified as Third Party and 'from pdf_parser import get_classes_schedules' is identified as Third Party.
schedule_bot/schedule_parser14.py:9:1: I100 Import statements are in the wrong order. 'import asyncio' should be before 'from mailing import mailing_list' and in a different group.
schedule_bot/schedule_parser14.py:9:1: I201 Missing newline between import groups. 'import asyncio' is identified as Stdlib and 'from mailing import mailing_list' is identified as Third Party.
schedule_bot/schedule_parser14.py:12:1: I201 Missing newline between import groups. 'import aiohttp' is identified as Third Party and 'import os' is identified as Stdlib.
schedule_bot/schedule_parser14.py:13:1: I100 Import statements are in the wrong order. 'import aiofiles' should be before 'import aiohttp' and in a different group.
schedule_bot/schedule_parser14.py:13:1: I201 Missing newline between import groups. 'import aiofiles' is identified as Third Party and 'import aiohttp' is identified as Third Party.
schedule_bot/schedule_parser14.py:17:80: E501 line too long (135 > 79 characters)
schedule_bot/schedule_parser14.py:23:1: CCR001 Cognitive complexity is too high (13 > 5)
schedule_bot/schedule_parser14.py:23:1: D103 Missing docstring in public function
schedule_bot/schedule_parser14.py:28:9: R503 missing explicit return at the  end of function ableto return non-None value.
schedule_bot/schedule_parser14.py:49:1: CCR001 Cognitive complexity is too high (6 > 5)
schedule_bot/schedule_parser14.py:55:80: E501 line too long (81 > 79 characters)
schedule_bot/schedule_parser14.py:75:80: E501 line too long (80 > 79 characters)
schedule_bot/schedule_parser14.py:90:1: CCR001 Cognitive complexity is too high (9 > 5)
schedule_bot/schedule_parser14.py:107:54: W292 no newline at end of file
schedule_bot/schedule_parser40.py:1:1: D400 First line should end with a period
schedule_bot/schedule_parser40.py:5:1: I201 Missing newline between import groups. 'from bs4 import BeautifulSoup' is identified as Third Party and 'from typing import List, Tuple' is identified as Stdlib.
schedule_bot/schedule_parser40.py:6:1: I201 Missing newline between import groups. 'from vkbottle.bot import Bot' is identified as Third Party and 'from bs4 import BeautifulSoup' is identified as Third Party.
schedule_bot/schedule_parser40.py:7:1: I100 Import statements are in the wrong order. 'import aiohttp' should be before 'from vkbottle.bot import Bot' and in a different group.
schedule_bot/schedule_parser40.py:7:1: I201 Missing newline between import groups. 'import aiohttp' is identified as Third Party and 'from vkbottle.bot import Bot' is identified as Third Party.
schedule_bot/schedule_parser40.py:8:1: I100 Import statements are in the wrong order. 'import aiofiles' should be before 'import aiohttp' and in a different group.
schedule_bot/schedule_parser40.py:8:1: I201 Missing newline between import groups. 'import aiofiles' is identified as Third Party and 'import aiohttp' is identified as Third Party.
schedule_bot/schedule_parser40.py:9:1: I100 Import statements are in the wrong order. 'import glob' should be before 'import aiofiles' and in a different group.
schedule_bot/schedule_parser40.py:9:1: I201 Missing newline between import groups. 'import glob' is identified as Stdlib and 'import aiofiles' is identified as Third Party.
schedule_bot/schedule_parser40.py:11:1: I201 Missing newline between import groups. 'from mailing import mailing_list' is identified as Third Party and 'import os' is identified as Stdlib.
schedule_bot/schedule_parser40.py:12:1: I201 Missing newline between import groups. 'from xls_parser import get_classes_schedules' is identified as Third Party and 'from mailing import mailing_list' is identified as Third Party.
schedule_bot/schedule_parser40.py:13:1: I101 Imported names are in the wrong order. Should be del_img, make_image, save_img
schedule_bot/schedule_parser40.py:13:1: I100 Import statements are in the wrong order. 'from convert_text_to_image import make_image, del_img, save_img' should be before 'from xls_parser import get_classes_schedules' and in a different group.
schedule_bot/schedule_parser40.py:13:1: I201 Missing newline between import groups. 'from convert_text_to_image import make_image, del_img, save_img' is identified as Third Party and 'from xls_parser import get_classes_schedules' is identified as Third Party.
schedule_bot/schedule_parser40.py:18:80: E501 line too long (135 > 79 characters)
schedule_bot/schedule_parser40.py:24:1: CCR001 Cognitive complexity is too high (7 > 5)
schedule_bot/schedule_parser40.py:24:1: D103 Missing docstring in public function
schedule_bot/schedule_parser40.py:39:1: D103 Missing docstring in public function
schedule_bot/schedule_parser40.py:47:1: D103 Missing docstring in public function
schedule_bot/schedule_parser40.py:52:80: E501 line too long (90 > 79 characters)
schedule_bot/schedule_parser40.py:56:1: D103 Missing docstring in public function
schedule_bot/schedule_parser40.py:63:80: E501 line too long (83 > 79 characters)
schedule_bot/schedule_parser40.py:74:1: D103 Missing docstring in public function
schedule_bot/schedule_parser40.py:92:1: D103 Missing docstring in public function
schedule_bot/schedule_parser40.py:95:80: E501 line too long (82 > 79 characters)
schedule_bot/schedule_parser40.py:100:80: E501 line too long (80 > 79 characters)
schedule_bot/schedule_parser40.py:108:1: CCR001 Cognitive complexity is too high (9 > 5)
schedule_bot/schedule_parser40.py:108:1: D103 Missing docstring in public function
schedule_bot/schedule_parser40.py:123:54: W292 no newline at end of file
schedule_bot/start_bot.py:1:1: D400 First line should end with a period
schedule_bot/keyboard.py:1:1: D400 First line should end with a period
schedule_bot/keyboard.py:3:1: I101 Imported names are in the wrong order. Should be Keyboard, KeyboardButtonColor, OpenLink, Text
schedule_bot/keyboard.py:4:1: I100 Import statements are in the wrong order. 'from typing import List' should be before 'from vkbottle import Keyboard, KeyboardButtonColor, Text, OpenLink' and in a different group.
schedule_bot/keyboard.py:4:1: I201 Missing newline between import groups. 'from typing import List' is identified as Stdlib and 'from vkbottle import Keyboard, KeyboardButtonColor, Text, OpenLink' is identified as Third Party.
schedule_bot/keyboard.py:67:12: R504 unecessary variable assignement before return statement.
schedule_bot/keyboard.py:104:12: R504 unecessary variable assignement before return statement.
schedule_bot/keyboard.py:119:12: R504 unecessary variable assignement before return statement.
schedule_bot/keyboard.py:134:12: R504 unecessary variable assignement before return statement.
schedule_bot/keyboard.py:149:12: R504 unecessary variable assignement before return statement.
schedule_bot/keyboard.py:153:1: D205 1 blank line required between summary line and description
schedule_bot/keyboard.py:153:1: D400 First line should end with a period
schedule_bot/keyboard.py:171:12: R504 unecessary variable assignement before return statement.
schedule_bot/keyboard.py:191:12: R504 unecessary variable assignement before return statement.
schedule_bot/keyboard.py:210:1: CCR001 Cognitive complexity is too high (7 > 5)
bullbesh commented 2 years ago

--no-verify

Masynchin commented 2 years ago

@BobaUbisoft17, убрал 90% предупреждений 👍🏻.

Однако в процессе вышел такой конфуз:

https://github.com/BobaUbisoft17/Schedule_bot/blob/9764cc92c595a129f4718e61421be6919e3d3b2a/schedule_bot/schedule_parser14.py#L8-L20

И здесь почему-то одинарный пробел вместо отступа:

https://github.com/BobaUbisoft17/Schedule_bot/blob/9764cc92c595a129f4718e61421be6919e3d3b2a/schedule_bot/xls_parser.py#L65-L67

Ну и не стоит показывать @bullbesh'у 116ю строчку файла pdf_parser.py 😁.

BobaUbisoft17 commented 2 years ago

Потому как flake8 выдаёт предупреждение в ином случае

Masynchin commented 2 years ago

В этом случае он выдаёт чушь. Flake8 можно настроить под специфику проекта (или чтобы совсем бред не выдавал).