Skip to content

Commit

Permalink
make style
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif committed Jul 30, 2024
1 parent 1f12a5e commit d2a9d37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/alignment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
is_adapter_model,
)


__all__ = [
"DataArguments",
"DPOConfig",
Expand Down
8 changes: 2 additions & 6 deletions src/alignment/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ def pre_release_work(patch=False):
# First let's get the default version: base version if we are in dev, bump minor otherwise.
default_version = get_version()
if patch and default_version.is_devrelease:
raise ValueError(
"Can't create a patch version from the dev branch, checkout a released version!"
)
raise ValueError("Can't create a patch version from the dev branch, checkout a released version!")
if default_version.is_devrelease:
default_version = default_version.base_version
elif patch:
Expand Down Expand Up @@ -110,9 +108,7 @@ def post_release_work():
action="store_true",
help="Whether this is pre or post release.",
)
parser.add_argument(
"--patch", action="store_true", help="Whether or not this is a patch release."
)
parser.add_argument("--patch", action="store_true", help="Whether or not this is a patch release.")
args = parser.parse_args()
if not args.post_release:
pre_release_work(patch=args.patch)
Expand Down

0 comments on commit d2a9d37

Please sign in to comment.