-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpyproject.toml
63 lines (50 loc) · 1.49 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
[project]
name = "smithy-python"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
[dependency-groups]
dev = [
"black>=25.1.0",
"docformatter>=1.7.5",
"pyright>=1.1.396",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.3",
"pytest-cov>=6.0.0",
"ruff>=0.9.7",
]
[tool.uv]
package = false
[tool.uv.workspace]
members = ["packages/*"]
[tool.uv.sources]
smithy_core = { workspace = true }
smithy_http = { workspace = true }
smithy_json = { workspace = true }
smithy_aws_core = { workspace = true }
smithy_aws_event_stream = { workspace = true }
aws_sdk_signers = {workspace = true }
[tool.pyright]
typeCheckingMode = "strict"
[tool.pytest.ini_options]
asyncio_mode = "auto" # makes pytest run async tests without having to be marked with the @pytest.mark.asyncio decorator
addopts = [ "--import-mode=importlib", "--cov", "--cov-report=term-missing" ]
[tool.docformatter]
recursive = true
black = true
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
# candidates: DTZ, EM, INP, ISC, PERF, SIM118, SIM401, SLOT
# perhaps in the future: N, PYI, TC, TID
# probably not, a lot of work: DOC, D, PL, TRY
select = [ "ASYNC", "C4", "E1", "E4", "E7", "E9", "F", "FURB", "G", "I", "LOG", "PIE", "RUF", "S", "T", "UP" ]
exclude = [ "packages/smithy-core/src/smithy_core/rfc3986.py" ]
[tool.ruff.lint.isort]
classes = ["URI"]
[tool.ruff.lint.per-file-ignores]
"**/{tests}/*" = ["S"]
[tool.ruff.format]
docstring-code-format = true