-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from alan-turing-institute/additional-checks
Add additional ruff checks
- Loading branch information
Showing
16 changed files
with
594 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
from .exceptions import LDAPException, PostgreSQLException | ||
from .exceptions import LDAPError, PostgreSQLError | ||
from .guacamole import GuacamoleUserDetails | ||
from .ldap_objects import LDAPGroup, LDAPUser | ||
from .ldap_query import LDAPQuery | ||
|
||
LDAPSearchResult = list[tuple[int, tuple[str, dict[str, list[bytes]]]]] | ||
|
||
__all__ = [ | ||
"LDAPException", | ||
"GuacamoleUserDetails", | ||
"LDAPError", | ||
"LDAPGroup", | ||
"LDAPQuery", | ||
"LDAPSearchResult", | ||
"LDAPUser", | ||
"PostgreSQLException", | ||
"PostgreSQLError", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
class LDAPException(Exception): | ||
pass | ||
class LDAPError(Exception): | ||
"""LDAP error.""" | ||
|
||
|
||
class PostgreSQLException(Exception): | ||
pass | ||
class PostgreSQLError(Exception): | ||
"""PostgreSQL error.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class GuacamoleUserDetails: | ||
"""A Guacamole user with required attributes only.""" | ||
|
||
entity_id: int | ||
full_name: str | ||
name: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from .postgresql_backend import PostgreSQLBackend | ||
from .postgresql_backend import PostgreSQLBackend, PostgreSQLConnectionDetails | ||
from .postgresql_client import PostgreSQLClient | ||
from .sql import SchemaVersion | ||
|
||
__all__ = [ | ||
"PostgreSQLBackend", | ||
"PostgreSQLConnectionDetails", | ||
"PostgreSQLClient", | ||
"SchemaVersion", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.