Skip to content

Commit 4498768

Browse files
committed
Comment Fixes
1 parent 4f32c6a commit 4498768

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

src/redis_release/bht/behaviours_debian.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from redis_release.bht.state import PackageMeta, ReleaseMeta
77
from redis_release.models import RedisVersion, ReleaseType
88

9-
# Conditions
10-
119

1210
class DetectReleaseTypeDebian(LoggingAction):
1311
"""Detect release type for Debian packages based on version."""
@@ -64,6 +62,9 @@ def update(self) -> Status:
6462
return result
6563

6664

65+
# Conditions
66+
67+
6768
class NeedToReleaseDebian(LoggingAction):
6869
"""Check if Debian package needs to be released."""
6970

src/redis_release/bht/behaviours_docker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ def update(self) -> Status:
2929
return Status.SUCCESS
3030

3131

32-
# Conditions
33-
34-
3532
class DetectReleaseTypeDocker(LoggingAction):
3633
"""Detect release type for Docker packages based on version."""
3734

@@ -86,6 +83,9 @@ def update(self) -> Status:
8683
return result
8784

8885

86+
# Conditions
87+
88+
8989
class NeedToReleaseDocker(LoggingAction):
9090
"""Check if Docker package needs to be released."""
9191

src/redis_release/bht/behaviours_homebrew.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,6 @@ def update(self) -> Status:
271271
return self.log_exception_and_return_failure(e)
272272

273273

274-
# Conditions
275-
276-
277274
class DetectReleaseTypeHomebrew(LoggingAction):
278275
"""Check that release_type is set for Homebrew packages.
279276
@@ -302,6 +299,9 @@ def update(self) -> Status:
302299
return Status.FAILURE
303300

304301

302+
# Conditions
303+
304+
305305
class NeedToReleaseHomebrew(LoggingAction):
306306
def __init__(
307307
self,

src/redis_release/bht/behaviours_rpm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from redis_release.bht.state import PackageMeta, ReleaseMeta
77
from redis_release.models import RedisVersion, ReleaseType
88

9-
# Conditions
10-
119

1210
class DetectReleaseTypeRPM(LoggingAction):
1311
"""Detect release type for RPM packages based on version."""
@@ -66,6 +64,9 @@ def update(self) -> Status:
6664
return result
6765

6866

67+
# Conditions
68+
69+
6970
class NeedToReleaseRPM(LoggingAction):
7071
"""Check if RPM package needs to be released."""
7172

src/redis_release/bht/behaviours_snap.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ def update(self) -> Status:
307307
return Status.FAILURE
308308

309309

310+
# Conditions
311+
312+
310313
class NeedToReleaseSnap(LoggingAction):
311314
def __init__(
312315
self,

src/redis_release/bht/ppas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Here we define PPAs (Postcondition-Precondition-Action) composites to be used in backchaining.
33
4-
Morse specific PPAs are defined directly in the tree factory files.
4+
More specific PPAs are defined directly in the tree factory files.
55
66
See backchain.py for more details on backchaining.
77

0 commit comments

Comments
 (0)