aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml72
1 files changed, 57 insertions, 15 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 2f1046d..edea8a7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,24 +6,66 @@ authors = ["Joe Banks <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
-python = "^3.9"
-starlette = "^0.20.4"
+python = "^3.12"
+starlette = "^0.37.2"
nested_dict = "^1.61"
-uvicorn = {extras = ["standard"], version = "^0.18.2"}
-motor = "3.0.0"
-python-dotenv = "^0.20.0"
-pyjwt = "^2.4.0"
-httpx = "^0.23.0"
-gunicorn = "^20.1.0"
-pydantic = "^1.8.2"
-spectree = "^0.10.5"
-deepmerge = "^1.0.1"
-sentry-sdk = "^1.9.3"
+uvicorn = { extras = ["standard"], version = "^0.30.1" }
+motor = "3.5.0"
+python-dotenv = "^1.0.1"
+pyjwt = "^2.8.0"
+httpx = "^0.27.0"
+pydantic = "^1.10.17"
+spectree = "^1.2.10"
+deepmerge = "^1.1.1"
+sentry-sdk = "^2.7.1"
-[tool.poetry.dev-dependencies]
-flake8 = "^5.0.4"
-flake8-annotations = "^2.9.1"
+[tool.poetry.group.dev.dependencies]
+ruff = "^0.5.1"
+pre-commit = "^3.7.1"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
+
+[tool.ruff]
+target-version = "py312"
+extend-exclude = [".cache", "resources"]
+line-length = 100
+unsafe-fixes = true
+preview = true
+output-format = "concise"
+
+[tool.ruff.lint]
+select = ["ALL"]
+ignore = [
+ "ANN002", "ANN003", "ANN101", "ANN102", "ANN204", "ANN206", "ANN401",
+ "B904",
+ "C401", "C408",
+ "CPY001",
+ "D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D301",
+ "D400", "D401", "D402", "D404", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D412", "D413", "D414", "D416", "D417",
+ "E731",
+ "RET504",
+ "RUF005",
+ "S311", "S113", "S324",
+ "SIM102", "SIM108",
+ "PD",
+ "PLR0913", "PLR0917", "PLR6301", "PLR1702", "PLR0915", "PLR2004",
+ "PLR0912", "PLR0914", "PLR0911",
+ "DTZ003",
+ "INP001",
+ "D102",
+ "D103", "D103", "D101", "D106",
+ "C901",
+ "DTZ005",
+ "TRY004",
+ "N805",
+
+ # Rules suggested to be ignored when using ruff format
+ "COM812", "D206", "E111", "E114", "E117", "E501", "ISC001", "Q000", "Q001", "Q002", "Q003", "W191",
+]
+
+[tool.ruff.lint.isort]
+order-by-type = false
+case-sensitive = true
+combine-as-imports = true