Skip to content

Conversation

@MSenso
Copy link

@MSenso MSenso commented Feb 11, 2023

Added models for abstract, regulation and newspaper and formatters for them in gost and apa style.
Added tests

}


def format_by_style(citation: str, models: list, path_output: str) -> None:
Copy link
Owner

Choose a reason for hiding this comment

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

Новые методы тоже нужно документировать :)


def format_by_style(citation: str, models: list, path_output: str) -> None:
logger.info(style_map[citation])
formatted_models = tuple(str(item) for item in style_map[citation](models).format())
Copy link
Owner

Choose a reason for hiding this comment

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

Что, если citation не найдется в словаре style_map?

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.

2 participants