Skip to content
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

Merged
merged 10 commits into from
Jul 22, 2024

Conversation

NikitaKozlovtcev
Copy link
Contributor

@NikitaKozlovtcev NikitaKozlovtcev commented Jul 12, 2024

closes #25

@NikitaKozlovtcev NikitaKozlovtcev mentioned this pull request Jul 15, 2024
str,
pydantic.Field(
description="list of words which will ignored by default(string separated by comma)",
),
] = ""
exclusion_words_set: typing.Annotated[
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем две переменных, зачем и стр и сет? В дескрипшене нет объяснений. Стоит так же в доке к каждой переменной указывать example использования.

Copy link
Contributor Author

@NikitaKozlovtcev NikitaKozlovtcev Jul 16, 2024

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. Примеры значений в переменных добавил и обновил ридми

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

обновил описание и ридми как обсудили

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()`.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example: ["foo", "bar"]

Стоит использовать символ `

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

поправил

@xfenix xfenix merged commit 0e6e0e9 into xfenix:main Jul 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global ignore
2 participants