Skip to content

Commit 318093b

Browse files
committed
🔧 Fix D413 issues
1 parent 8291747 commit 318093b

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

apricot/oauth/keycloak_client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ def __init__(
2323
) -> None:
2424
"""Initialise a KeycloakClient.
2525
26-
@param keycloak_base_url: Base URL for Keycloak server
27-
@param keycloak_domain_attribute: Keycloak attribute used to define your domain
28-
@param keycloak_realm: Realm for Keycloak server
26+
Args:
27+
keycloak_base_url: Base URL for Keycloak server
28+
keycloak_domain_attribute: Keycloak attribute used to define your domain
29+
keycloak_realm: Realm for Keycloak server
30+
kwargs: OAuthClient keyword arguments
2931
"""
3032
self.base_url = keycloak_base_url
3133
self.domain_attribute = keycloak_domain_attribute

apricot/oauth/microsoft_entra_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def __init__(
1919
) -> None:
2020
"""Initialise a MicrosoftEntraClient.
2121
22-
@param entra_tenant_id: Tenant ID for the Entra ID
22+
Args:
23+
entra_tenant_id: Tenant ID for the Entra ID
24+
kwargs: OAuthClient keyword arguments
2325
"""
2426
redirect_uri = "urn:ietf:wg:oauth:2.0:oob" # this is the "no redirect" URL
2527
token_url = (

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ ignore = [
8585
"D104", # missing-docstring-in-package
8686
"D203", # one-blank-line-before-class (due to conflict with D211)
8787
"D213", # multi-line-summary-second-line (due to conflict with D212)
88-
"D413", # missing-blank-line-after-last-section
8988
"CPY001", # missing-copyright-notice
9089
"G010", # logging-warn (due to incorrect heuristic)
9190
]
@@ -101,6 +100,7 @@ combine-as-imports = true
101100
known-first-party = ["apricot"]
102101

103102
[tool.ruff.lint.pydocstyle]
103+
convention = "google"
104104
ignore-decorators = ["typing.overload"]
105105

106106
[tool.mypy]

0 commit comments

Comments
 (0)