-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (102 loc) · 2.61 KB
/
pyproject.toml
File metadata and controls
114 lines (102 loc) · 2.61 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
[project]
name = "py-utils"
version = "1.0.0"
description = "Tools for Captor clients."
authors = [
{ name = "Captor Tech", email = "tech@captor.se" },
]
maintainers = [
{ name = "Captor Tech", email = "tech@captor.se" },
]
license = "BSD-3-Clause"
license-files = ["LICENSE.md"]
readme = "README.md"
requires-python = ">=3.11,<3.15"
package-mode = false
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Financial and Insurance Industry",
"Topic :: Office/Business :: Financial :: Investment",
"Natural Language :: English",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
]
dependencies = [
"openseries (>=2.1.7)",
"pyjwt (>=2.12.1)",
"werkzeug (>=3.1.8)",
"jupyter >=1.1.1",
"ipykernel (>=7.2.0)",
]
[project.urls]
repository = "https://github.com/CaptorAB/py-utils"
[tool.poetry.group.dev.dependencies]
pre-commit = ">=4.5.1"
pytest = ">=9.0.3"
pytest-cov = ">=7.1.0"
pytest-xdist = ">=3.8.0"
ruff = "0.15.11"
[build-system]
requires = ["poetry-core>=2.3.2"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.10"
[tool.coverage.run]
branch = true
omit = [
"venv/*",
"tests/*",
"**/__init__.py",
"./aster_long.py",
"./aster_short.py",
"./dahlia_greenbond.py",
"./iris_bond.py",
"./portfoliosimulation.py",
"./portfoliotool.py",
"./use_graphql.py"
]
[tool.coverage.report]
skip_empty = true
show_missing = true
precision = 2
omit = [
"**/__init__.py",
"./aster_hy.py",
"./aster_long.py",
"./aster_short.py",
"./dahlia_greenbond.py",
"./iris_bond.py",
"./portfoliosimulation.py",
"./portfoliotool.py",
"./use_graphql.py"
]
[tool.coverage.xml]
output = "coverage.xml"
[tool.ruff]
target-version = "py311"
line-length = 87
[tool.ruff.lint]
select = ["ALL"]
allowed-confusables = ["−"]
ignore = ["COM812", "N999"]
fixable = ["ALL"]
mccabe = { max-complexity = 19 }
pydocstyle = { convention = "google" }
pylint = { max-args = 11, max-branches = 20, max-statements = 57 }
per-file-ignores = { "tests/*" = ["ANN401", "ARG001", "ARG002", "B904", "EM101", "EM102", "F841", "RUF002", "SLF001", "TRY003"] }
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = [
"-n", "auto",
"--dist=worksteal",
"--cov=.",
"--strict-markers",
"--cov-fail-under=85",
"--cov-branch",
"--cov-report=term"
]