[build-system] requires = ['setuptools'] build-backend = 'setuptools.build_meta' [project] name = "beangrow" version = '1.0.1' description = 'Returns calculations on portfolios in Beancount Resources' authors = [ { name = 'Martin Blais', email = 'blais@furius.ca' }, ] maintainers = [ { name = 'Martin Blais', email = 'blais@furius.ca' }, ] readme = "README.md" keywords = [ 'accounting', 'ledger', 'beancount', 'returns', 'investments' ] classifiers = [ 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', 'Programming Language :: SQL', 'Topic :: Office/Business :: Financial :: Accounting', ] requires-python = '>= 3.10' dependencies = [ 'numpy >= 1.26.4', 'pandas >= 2.2.2', 'matplotlib >= 3.9.0', 'beancount >= 2.3.6', 'scipy >= 1.13.1', 'beanprice >= 1.2.1', 'protobuf >= 5.29.3', ] [dependency-groups] dev = [ 'ruff >= 0.9.3', 'pandas-stubs >= 2.2.2.240514', 'matplotlib-stubs >= 0.2.0', 'mypy>=1.14.1', 'types-protobuf>=5.29.1.20241207', 'types-python-dateutil>=2.9.0.20241206', "pytest>=8.3.4", ] [tool.setuptools] license-files = [] [project.scripts] beangrow-returns = "beangrow.compute_returns:main" beangrow-prices = "beangrow.download_prices:main" beangrow-prices-file = "beangrow.download_prices_from_file:main" [tool.black] line-length = 88 [tool.pyright] exclude = [ ".venv", ".direnv", ] typeCheckingMode = "standard" useLibraryCodeForTypes = true reportMissingTypeStubs = false [tool.ruff] select = [ "ALL" ] ignore = [ # Pyright automatically infers the type of `self` "ANN101", # Pyright automatically infers the type of `cls` "ANN102", # In some cases actively detrimental; somewhat conflicts with black "COM", # In combination with D213, this results in noisy diffs and inconsistencies # See also . "D200", # This results inconsistencies between function and class docstrings # See also . "D202", # D211 is preferred since the extra blank line isn't visually useful "D203", # D213 is preferred since it's more readable and allows more characters "D212", # Covered by D401, which is more restrictive "D415", # Too many false-positives "ERA", # Just use a recent version of Python "FA", # This would just discourage documenting deficiences, not committing them "FIX", # Type-checkers interpret redundant `as` as exporting an item "PLC0414", # False-positives with chained function calls "RSE102", # Not applicable "T20", # Causes churn and awful looking import blocks for little gain "TCH", # Just look at the file history "TD002", # Not everything is worth a link "TD003", ] [tool.ruff.per-file-ignores] "tests/*" = [ "D100", "D103", "D104", "S101", ] [tool.coverage.report] skip_covered = true skip_empty = true