Open
Conversation
HadronCollider
requested changes
Dec 7, 2025
Collaborator
HadronCollider
left a comment
There was a problem hiding this comment.
- Подтяните изменения из dev
- Отформатируйте код по pep8
| @@ -0,0 +1,80 @@ | |||
| import re | |||
| from pymorphy2 import MorphAnalyzer | |||
Collaborator
There was a problem hiding this comment.
Подтяните изменения из dev и перейдите на pymorphy3
Comment on lines
+6
to
+9
| class PresAbbreviationsCheck(BasePresCriterion): | ||
| label = "Проверка расшифровки аббревиатур в презентации" | ||
| description = "Все аббревиатуры должны быть расшифрованы при первом использовании" | ||
| id = 'abbreviations_check_pres' |
Collaborator
There was a problem hiding this comment.
Придерживайтесь шаблона именований
- для классов
Pres<>Check - для id
pres_<>_check - для отчетов - аналогично, но
report*
Comment on lines
+48
to
+50
| filtered_abbr = [abbr for abbr in abbreviations if abbr not in common_abbr and morph.parse(abbr.lower())[0].score != 0] | ||
|
|
||
| return list(set(filtered_abbr)) |
Collaborator
There was a problem hiding this comment.
Можно сразу формировать set в конструкции вида {i for i in array}
HadronCollider
requested changes
Apr 19, 2026
Collaborator
HadronCollider
left a comment
There was a problem hiding this comment.
- Внёс небольшие изменения - пометил критерий как warning (= не влияет на итоговый балл), поскольку работа нестабильна
- доработайте по комментарию ниже (вынести common_abbr в конфиг/переменную модуля) и можно мержить PR
Comment on lines
+73
to
+94
| common_abbr = { | ||
| 'СССР', 'РФ', 'США', 'ВКР', 'ИТ', 'ПО', 'ООО', 'ЗАО', 'ОАО', 'HTML', 'CSS', | ||
| 'JS', 'ЛЭТИ', 'МОЕВМ', 'ЭВМ', 'ГОСТ', 'DVD', | ||
| 'ЦПУ', | ||
| 'SSD', 'PC', 'HDD', | ||
| 'AX', 'BX', 'CX', 'DX', 'SI', 'DI', 'BP', 'SP', | ||
| 'AH', 'AL', 'BH', 'BL', 'CH', 'CL', 'DH', 'DL', | ||
| 'CS', 'DS', 'ES', 'SS', 'FS', 'GS', | ||
| 'IP', 'EIP', 'RIP', 'URL', | ||
| 'CF', 'PF', 'AF', 'ZF', 'SF', 'TF', 'IF', 'DF', 'OF', | ||
| 'EAX', 'EBX', 'ECX', 'EDX', 'ESI', 'EDI', 'EBP', 'ESP', | ||
| 'RAX', 'RBX', 'RCX', 'RDX', 'RSI', 'RDI', 'RBP', 'RSP', | ||
| 'DOS', 'OS', 'BIOS', 'UEFI', 'MBR', 'GPT', | ||
| 'ASCII', 'UTF', 'UNICODE', 'ANSI', | ||
| 'ЭВМ', 'МОЭВМ', | ||
| 'CPU', 'GPU', 'APU', 'RAM', 'ROM', 'PROM', 'EPROM', 'EEPROM', | ||
| 'USB', 'SATA', 'PCI', 'PCIe', 'AGP', 'ISA', 'VGA', 'HDMI', 'DP', | ||
| 'LAN', 'WAN', 'WLAN', 'VPN', 'ISP', 'DNS', 'DHCP', 'TCP', 'UDP', 'IP', | ||
| 'HTTP', 'HTTPS', 'FTP', 'SSH', 'SSL', 'TLS', | ||
| 'API', 'GUI', 'CLI', 'IDE', 'SDK', 'SQL', 'NoSQL', 'XML', 'JSON', 'YAML', | ||
| 'MAC', 'IBM', 'ГОСТ', 'ООП', 'ЛР', 'КР', 'ОТЧЕТ', 'ПЛАН', 'СЛОВА' | ||
| } |
Collaborator
There was a problem hiding this comment.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.