Skip to content

Commit

Permalink
fix: really lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Oct 24, 2024
1 parent e952b7d commit b325391
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name ?= codecovcli
tag_regex := ^v([0-9]{1,}\.){2}[0-9]{1,}([-_]\w+)?$

lint:
pip install black==24.10.0 isort==5.10.1
pip install black==22.3.0 isort==5.10.1
black codecov_cli
isort --profile=black codecov_cli -p staticcodecov_languages
black tests
Expand Down
6 changes: 3 additions & 3 deletions codecov_cli/commands/process_test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def process_test_results(
dir, exclude_folders, files, disable_search, report_type="test_results"
)

upload_collection_results: List[UploadCollectionResultFile] = (
file_finder.find_files()
)
upload_collection_results: List[
UploadCollectionResultFile
] = file_finder.find_files()
if len(upload_collection_results) == 0:
raise click.ClickException(
"No JUnit XML files were found. Make sure to specify them using the --file option."
Expand Down
3 changes: 2 additions & 1 deletion codecov_cli/helpers/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def backoff_time(curr_retry):
return 2 ** (curr_retry - 1)


class RetryException(Exception): ...
class RetryException(Exception):
...


def retry_request(func):
Expand Down
6 changes: 3 additions & 3 deletions tests/ci_adapters/test_ghactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ def test_commit_sha_in_merge_commit_and_parents_hash_len_is_not_2(self, mocker):
def test_build_url(self, env_dict, slug, build_code, expected, mocker):
mocker.patch.dict(os.environ, env_dict, clear=True)
mocker.patch.object(GithubActionsCIAdapter, "_get_slug").return_value = slug
mocker.patch.object(GithubActionsCIAdapter, "_get_build_code").return_value = (
build_code
)
mocker.patch.object(
GithubActionsCIAdapter, "_get_build_code"
).return_value = build_code

actual = GithubActionsCIAdapter().get_fallback_value(
FallbackFieldEnum.build_url
Expand Down

0 comments on commit b325391

Please sign in to comment.