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

[0.0.1a] Первый вариант документа #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

droppoint
Copy link
Owner

No description provided.

"hello": "world",
"some_internal_dict": {
"some": "key",
"another": "key"

Choose a reason for hiding this comment

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

Добавь запятые после последнего поля. Мы вроде в своё время сошлись, что так делаем.

Также учтены замечания Василия Чинарева
одного нижнего подчеркивания.


Lambda-функции

Choose a reason for hiding this comment

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

Где-то кто-то писал про лямбды, что лучше их всегда переписывать в обыкновенные функции.
Что-то похожее на pep было, надо бы поискать.

Choose a reason for hiding this comment

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

Хотя простейшие функции, описанные в этом разделе документации, как мне кажется, допустить можно.

Copy link

Choose a reason for hiding this comment

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

Согласно PEP 8 они не должны быть присвоены переменной, т.е. должны быть целиком и полностью инлайновыми в рамках окружающего выражения.

@decaz
Copy link

decaz commented Dec 28, 2015

Помимо главы про настройку Flake8 можно будет еще добавить главу про настройку isort.

@decaz
Copy link

decaz commented Dec 28, 2015

Ну и раз зашла речь о настройках, то и главу про настройку Sphinx :)

@droppoint
Copy link
Owner Author

Настройки для Flake8 и isort я приведу в конце, ибо они влияют на стиль кода. Настройки Sphinx по вышеуказанной причине приводить не имеет смысла.


В случае необходимости разрешается перенос строк (string) с использованием
тройных кавычек, если это не противоречит логике кода либо использование
объявления строк в пределах круглых скобок, например:

Choose a reason for hiding this comment

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

Фраза построена неверно.

А с многострочными строками надо крайне осторожно...

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.

4 participants