forked from smithy-lang/smithy-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (57 loc) · 1.63 KB
/
pyproject.toml
File metadata and controls
69 lines (57 loc) · 1.63 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
[project]
name = "smithy-python"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
[dependency-groups]
test = [
"pytest>=8.3.4",
"pytest-asyncio>=0.25.3",
"pytest-cov>=6.0.0",
"freezegun>=1.5.1",
]
lint = [
"ruff>=0.9.7",
]
typing = [
"pyright>=1.1.400",
]
changelog = [
"jinja2>=3.1.6"
]
[tool.uv]
required-version = ">=0.7.2"
package = false
default-groups = ["test", "lint", "typing", "changelog"]
[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"
enableExperimentalFeatures = true
[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" ]
consider_namespace_packages = 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