-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
129 lines (115 loc) · 2.65 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[project.urls]
homepage = 'https://github.com/WGBH-MLA/chowda'
documentation = 'https://WGBH-MLA.github.io/chowda/'
repository = 'https://github.com/WGBH-MLA/chowda'
[project]
name = 'chowda'
dynamic = ['version']
description = 'A CLAMS processing application'
authors = [{ name = 'WGBH-MLA', email = '[email protected]' }]
requires-python = '>=3.8.1,<4.0'
readme = 'README.md'
license = { text = 'MIT' }
dependencies = [
"fastapi~=0.115",
"starlette-admin~=0.14",
"sqlmodel~=0.0",
"pydantic[email]~=2.9",
"sonyci~=0.3",
"psycopg2~=2.9",
"metaflow~=2.12",
"alembic~=1.13",
"python-dotenv~=1.0",
"authlib~=1.3",
"itsdangerous~=2.2",
"httpx~=0.27",
"fastapi-cache2~=0.2",
"rich~=13.9",
"pyjwt~=2.9",
]
[project.optional-dependencies]
production = [
"uvicorn[standard]~=0.32",
"gunicorn~=23.0",
]
test = [
"factory-boy~=3.3",
"pytest~=8.3",
"pytest-cov~=5.0",
"pytest-sugar~=1.0",
"pytest-xdist~=3.6",
"httpx~=0.27",
"nbmake~=1.5",
"vcrpy~=6.0",
"pytest-vcr~=1.0",
"urllib3~=1.26",
"pytest-mock~=3.14",
"pytest-asyncio~=0.24",
"trio~=0.26",
]
locust = [
"locust~=2.25",
"pydantic-factories~=1.17",
]
development = ["kubernetes~=31.0"]
[tool.black]
extend-exclude = 'migrations'
[tool.coverage.run]
omit = ['tests/*']
[tool.pytest.ini_options]
testpaths = ['tests', 'docs']
[tool.ruff]
extend-exclude = ['migrations', 'docs']
[tool.ruff.format]
quote-style = 'single'
[tool.lint]
ignore = ['Q000']
select = [
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'C90', # mccabe
'E', # pycodestyle errors
'ERA', # eradicate
'F', # pyflakes
# 'I', # isort
'INT', # flake8-gettext
'N', # pep8-naming
'PIE', # flake8-pie,
'PLC', # pylint - convention
'PLE', # pylint - error
'PLW', # pylint - warning
'Q', # flake8-quotes
'RET', # flake8-return,
'RUF', # Ruff-specific rules
'SIM', # flake8-simplify
'UP', # pyupgrade
'W', # pycodestyle warnings
]
[tool.pdm]
version = { source = 'file', path = 'chowda/_version.py' }
[tool.pdm.build]
includes = []
[tool.pdm.dev-dependencies]
dev = [
"uvicorn~=0.32",
"black~=24.8",
"ruff~=0.6",
"pre-commit~=3.5",
]
docs = [
"mkdocs~=1.6",
"mkdocs-material~=9.5",
"mkdocs-git-revision-date-localized-plugin~=1.2",
"mike~=2.1",
"mkdocstrings[python]~=0.26",
"mkdocs-jupyter~=0.24",
]
[tool.pdm.scripts]
dev = 'uvicorn chowda.app:app --reload'
docs = 'mkdocs serve'
format = 'black -S .'
lint = 'ruff .'
migrate = 'alembic upgrade head'
test = 'pytest'
[tool.setuptools.packages.find]
include = ['chowda', 'tests']