-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (108 loc) · 2.46 KB
/
Copy pathpyproject.toml
File metadata and controls
120 lines (108 loc) · 2.46 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "bank-projections"
version = "0.1.0"
description = "Balance sheet forecasting tool for banks - capital management, liquidity management, and stress testing"
readme = "README.md"
license = { text = "Apache License 2.0" }
requires-python = ">=3.13"
authors = [
{ name = "Wouter van Krieken", email = "73380480+woutersolutions@users.noreply.github.com" }
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3",
]
dependencies = [
"loguru",
"pydantic",
"pandas",
"polars",
"pyarrow",
"numpy",
"openpyxl",
"pyyaml",
"matplotlib",
"xlsxwriter",
"streamlit",
"plotly",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"ruff",
"mypy",
"pandas-stubs",
"snakeviz",
"types-PyYAML",
"types-python-dateutil",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 120
target-version = "py313"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
]
ignore = [
"TC003", # unused TYPE_CHECKING import
"B008", # Do not perform function calls in argument defaults
]
[tool.ruff.lint.isort]
known-first-party = ["bank_projections"]
[tool.mypy]
python_version = "3.13"
strict = true
warn_return_any = true
warn_unused_configs = true
no_implicit_reexport = true
namespace_packages = true
show_error_codes = true
show_column_numbers = true
pretty = true
explicit_package_bases = true
mypy_path = "src"
[[tool.mypy.overrides]]
module = [
"openpyxl.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
addopts = [
"-v",
"--strict-markers",
"--strict-config",
"--cov=src/bank_projections",
]
filterwarnings = [
]
[tool.coverage.run]
branch = true
source = ["src/bank_projections"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]