Skip to content

Commit 9ba0dcb

Browse files
committed
Linting
1 parent 9fc2e00 commit 9ba0dcb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

arthur/apis/directory/keycloak.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,12 @@ def get_user_github_id(username: str) -> str | None:
4848

4949
return github_id
5050

51+
5152
def all_github_ids() -> list[str]:
5253
"""Fetch all GitHub IDs from Keycloak."""
5354
client = create_client()
5455

55-
users = client.get_users({
56-
"enabled": True,
57-
"search": "*"
58-
})
56+
users = client.get_users({"enabled": True, "search": "*"})
5957

6058
github_ids = []
6159
for user in users:

arthur/apis/github.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ async def remove_member_from_team(username: str, github_team_slug: str) -> None:
8484
msg = f"Unexpected error: {e.message}"
8585
raise GitHubError(msg)
8686

87+
8788
async def list_organisation_members() -> list[str]:
8889
"""List all members of the GitHub organisation, and handle pagination."""
8990
members = []

arthur/exts/github/management.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
class GitHubManagement(Cog):
1313
"""GitHub organisation membership synchronisation with LDAP."""
1414

15-
def __init__(self, bot: "KingArthurTheTerrible") -> None:
15+
def __init__(self, bot: KingArthurTheTerrible) -> None:
1616
self.bot = bot
1717

1818
@tasks.loop(minutes=10)
1919
async def sync_github_org(self) -> None:
2020
"""Synchronise GitHub organisation membership with LDAP."""
2121

22-
async def setup(bot: "KingArthurTheTerrible") -> None:
22+
23+
async def setup(bot: KingArthurTheTerrible) -> None:
2324
"""Add cog to bot."""
2425
await bot.add_cog(GitHubManagement(bot))

0 commit comments

Comments
 (0)