-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ruff and fix format and lint issues
- Loading branch information
Showing
23 changed files
with
2,845 additions
and
2,504 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,6 +2,4 @@ | |
|
||
|
||
def pprint(data): | ||
|
||
return json.dumps(data, indent=4) | ||
|
||
return json.dumps(data, indent=4) |
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,10 +1,28 @@ | ||
class ServiceStatusCodes: | ||
OK = 200 | ||
CREATED = 201 | ||
CONFLICT = 409 | ||
NOT_FOUND = 404 | ||
BAD_REQUEST = 400 | ||
UNAUTHORIZED = 401 | ||
FORBIDDEN = 403 | ||
INTERNAL_SERVER_ERROR = 500 | ||
NOT_IMPLEMENTED = 501 | ||
SERVICE_UNAVAILABLE = 503 | ||
GATEWAY_TIMEOUT = 504 | ||
|
||
@classmethod | ||
def get(cls, status_name): | ||
return getattr(cls, status_name.upper(), None) | ||
|
||
|
||
class UnknownProtocol(Exception): | ||
pass | ||
pass | ||
|
||
|
||
class FileProtocolDisabled(Exception): | ||
pass | ||
pass | ||
|
||
|
||
class InvalidHostPath(Exception): | ||
pass | ||
pass |
Oops, something went wrong.