Skip to content

Commit

Permalink
style setting improving and fix lit_ref for VKR and LR
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinaProsche committed Sep 20, 2024
1 parent 62428c7 commit 6c78e3a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions app/main/checks/report_checks/style_check_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class StyleCheckSettings:
HEADER_REGEX = "^\\D+.+$"
HEADER_1_REGEX = "^()([\\w\\s]+)$"
HEADER_2_REGEX = "^()([\\w\\s]+)\\.$"
STD_BANNED_WORDS = ['мы']
STD_MIN_LIT_REF = 1
STD_MAX_LIT_REF = 1000 #just in case for future edit
HEADER_1_STYLE = {
"bold": True,
"italic": False,
Expand Down Expand Up @@ -90,9 +93,11 @@ class StyleCheckSettings:
"headers": ["Исходный код программы"],
"unify_regex": APPENDIX_UNIFY_REGEX,
"regex": APPENDIX_REGEX,
"banned_words": ['мы'],
"banned_words": STD_BANNED_WORDS,
'min_count_for_banned_words_check': 3,
'max_count_for_banned_words_check': 6,
'min_ref_for_literature_references_check': STD_MIN_LIT_REF,
'mах_ref_for_literature_references_check': STD_MAX_LIT_REF
},
'second_header':
{
Expand All @@ -112,9 +117,11 @@ class StyleCheckSettings:
"headers": ["ВВЕДЕНИЕ", "ЗАКЛЮЧЕНИЕ", "СПИСОК ИСПОЛЬЗОВАННЫХ ИСТОЧНИКОВ"],
"unify_regex": None,
"regex": HEADER_REGEX,
"banned_words": ['мы'],
"banned_words": STD_BANNED_WORDS,
'min_count_for_banned_words_check': 3,
'max_count_for_banned_words_check': 6,
'min_ref_for_literature_references_check': STD_MIN_LIT_REF,
'mах_ref_for_literature_references_check': STD_MAX_LIT_REF
},
'second_header':
{
Expand Down Expand Up @@ -159,7 +166,7 @@ class StyleCheckSettings:
"header_for_report_section_component": "Поставленная цель и задачи",
"unify_regex": None,
"regex": HEADER_REGEX,
"banned_words": ['мы'],
"banned_words": STD_BANNED_WORDS,
'min_count_for_banned_words_check': 3,
'max_count_for_banned_words_check': 6,
},
Expand All @@ -174,7 +181,7 @@ class StyleCheckSettings:
"header_for_report_section_component": "",
"unify_regex": None,
"regex": HEADER_REGEX,
"banned_words": ['мы'],
"banned_words": STD_BANNED_WORDS,
'min_count_for_banned_words_check': 3,
'max_count_for_banned_words_check': 6,
}
Expand Down

0 comments on commit 6c78e3a

Please sign in to comment.