Skip to content

Commit e0ac0a4

Browse files
authored
scripts/griffe_check: exclude __version__ changes from breakages (#4778)
So that the script won't break at release time.
1 parent be1575c commit e0ac0a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/griffe_check.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def main():
5050
)
5151

5252
breakages = list(griffe.find_breaking_changes(against, base))
53+
# exclude version bumps from breakages as they are expected
54+
breakages = [b for b in breakages if b._format_title() != "__version__"]
5355

5456
if breakages:
5557
for b in breakages:

0 commit comments

Comments
 (0)