Skip to content

Commit bd9fa48

Browse files
committed
🔧 Fix D105 issues
1 parent f343434 commit bd9fa48

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

apricot/ldap/oauth_ldap_server_factory.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ def __init__(
4141
self.allow_anonymous_binds = allow_anonymous_binds
4242

4343
def __repr__(self: Self) -> str:
44+
"""Generate string representation of OAuthLDAPServerFactory.
45+
46+
Returns:
47+
A string representation of OAuthLDAPServerFactory.
48+
"""
4449
return f"{self.__class__.__name__} using adaptor {self.adaptor}"
4550

4651
def buildProtocol(self: Self, addr: IAddress) -> Protocol: # noqa: N802

apricot/ldap/oauth_ldap_tree.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ def root(self: Self) -> OAuthLDAPEntry:
7373
return self.root_
7474

7575
def __repr__(self: Self) -> str:
76+
"""Generate string representation of OAuthLDAPTree.
77+
78+
Returns:
79+
A string representation of OAuthLDAPTree.
80+
"""
7681
return f"{self.__class__.__name__} with backend {self.oauth_client.__class__.__name__}" # noqa: E501
7782

7883
def lookup(self: Self, dn: DistinguishedName | str) -> defer.Deferred[ILDAPEntry]:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ select = ["ALL"]
8383
ignore = [
8484
"D100", # missing-docstring-in-module
8585
"D104", # missing-docstring-in-package
86-
"D105", # missing-docstring-in-magic-method
8786
"D203", # one-blank-line-before-class (due to conflict with D211)
8887
"D213", # multi-line-summary-second-line (due to conflict with D212)
8988
"D413", # missing-blank-line-after-last-section

0 commit comments

Comments
 (0)