Skip to content

Commit 6540096

Browse files
committed
chore(docs): formatting cleanup for mkdocs-click
1 parent 00618bf commit 6540096

File tree

14 files changed

+19
-53
lines changed

14 files changed

+19
-53
lines changed

compiler_admin/commands/info.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
@click.command()
88
def info():
9-
"""
10-
Print information about the configured environment.
11-
"""
9+
"""Print information about the configured environment."""
1210
click.echo(f"compiler-admin, version {version}")
1311

1412
CallGAMCommand(("version",))

compiler_admin/commands/init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def init(username: str, init_gam: bool = False, init_gyb: bool = False):
3030
3131
See:
3232
33-
- [https://github.com/GAM-team/GAM/wiki/How-to-Install-GAM7](https://github.com/GAM-team/GAM/wiki/How-to-Install-GAM7)
34-
- [https://github.com/GAM-team/got-your-back/wiki](https://github.com/GAM-team/got-your-back/wiki)
33+
- <https://github.com/GAM-team/GAM/wiki/How-to-Install-GAM7>
34+
- <https://github.com/GAM-team/got-your-back/wiki>
3535
"""
3636
if init_gam:
3737
_clean_config_dir(GAM_CONFIG_PATH)

compiler_admin/commands/time/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
@click.group
1010
def time():
11-
"""
12-
Work with Compiler time entries.
13-
"""
11+
"""Work with Compiler time entries."""
1412
pass
1513

1614

compiler_admin/commands/user/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@
66
from compiler_admin.commands.user.deactivate import deactivate
77
from compiler_admin.commands.user.delete import delete
88
from compiler_admin.commands.user.offboard import offboard
9-
from compiler_admin.commands.user.reset import reset
109
from compiler_admin.commands.user.reactivate import reactivate
10+
from compiler_admin.commands.user.reset import reset
1111
from compiler_admin.commands.user.restore import restore
1212
from compiler_admin.commands.user.signout import signout
1313

1414

1515
@click.group
1616
def user():
17-
"""
18-
Work with users in the Compiler org.
19-
"""
17+
"""Work with users in the Compiler org."""
2018
pass
2119

2220

compiler_admin/commands/user/backupcodes.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
import click
22

33
from compiler_admin import RESULT_FAILURE
4-
from compiler_admin.services.google import (
5-
get_backup_codes,
6-
user_account_name,
7-
user_exists,
8-
)
4+
from compiler_admin.services.google import get_backup_codes, user_account_name, user_exists
95

106

117
@click.command()
128
@click.argument("username")
139
def backupcodes(username: str, **kwargs):
14-
"""
15-
Get backup codes for the user, creating a new set if needed.
16-
"""
10+
"""Get backup codes for the user, creating a new set if needed."""
1711
account = user_account_name(username)
1812

1913
if not user_exists(account):

compiler_admin/commands/user/convert.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
user_is_staff,
1717
)
1818

19-
2019
ACCOUNT_TYPE_OU = {"contractor": OU_CONTRACTORS, "partner": OU_PARTNERS, "staff": OU_STAFF}
2120

2221

@@ -26,9 +25,7 @@
2625
@click.argument("account_type", type=click.Choice(ACCOUNT_TYPE_OU.keys(), case_sensitive=False))
2726
@click.pass_context
2827
def convert(ctx: click.Context, username: str, account_type: str, **kwargs):
29-
"""
30-
Convert a user of one type to another.
31-
"""
28+
"""Convert a user of one type to another."""
3229
account = user_account_name(username)
3330

3431
if not user_exists(account):

compiler_admin/commands/user/create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from compiler_admin.services.google import (
55
GROUP_TEAM,
66
USER_HELLO,
7-
add_user_to_group,
87
CallGAMCommand,
8+
add_user_to_group,
99
user_account_name,
1010
user_exists,
1111
)
@@ -22,7 +22,7 @@ def create(username: str, notify: str = "", gam_args: list = []):
2222
2323
Extra args are passed along to GAM as options.
2424
25-
https://github.com/GAM-team/GAM/wiki/Users#create-a-user
25+
<https://github.com/GAM-team/GAM/wiki/Users#create-a-user>
2626
"""
2727
account = user_account_name(username)
2828

compiler_admin/commands/user/deactivate.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
def deactivate(
3333
ctx: click.Context, username: str, force: bool = False, recovery_email: str = "", recovery_phone: str = "", **kwargs
3434
):
35-
"""
36-
Deactivate (but do not delete) a user.
37-
"""
35+
"""Deactivate (but do not delete) a user."""
3836
account = user_account_name(username)
3937

4038
if not user_exists(account):

compiler_admin/commands/user/delete.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
@click.option("-f", "--force", is_flag=True, help="Don't ask for confirmation.")
99
@click.argument("username")
1010
def delete(username: str, force: bool = False, **kwargs):
11-
"""
12-
Delete a user account.
13-
"""
11+
"""Delete a user account."""
1412
account = user_account_name(username)
1513

1614
if not user_exists(account):

compiler_admin/commands/user/offboard.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55
from compiler_admin import RESULT_FAILURE, RESULT_SUCCESS
66
from compiler_admin.commands.user.deactivate import deactivate
77
from compiler_admin.commands.user.delete import delete
8-
from compiler_admin.services.google import (
9-
USER_ARCHIVE,
10-
CallGAMCommand,
11-
CallGYBCommand,
12-
user_account_name,
13-
user_exists,
14-
)
8+
from compiler_admin.services.google import USER_ARCHIVE, CallGAMCommand, CallGYBCommand, user_account_name, user_exists
159

1610

1711
@click.command()
@@ -22,8 +16,7 @@
2216
@click.argument("username")
2317
@click.pass_context
2418
def offboard(ctx: click.Context, username: str, alias: str = "", _delete: bool = False, force: bool = False, **kwargs):
25-
"""
26-
Fully offboard a user from Compiler.
19+
"""Fully offboard a user from Compiler.
2720
2821
Deactivate, back up email, transfer Calendar/Drive, and optionally delete.
2922
"""

0 commit comments

Comments
 (0)