-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
88 lines (75 loc) · 2.11 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[project]
name = "api.letsbuilda.dev"
description = "Public API for our projects"
authors = [{ name = "Bradley Reynolds", email = "[email protected]" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.12"
dynamic = ["version"]
dependencies = [
# Core
## Metrics
"sentry-sdk>=2.10.0",
## Settings and configuration
"pydantic>=2.10.1",
"pydantic-settings>=2.6.1",
## Web
"gunicorn>=23.0.0",
"uvicorn-worker>=0.2.0",
"uvicorn[standard]>=0.30.3",
"litestar[brotli]>=2.10.0",
"imsosorry>=1.2.1",
]
[project.urls]
repository = "https://github.com/letsbuilda/api.letsbuilda.dev/"
documentation = "https://docs.letsbuilda.dev/api.letsbuilda.dev/"
[project.optional-dependencies]
docs = [
"sphinx>=7.4.4",
"furo>=2024.5.6",
"sphinx-autoapi>=3.1.2",
"releases>=2.1.1",
]
[dependency-groups]
dev = [
# DX
"nox>=2024.4.15",
"pre-commit>=3.7.1",
# Linters
"ruff>=0.5.2",
"mypy>=1.10.1",
]
tests = ["pytest>=8.2.2", "pytest-randomly>=3.15.0", "coverage>=7.6.1"]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic.version]
attr = "api.__version__"
[tool.ruff]
target-version = "py313"
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"CPY001", # (Missing copyright notice at top of file) - No license
"S311", # (Standard pseudo-random generators are not suitable for cryptographic purposes) - Not a crypto lib
]
[tool.ruff.lint.extend-per-file-ignores]
"docs/*" = [
"INP001", # (File `tests/*.py` is part of an implicit namespace package. Add an `__init__.py`.) - Docs are not modules
]
"tests/*" = [
"INP001", # (File `tests/*.py` is part of an implicit namespace package. Add an `__init__.py`.) - Tests are not modules
"S101", # (Use of `assert` detected) - Yes, that's the point
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["imsosorry"]
ignore_missing_imports = true
[tool.coverage.run]
source = ["api"]
[tool.pytest.ini_options]
addopts = "--strict-markers"