-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
65 lines (57 loc) · 1.3 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
[project]
dependencies = [
"strawberry-graphql>=0.129.0",
"uvicorn>=0.18.3",
"prisma>=0.6.6",
"fastapi>=0.82.0",
"pydantic>=1.10.2",
]
requires-python = ">=3.7"
[project.optional-dependencies]
[tool.pdm]
allow_prereleases = true
[[tool.pdm.source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[tool.pdm.dev-dependencies]
dev = [
"flake8>=5.0.4",
"black>=22.8.0",
"pdbpp>=0.10.3",
"bpython>=0.23",
"pytest>=7.1.3",
"rich>=12.5.1",
"libcst>=0.4.7",
"mypy>=0.971",
"typer>=0.6.1",
"httpx>=1.0.0b0",
"jsondiff>=2.0.0",
"python-dateutil>=2.8.2",
]
[tool.pdm.scripts]
cli = "python cli.py"
server = "uvicorn app:app --reload"
prod-server = "uvicorn app:app --host 0.0.0.0 --port 8080"
[build-system]
build-backend = "pdm.pep517.api"
requires = ["pdm-pep517>=1.0.0"]
[tool.black]
extend-exclude = '''
tests/codegen/snapshots/
'''
line-length = 88
[tool.isort]
combine_as_imports = true
combine_star = true
indent = 4
known_django = ["django"]
known_first_party = ["strawberry"]
known_graphql = ["graphql"]
known_pytest = ["pytest"]
lines_after_imports = 2
profile = "black"
sections = ["FUTURE", "STDLIB", "PYTEST", "THIRDPARTY", "DJANGO", "GRAPHQL", "FIRSTPARTY", "LOCALFOLDER"]
src_paths = ["strawberry", "tests", "scripts"]
[tool.mypy]
plugins = ["strawberry.ext.mypy_plugin"]