Compare commits

..

3 Commits

Author SHA1 Message Date
9b38c2b037 Deleted useless tomlsort section. 2025-05-29 22:26:40 +03:00
5b021c0952 Added version getter for setuptools 2025-05-29 22:26:16 +03:00
098e5cad64 Deleted useless message param in exceptions.py 2025-05-29 22:21:13 +03:00
2 changed files with 3 additions and 21 deletions

View File

@ -12,34 +12,22 @@ class NotLettersAPIError(StollenAPIError, NotLettersError):
class NotLettersBadRequestError(NotLettersAPIError):
"""400 Bad Request"""
message = "Bad request."
class NotLettersUnauthorizedError(NotLettersAPIError):
"""401 Unauthorized"""
message = "Unauthorized."
class NotLettersPaymentRequiredError(NotLettersAPIError):
"""402 Payment Required"""
message = "Payment required."
class NotLettersForbiddenError(NotLettersAPIError):
"""403 Forbidden"""
message = "Forbidden."
class NotLettersNotFoundError(NotLettersAPIError):
"""404 Not Found"""
message = "Resource not found."
class NotLettersInternalServerError(NotLettersAPIError):
"""500 Internal Server Error"""
message = "Internal server error."

View File

@ -1,7 +1,3 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
authors = [{name = "LORES"}]
classifiers = [
@ -16,6 +12,7 @@ dependencies = [
"stollen>=0.6.8",
]
description = "A lightweight NotLetters SDK based on stollen."
dynamic = ["version"]
keywords = [
"letters",
"mails",
@ -25,7 +22,6 @@ keywords = [
license-files = ["LICENSE"]
name = "notletters"
readme = "README.md"
version = "0.1.1"
requires-python = ">=3.9"
[project.urls]
@ -94,10 +90,8 @@ ignore-names = []
[tool.ruff.lint.pylint]
allow-magic-value-types = []
[tool.tomlsort]
all = true
sort_first = ["project"]
trailing_comma_inline_array = true
[tool.setuptools.dynamic]
version = {attr = "notletters.__version__"}
[tool.uv]
cache-dir = ".cache/uv"