Skip to content

Commit

Permalink
Exclude pre-releases (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra authored Dec 12, 2023
1 parent 0912505 commit e4db620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def main():
raise RuntimeError

versions = [Version(release) for release in resp.json()["releases"]]
versions = [v for v in versions if v > current_version]
versions = [v for v in versions if v > current_version and not v.is_prerelease]
versions.sort()

for version in versions:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "black-pre-commit-mirror"
version = "0.1.0"
dependencies = [
"black==24.1a1",
"black==23.12.0",
]

[project.optional-dependencies]
Expand Down

0 comments on commit e4db620

Please sign in to comment.