Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2aab9bd

Browse filesBrowse files
committed
style: beautify b40dd48
1 parent b40dd48 commit 2aab9bd
Copy full SHA for 2aab9bd

File tree

Expand file treeCollapse file tree

4 files changed

+21
-5
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+21
-5
lines changed

‎semantic_release/changelog/compare.py

Copy file name to clipboardExpand all lines: semantic_release/changelog/compare.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def get_github_compare_url(from_version: str, to_version: str) -> str:
1919
)
2020

2121

22-
def compare_url(version: str, previous_version: Optional[str] = None, **kwargs) -> Optional[str]:
22+
def compare_url(
23+
version: str, previous_version: Optional[str] = None, **kwargs
24+
) -> Optional[str]:
2325
if config.get("hvcs").lower() == "github" and previous_version:
2426
compare_url = get_github_compare_url(previous_version, version)
2527
return f"**[See all commits in this version]({compare_url})**"

‎semantic_release/history/logs.py

Copy file name to clipboardExpand all lines: semantic_release/history/logs.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919

2020

2121
@LoggedFunction(logger)
22-
def evaluate_version_bump(current_version: str, force: Optional[str] = None) -> Optional[str]:
22+
def evaluate_version_bump(
23+
current_version: str, force: Optional[str] = None
24+
) -> Optional[str]:
2325
"""
2426
Read git log since the last release to decide if we should make a major, minor or patch release.
2527

‎semantic_release/hvcs.py

Copy file name to clipboardExpand all lines: semantic_release/hvcs.py
+12-2Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,12 @@ def get_asset_upload_url(
310310
@classmethod
311311
@LoggedFunction(logger)
312312
def upload_asset(
313-
cls, owner: str, repo: str, release_id: int, file: str, label: Optional[str] = None
313+
cls,
314+
owner: str,
315+
repo: str,
316+
release_id: int,
317+
file: str,
318+
label: Optional[str] = None,
314319
) -> bool:
315320
"""Upload an asset to an existing release
316321
@@ -586,7 +591,12 @@ def post_release_changelog(
586591
@classmethod
587592
@LoggedFunction(logger)
588593
def upload_asset(
589-
cls, owner: str, repo: str, release_id: int, file: str, label: Optional[str] = None
594+
cls,
595+
owner: str,
596+
repo: str,
597+
release_id: int,
598+
file: str,
599+
label: Optional[str] = None,
590600
) -> bool:
591601
"""Upload an asset to an existing release
592602

‎semantic_release/repository.py

Copy file name to clipboardExpand all lines: semantic_release/repository.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"""
33
import logging
44
import os
5-
from dataclasses import InitVar, asdict as dataclass_asdict, dataclass, field
5+
from dataclasses import InitVar
6+
from dataclasses import asdict as dataclass_asdict
7+
from dataclasses import dataclass, field
68
from pathlib import Path
79
from typing import Any, Dict, List, Optional
810

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.