Skip to content

Commit 03c89cd

Browse files
authored
Update constants.py
1 parent 6de2d6a commit 03c89cd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: githooks/constants.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,11 @@ class TrunkBranch:
4444

4545
# Tags that apply to all labels
4646
for label in LABEL_TO_TAG.keys():
47-
LABEL_TO_TAG[label].add(CommitTag.API)
48-
LABEL_TO_TAG[label].add(CommitTag.CONFIG)
49-
LABEL_TO_TAG[label].add(CommitTag.DATABASE)
47+
LABEL_TO_TAG[label].update({CommitTag.API, CommitTag.CONFIG, CommitTag.DATABASE})
5048

5149
# Special tags
52-
REQUIRED_TAGS = set([CommitTag.BUGFIX, CommitTag.TASK, CommitTag.FEATURE])
53-
OPTIONAL_TAGS = set([CommitTag.MARKER, CommitTag.API, CommitTag.CONFIG, CommitTag.DATABASE, CommitTag.SECURITY])
50+
REQUIRED_TAGS = {CommitTag.BUGFIX, CommitTag.TASK, CommitTag.FEATURE}
51+
OPTIONAL_TAGS = {CommitTag.MARKER, CommitTag.API, CommitTag.CONFIG, CommitTag.DATABASE, CommitTag.SECURITY}
5452

5553
# Trunk branches
5654
TRUNK_BRANCHES = {TrunkBranch.MASTER, TrunkBranch.MAIN}

0 commit comments

Comments
 (0)