-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (78 loc) · 1.8 KB
/
pyproject.toml
File metadata and controls
86 lines (78 loc) · 1.8 KB
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
[project]
name = "Fable.Python"
version = "0.0.0"
description = "Fable"
authors = [{ name = "Dag Brattli", email = "dag@brattli.net" }]
requires-python = ">= 3.12, < 4"
readme = "README.md"
license = "MIT"
dependencies = [
"fable-library==5.0.0rc3",
]
[project.urls]
Homepage = "https://fable.io"
[dependency-groups]
dev = [
"pytest>=6.2.4,<10",
"ruff>=0.14.0",
"pydantic>=2.0.0",
"httpx>=0.28.1",
"fastapi>=0.115.0",
]
# Example dependency groups
flask = [
"Flask>=3.1.2,<4",
]
django = [
"Django>=4.2,<5",
]
fastapi = [
"fastapi>=0.100.0",
"pydantic>=2.0.0",
"uvicorn[standard]>=0.23.0",
]
# Meta-group that includes all example dependencies
examples = [
{ include-group = "flask" },
{ include-group = "django" },
{ include-group = "fastapi" },
]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"C4", # flake8-comprehensions
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.pyright]
reportMissingTypeStubs = false
reportMissingImports = false
reportUnnecessaryTypeIgnoreComment = true
reportUnusedImport = true
reportUnusedVariable = true
reportUnnecessaryIsInstance = true
reportUnnecessaryComparison = true
reportUnnecessaryCast = true
reportPrivateUsage = true
reportImportCycles = true
reportDuplicateImport = true
reportConstantRedefinition = true
reportOverlappingOverload = true
reportInconsistentConstructor = true
reportImplicitStringConcatenation = true
pythonVersion = "3.12"
typeCheckingMode = "basic"