Debian Codegraph @

pyproject.toml

raw symbols SCIP
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 # Pyright automatically infers the type of `self`
75 "ANN101",
76
77 # Pyright automatically infers the type of `cls`
78 "ANN102",
79
80 # In some cases actively detrimental; somewhat conflicts with black
81 "COM",
82
83 # In combination with D213, this results in noisy diffs and inconsistencies
84 # See also <https://github.com/charliermarsh/ruff/issues/4174>.
85 "D200",
86
87 # This results inconsistencies between function and class docstrings
88 # See also <https://github.com/charliermarsh/ruff/issues/4175>.
89 "D202",
90
91 # D211 is preferred since the extra blank line isn't visually useful
92 "D203",
93
94 # D213 is preferred since it's more readable and allows more characters
95 "D212",
96
97 # Covered by D401, which is more restrictive
98 "D415",
99
100 # Too many false-positives
101 "ERA",
102
103 # Just use a recent version of Python
104 "FA",
105
106 # This would just discourage documenting deficiences, not committing them
107 "FIX",
108
109 # Type-checkers interpret redundant `as` as exporting an item
110 "PLC0414",
111
112 # False-positives with chained function calls
113 "RSE102",
114
115 # Not applicable
116 "T20",
117
118 # Causes churn and awful looking import blocks for little gain
119 "TCH",
120
121 # Just look at the file history
122 "TD002",
123
124 # Not everything is worth a link
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