-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
86 lines (76 loc) · 1.87 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
[tool.poetry]
name = "openyieldtables"
version = "2.65.2"
description = ""
authors = ["Tree.ly <[email protected]>", "FMM <[email protected]>"]
maintainers = ["FMM <[email protected]>", "Tree.ly <[email protected]>"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/treely/openyieldtables"
documentation = "https://openyieldtables.readthedocs.io"
packages = [
{ include = "openyieldtables", from = "src" },
{ include = "src/openyieldtables/py.typed" },
]
[tool.poetry.dependencies]
python = "^3.9"
pydantic = "^2.6.4"
pandas = "^2.2.1"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=openyieldtables --cov-report term-missing --cov-report html"
[tool.black]
line-length = 79
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.isort]
profile = "black"
line_length = 79
force_sort_within_sections = true
[tool.mypy]
python_version = "3.9"
warn_return_any = true
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
branch = "main"
build_command = "pip install poetry==1.8.2 && poetry build"
[tool.poetry.group.dev.dependencies]
pytest = "^8.1.1"
pytest-cov = "^5.0.0"
pytest-asyncio = "^0.18.0"
flake8 = "^7.0.0"
black = "^24.3.0"
isort = "^5.13.2"
pre-commit = "^3.7.0"
mypy = "^1.9.0"
pandas-stubs = "^2.2.1.240316"
types-pyyaml = "^6.0.12.20240311"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.5.3"
mkdocstrings = { extras = ["python"], version = "^0.24.3" }
mkdocs-macros-plugin = "^1.0.5"
griffe = "^0.11.1"
[tool.poetry.group.api.dependencies]
fastapi = "^0.110.1"
uvicorn = "^0.29.0"
httpx = "^0.27.0"
pyaml = "^24.4.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"