Run ruff
This commit is contained in:
		| @@ -10,6 +10,7 @@ DEFAULT_HEADERS = { | |||||||
|  |  | ||||||
| BRANCHES = ["nixos-unstable-small", "nixos-unstable", "nixos-24.05"] | BRANCHES = ["nixos-unstable-small", "nixos-unstable", "nixos-24.05"] | ||||||
|  |  | ||||||
|  |  | ||||||
| @app.command() | @app.command() | ||||||
| def pr(pr: str): | def pr(pr: str): | ||||||
|     """Get status of pull request""" |     """Get status of pull request""" | ||||||
| @@ -22,14 +23,13 @@ def pr(pr: str): | |||||||
|  |  | ||||||
|     console = Console() |     console = Console() | ||||||
|  |  | ||||||
|     if pr_data["merged"] == False: |     if pr_data["merged"] is False: | ||||||
|         console.print(f":x: master", highlight=False) |         console.print(":x: master", highlight=False) | ||||||
|         for branch in BRANCHES: |         for branch in BRANCHES: | ||||||
|             console.print(f":x: {branch}", highlight=False) |             console.print(f":x: {branch}", highlight=False) | ||||||
|         return |         return | ||||||
|  |  | ||||||
|     console.print(f":white_check_mark: master", highlight=False) |     console.print(":white_check_mark: master", highlight=False) | ||||||
|  |  | ||||||
|  |  | ||||||
|     commit_sha = pr_data["merge_commit_sha"] |     commit_sha = pr_data["merge_commit_sha"] | ||||||
|  |  | ||||||
| @@ -44,8 +44,10 @@ def pr(pr: str): | |||||||
|         else: |         else: | ||||||
|             console.print(f":x: {branch}", highlight=False) |             console.print(f":x: {branch}", highlight=False) | ||||||
|  |  | ||||||
|  |  | ||||||
| def main(): | def main(): | ||||||
|     app() |     app() | ||||||
|  |  | ||||||
|  |  | ||||||
| if __name__ == "__main__": | if __name__ == "__main__": | ||||||
|     main() |     main() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user