Skip to content

Commit 95b316e

Browse files
committed
chore: fix code format
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent c2cd145 commit 95b316e

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

aboutcode/api_auth/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ In your main `models.py` module:
1515
```python
1616
from aboutcode.api_auth import AbstractAPIToken
1717

18+
1819
class APIToken(AbstractAPIToken):
1920
class Meta:
2021
verbose_name = "API Token"
@@ -40,9 +41,7 @@ Declare the `APITokenAuthentication` authentication class as one of the
4041

4142
```python
4243
REST_FRAMEWORK = {
43-
"DEFAULT_AUTHENTICATION_CLASSES": (
44-
"aboutcode.api_auth.APITokenAuthentication",
45-
),
44+
"DEFAULT_AUTHENTICATION_CLASSES": ("aboutcode.api_auth.APITokenAuthentication",),
4645
}
4746
```
4847

@@ -64,9 +63,7 @@ from aboutcode.api_auth.views import BaseRevokeAPIKeyView
6463

6564
class GenerateAPIKeyView(LoginRequiredMixin, BaseGenerateAPIKeyView):
6665
success_url = reverse_lazy("profile")
67-
success_message = (
68-
"Copy your API key now, it will not be shown again: <pre>{plain_key}</pre>"
69-
)
66+
success_message = "Copy your API key now, it will not be shown again: <pre>{plain_key}</pre>"
7067

7168

7269
class RevokeAPIKeyView(LoginRequiredMixin, BaseRevokeAPIKeyView):

0 commit comments

Comments
 (0)