-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/nv 8287 global ignore #31
Feature/nv 8287 global ignore #31
Conversation
…kitaKozlovtcev/spellcheck-microservice into feature/NV-8287-global-ignore
whole_app/settings.py
Outdated
str, | ||
pydantic.Field( | ||
description="list of words which will ignored by default(string separated by comma)", | ||
), | ||
] = "" | ||
exclusion_words_set: typing.Annotated[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А зачем две переменных, зачем и стр и сет? В дескрипшене нет объяснений. Стоит так же в доке к каждой переменной указывать example использования.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Артур просил в прошлом PR строку в переменную окружения, а не список, поэтому я добавил exclusion_words_str и assemble_exclusion_words_set(). Чтобы один раз распарсить строку и получить exclusion_words_set. Примеры значений в переменных добавил и обновил ридми
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
обновил описание и ридми как обсудили
…kitaKozlovtcev/spellcheck-microservice into feature/NV-8287-global-ignore
README.md
Outdated
* `SPELLCHECK_EXCLUSION_WORDS` list of words which will ignored by default(string separated by comma). Default value is empty string. | ||
* `SPELLCHECK_EXCLUSION_WORDS_STR` list of words which will ignored by default(string separated by comma). Example: 'foo, bar'. Default value is empty string. | ||
* `SPELLCHECK_EXCLUSION_WORDS_SET` set of words which will ignored by default(filled from exclusion_words_str). | ||
Example: '["foo", "bar"]' . Default value is `set()`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example: ["foo", "bar"]
Стоит использовать символ `
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поправил
closes #25