-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (140 loc) · 3.27 KB
/
pyproject.toml
File metadata and controls
158 lines (140 loc) · 3.27 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "grpcvcr"
description = "Record and replay gRPC interactions for testing"
readme = "README.md"
license = "MIT"
authors = [{ name = "Thomas" }]
requires-python = ">=3.11"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Pytest",
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = [
"grpcio>=1.50.0",
"protobuf>=4.21.0",
"pyyaml>=6.0",
]
[project.optional-dependencies]
dev = [
"grpcio-tools>=1.50.0",
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.21.0",
"ruff>=0.4.0",
"pyright>=1.1.350",
"pre-commit>=3.0.0",
"mypy>=1.8.0",
"types-protobuf>=4.21.0",
"types-pyyaml>=6.0",
]
docs = [
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.0",
"mkdocstrings-python>=1.8.0",
"griffe-typingdoc>=0.2.0",
]
[project.entry-points.pytest11]
grpcvcr = "grpcvcr.pytest_plugin"
[project.urls]
Homepage = "https://github.com/tboser/grpcvcr"
Documentation = "https://grpcvcr.readthedocs.io"
Repository = "https://github.com/tboser/grpcvcr"
Changelog = "https://github.com/tboser/grpcvcr/releases"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/grpcvcr/_version.py"
[tool.hatch.build.targets.sdist]
include = ["/src"]
[tool.hatch.build.targets.wheel]
packages = ["src/grpcvcr"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = [
"--strict-markers",
"--strict-config",
"-ra",
]
filterwarnings = [
"error",
"ignore:There is no current event loop:DeprecationWarning",
"ignore::pytest.PytestUnraisableExceptionWarning",
]
norecursedirs = ["tests/generated"]
[tool.coverage.run]
source = ["src/grpcvcr"]
branch = true
parallel = true
relative_files = true
omit = [
"src/grpcvcr/_version.py",
"src/grpcvcr/pytest_plugin.py",
]
[tool.coverage.paths]
source = ["src/grpcvcr"]
[tool.coverage.report]
show_missing = true
precision = 2
fail_under = 100
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"@overload",
"raise NotImplementedError",
"\\.\\.\\.",
]
[tool.ruff]
line-length = 120
target-version = "py311"
exclude = ["tests/generated", "src/grpcvcr/_version.py"]
[tool.ruff.lint]
select = [
"E",
"W",
"F",
"I",
"B",
"C4",
"UP",
"SIM",
"PTH",
"RUF",
]
ignore = [
"E501",
"B008",
"SIM108",
"SIM110",
"RUF022",
]
[tool.ruff.lint.isort]
known-first-party = ["grpcvcr"]
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "basic"
include = ["src/grpcvcr", "tests"]
reportMissingTypeStubs = false
reportIncompatibleMethodOverride = false
reportArgumentType = false
reportAbstractUsage = false
reportAttributeAccessIssue = false
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true