-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
80 lines (68 loc) · 1.57 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
[project]
name = "oxr"
version = "0.1.1"
description = "Type-safe client for the openexchangerates API."
authors = [{ name = "Maxwell Muoto", email = "maxmuoto@gmail.com" }]
license = { file = "LICENSE" }
readme = "README.md"
dependencies = [
"pydantic>=2.0.0,<3",
"requests>=2.0.0,<3",
"typing-extensions>=4.0.0,<5",
]
requires-python = ">=3.9"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.optional-dependencies]
async = ["aiohttp>=3.0.0,<4"]
[tool.coverage.run]
source = ["oxr"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"pass",
"pytest.mark.skip",
"@(typing\\.)?overload",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"class .*\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
show_missing = true
fail_under = 100
omit = ["*/tests/*"]
[dependency-groups]
dev = [
"pytest >=8.1.1,<9",
"pytest-cov>=6.0.0,<7",
"pyright ~=1.1.364",
"ruff ~=0.4.5",
"responses~=0.25.3",
"aioresponses~=0.7.6",
"pytest-asyncio~=0.23.7",
"python-dotenv~=1.0.1",
"ipdb~=0.13.13",
]
async = ["aiohttp~=3.9.5"]
[tool.ruff]
target-version = "py39"
line-length = 100
lint.extend-select = ["I"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.pyright]
include = ["oxr"]
exclude = [
"**/node_modules",
"**/__pycache__",
"src/experimental",
"src/typestubs",
"**/venv",
]
pythonVersion = "3.9"
typeCheckingMode = "strict"