-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
88 lines (79 loc) · 1.83 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 = "test-saml-idp"
version = "0.1.0"
description = "Default template for PDM package"
authors = [
{name = "Paul Watts", email = "[email protected]"},
]
dependencies = [
"fastapi[standard]>=0.112.1",
"jinja2>=3.1.4",
"lxml>=5.3.0",
"pydantic-settings>=2.4.0",
"signxml>=4.0.0",
]
requires-python = "==3.12.*"
readme = "README.md"
license = {text = "MIT"}
[tool.pdm]
distribution = false
[tool.pdm.scripts]
_.env = {PYTHONPATH = "src"}
dev = "fastapi dev"
run = "fastapi run"
test.cmd = "pytest"
lint-check = "ruff check ."
type-check = "pyright"
format-check = "black --check ."
lint.composite = ["lint-check", "type-check", "format-check"]
lint.keep_going = true
fix-all.composite = [
"ruff check --fix .",
"black ."
]
[tool.pdm.dev-dependencies]
test = [
"black>=24.8.0",
"pyright>=1.1.377",
"pytest>=8.3.2",
"pytest-asyncio>=0.24.0",
"pytest-cov>=5.0.0",
"pytest-httpx>=0.30.0",
"ruff>=0.6.2",
]
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN401",
"COM812",
"D203",
"D211",
"D212",
"D213",
"S320",
"PLR0913",
"TRY300"
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D100", "D104", "S"]
[tool.pyright]
pythonVersion = "3.12"
disableBytesTypePromotions = true
strictListInference = true
strictDictionaryInference = true
structSetInference = true
reportMissingTypeArgument = true
reportMatchNotExhaustive = true
reportUnnecessaryCast = true
reportUnnecessaryComparison = true
reportUnnecessaryContains = true
reportUnnecessaryIsInstance = true
reportUnnecessaryTypeIgnoreComment = true
# signxml and lxml have too many import problems
reportPrivateImportUsage = false
reportAttributeAccessIssue = false
[tool.pytest.ini_options]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "session"