Compare commits
6 Commits
c53ef03d28
...
2a317947ca
Author | SHA1 | Date | |
---|---|---|---|
2a317947ca | |||
4d8843f3cb | |||
229901206d | |||
9b38c2b037 | |||
5b021c0952 | |||
098e5cad64 |
@ -1,2 +1,2 @@
|
|||||||
__version_tuple__ = (0, 1, 0)
|
__version_tuple__ = (0, 1, 2)
|
||||||
__version__ = ".".join(map(str, __version_tuple__))
|
__version__ = ".".join(map(str, __version_tuple__))
|
||||||
|
@ -12,34 +12,22 @@ class NotLettersAPIError(StollenAPIError, NotLettersError):
|
|||||||
class NotLettersBadRequestError(NotLettersAPIError):
|
class NotLettersBadRequestError(NotLettersAPIError):
|
||||||
"""400 Bad Request"""
|
"""400 Bad Request"""
|
||||||
|
|
||||||
message = "Bad request."
|
|
||||||
|
|
||||||
|
|
||||||
class NotLettersUnauthorizedError(NotLettersAPIError):
|
class NotLettersUnauthorizedError(NotLettersAPIError):
|
||||||
"""401 Unauthorized"""
|
"""401 Unauthorized"""
|
||||||
|
|
||||||
message = "Unauthorized."
|
|
||||||
|
|
||||||
|
|
||||||
class NotLettersPaymentRequiredError(NotLettersAPIError):
|
class NotLettersPaymentRequiredError(NotLettersAPIError):
|
||||||
"""402 Payment Required"""
|
"""402 Payment Required"""
|
||||||
|
|
||||||
message = "Payment required."
|
|
||||||
|
|
||||||
|
|
||||||
class NotLettersForbiddenError(NotLettersAPIError):
|
class NotLettersForbiddenError(NotLettersAPIError):
|
||||||
"""403 Forbidden"""
|
"""403 Forbidden"""
|
||||||
|
|
||||||
message = "Forbidden."
|
|
||||||
|
|
||||||
|
|
||||||
class NotLettersNotFoundError(NotLettersAPIError):
|
class NotLettersNotFoundError(NotLettersAPIError):
|
||||||
"""404 Not Found"""
|
"""404 Not Found"""
|
||||||
|
|
||||||
message = "Resource not found."
|
|
||||||
|
|
||||||
|
|
||||||
class NotLettersInternalServerError(NotLettersAPIError):
|
class NotLettersInternalServerError(NotLettersAPIError):
|
||||||
"""500 Internal Server Error"""
|
"""500 Internal Server Error"""
|
||||||
|
|
||||||
message = "Internal server error."
|
|
||||||
|
@ -25,7 +25,7 @@ keywords = [
|
|||||||
license-files = ["LICENSE"]
|
license-files = ["LICENSE"]
|
||||||
name = "notletters"
|
name = "notletters"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
version = "0.1.1"
|
dynamic = ["version"]
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
@ -94,10 +94,8 @@ ignore-names = []
|
|||||||
[tool.ruff.lint.pylint]
|
[tool.ruff.lint.pylint]
|
||||||
allow-magic-value-types = []
|
allow-magic-value-types = []
|
||||||
|
|
||||||
[tool.tomlsort]
|
[tool.hatch.version]
|
||||||
all = true
|
path = "notletters/__meta__.py"
|
||||||
sort_first = ["project"]
|
|
||||||
trailing_comma_inline_array = true
|
|
||||||
|
|
||||||
[tool.uv]
|
[tool.uv]
|
||||||
cache-dir = ".cache/uv"
|
cache-dir = ".cache/uv"
|
||||||
|
Reference in New Issue
Block a user