Skip to content

Conversation

OdintsovTim
Copy link

No description provided.

@@ -1,3 +1,5 @@
[![codecov](https://codecov.io/gh/OdintsovTim/level_2_2/branch/main/graph/badge.svg)](https://codecov.io/gh/OdintsovTim/level_2_2)

Choose a reason for hiding this comment

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

suggestion: бейдж из трэвиса тоже стоит добавить

Copy link
Author

Choose a reason for hiding this comment

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

Зачем?) Как по мне, это точно не является обязательным, плашка о 100% покрытии уже гарант того, что на трэвисе все ок, иначе бы запрос не отправился бы

@argument('project_path', type=Path(exists=True))
@pass_context
def upgrade(ctx, project_path):
def upgrade_preset(ctx, project_path):

Choose a reason for hiding this comment

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

nitpick: upgrade не обязательно переименовывать, с ней нет таких проблем, как с setup

Copy link
Author

Choose a reason for hiding this comment

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

]
)
def test_extract_preset_url(preset_name_or_url_or_path, presets_repo_url, preset_info, expected):
assert extract_preset_url(preset_name_or_url_or_path, preset_info, presets_repo_url) == expected

Choose a reason for hiding this comment

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

nitpick: В функции еще идет проверка есть ли вообще preset_name_or_url_or_path, думаю, можно добавить случай, когда строка пустая

Copy link
Author

Choose a reason for hiding this comment

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



def test_load_preset_from_url(mocker, flake8_preset_factory, row_config_data):
response = mocker.patch('code.flake_master.utils.preset_fetchers.get', autospe=True)

Choose a reason for hiding this comment

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

nitpick: autospeC

Copy link
Author

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.

2 participants