| 1 |
[build-system] |
| 2 |
requires = ['setuptools'] |
| 3 |
build-backend = 'setuptools.build_meta' |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "beangrow" |
| 7 |
version = '1.0.1' |
| 8 |
description = 'Returns calculations on portfolios in Beancount Resources' |
| 9 |
authors = [ |
| 10 |
{ name = 'Martin Blais', email = '[email protected]' }, |
| 11 |
] |
| 12 |
maintainers = [ |
| 13 |
{ name = 'Martin Blais', email = '[email protected]' }, |
| 14 |
] |
| 15 |
readme = "README.md" |
| 16 |
keywords = [ |
| 17 |
'accounting', 'ledger', 'beancount', 'returns', 'investments' |
| 18 |
] |
| 19 |
classifiers = [ |
| 20 |
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)', |
| 21 |
'Programming Language :: Python :: 3 :: Only', |
| 22 |
'Programming Language :: Python :: 3.10', |
| 23 |
'Programming Language :: Python :: 3.11', |
| 24 |
'Programming Language :: Python :: 3.12', |
| 25 |
'Programming Language :: Python :: 3.13', |
| 26 |
'Programming Language :: SQL', |
| 27 |
'Topic :: Office/Business :: Financial :: Accounting', |
| 28 |
] |
| 29 |
requires-python = '>= 3.10' |
| 30 |
dependencies = [ |
| 31 |
'numpy >= 1.26.4', |
| 32 |
'pandas >= 2.2.2', |
| 33 |
'matplotlib >= 3.9.0', |
| 34 |
'beancount >= 2.3.6', |
| 35 |
'scipy >= 1.13.1', |
| 36 |
'beanprice >= 1.2.1', |
| 37 |
'protobuf >= 5.29.3', |
| 38 |
] |
| 39 |
|
| 40 |
[dependency-groups] |
| 41 |
dev = [ |
| 42 |
'ruff >= 0.9.3', |
| 43 |
'pandas-stubs >= 2.2.2.240514', |
| 44 |
'matplotlib-stubs >= 0.2.0', |
| 45 |
'mypy>=1.14.1', |
| 46 |
'types-protobuf>=5.29.1.20241207', |
| 47 |
'types-python-dateutil>=2.9.0.20241206', |
| 48 |
"pytest>=8.3.4", |
| 49 |
] |
| 50 |
|
| 51 |
[tool.setuptools] |
| 52 |
license-files = [] |
| 53 |
|
| 54 |
[project.scripts] |
| 55 |
beangrow-returns = "beangrow.compute_returns:main" |
| 56 |
beangrow-prices = "beangrow.download_prices:main" |
| 57 |
beangrow-prices-file = "beangrow.download_prices_from_file:main" |
| 58 |
|
| 59 |
[tool.black] |
| 60 |
line-length = 88 |
| 61 |
|
| 62 |
[tool.pyright] |
| 63 |
exclude = [ |
| 64 |
".venv", |
| 65 |
".direnv", |
| 66 |
] |
| 67 |
typeCheckingMode = "standard" |
| 68 |
useLibraryCodeForTypes = true |
| 69 |
reportMissingTypeStubs = false |
| 70 |
|
| 71 |
[tool.ruff] |
| 72 |
select = [ "ALL" ] |
| 73 |
ignore = [ |
| 74 |
|
| 75 |
"ANN101", |
| 76 |
|
| 77 |
|
| 78 |
"ANN102", |
| 79 |
|
| 80 |
|
| 81 |
"COM", |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
"D200", |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
"D202", |
| 90 |
|
| 91 |
|
| 92 |
"D203", |
| 93 |
|
| 94 |
|
| 95 |
"D212", |
| 96 |
|
| 97 |
|
| 98 |
"D415", |
| 99 |
|
| 100 |
|
| 101 |
"ERA", |
| 102 |
|
| 103 |
|
| 104 |
"FA", |
| 105 |
|
| 106 |
|
| 107 |
"FIX", |
| 108 |
|
| 109 |
|
| 110 |
"PLC0414", |
| 111 |
|
| 112 |
|
| 113 |
"RSE102", |
| 114 |
|
| 115 |
|
| 116 |
"T20", |
| 117 |
|
| 118 |
|
| 119 |
"TCH", |
| 120 |
|
| 121 |
|
| 122 |
"TD002", |
| 123 |
|
| 124 |
|
| 125 |
"TD003", |
| 126 |
] |
| 127 |
|
| 128 |
[tool.ruff.per-file-ignores] |
| 129 |
"tests/*" = [ |
| 130 |
"D100", |
| 131 |
"D103", |
| 132 |
"D104", |
| 133 |
"S101", |
| 134 |
] |
| 135 |
|
| 136 |
[tool.coverage.report] |
| 137 |
skip_covered = true |
| 138 |
skip_empty = true |