-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
128 lines (107 loc) · 3.7 KB
/
pyproject.toml
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
121
122
123
124
125
126
127
128
[tool.poetry]
name = "prosper-bot"
version = "0.6.3"
description = "Trading bot for Prosper.com"
authors = ["Graham Tibbitts <[email protected]>"]
readme = "README.md"
packages = [{include = "prosper_bot"}]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Office/Business :: Financial :: Investment",
]
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
backoff = "^2.2.1"
black = "^24.8.0"
humanize = "^4.8.0"
prosper-api = {version = "^0.11.0", extras = ["secure"]}
pytz = "^2024.1"
pyxirr = "^0.10.5"
simplejson = "^3.19.2"
[tool.poetry.group.dev.dependencies]
prosper-shared = { version = ">=0.8.1", extras = ["dev", "yaml"] }
pytest-timeout = "^2.2.0"
syrupy = "^4.7.2"
[tool.autohooks]
mode = "poetry"
pre-commit = [
"prosper_shared.autohooks.clean",
"prosper_shared.autohooks.update_dependencies",
"prosper_shared.autohooks.build_extras",
"prosper_shared.autohooks.autoimport",
"autohooks.plugins.black",
"autohooks.plugins.ruff",
"autohooks.plugins.isort",
"prosper_shared.autohooks.pydocstyle",
"prosper_shared.autohooks.pydoclint",
"prosper_shared.autohooks.tomlsort",
"prosper_shared.autohooks.mdformat",
"autohooks.plugins.pytest",
# "autohooks.tox", # Commenting out for now because it appears to be running only for Python 3.10
# "prosper_shared.autohooks.mutmut", # Doesn't seem to work on MacOS. I'll work on it.
# "prosper_shared.autohooks.dynamic_versioning", # Disabling for now until I figure out how to apply to the current commit.
"prosper_shared.autohooks.build",
"prosper_shared.autohooks.assert_files",
]
[tool.autohooks.plugins.build_extras]
commands = [
"jinja2 -Dcli_options=\"`COLUMNS=94 prosper-bot -h`\" -Dconfig_options=\"`echo 'from prosper_shared.omni_config import get_config_help\nfrom prosper_api.client import Client\nfrom prosper_bot import bot\nfrom prosper_bot import cli\nprint(get_config_help())\n' | python`\" README.md.jinja2 > README.md"
]
affected_files = ['README.md']
[tool.autohooks.plugins.mutmut]
arguments = [
"--CI",
]
[tool.autohooks.plugins.pydoclint]
include = 'prosper_bot/*.py'
[tool.autohooks.plugins.pydocstyle]
include = 'prosper_bot/*.py'
[tool.autohooks.plugins.ruff]
arguments = '--fix'
[tool.autohooks.plugins.update_dependencies.install]
arguments = ['--all-extras']
[tool.isort]
profile = "black"
[tool.mutmut]
disable-mutation-types = "string,fstring,expr_stmt,annassign,number"
[tool.poetry-dynamic-versioning]
enable = true
metadata = false
style = "semver"
vcs = "git"
bump = true
[tool.pydoclint]
style = "google"
allow-init-docstring = true
[tool.pydocstyle]
inherit = false
convention = "google"
add_ignore = ['D100', 'D104']
[tool.pytest.ini_options]
addopts = "--cov=prosper_bot --cov-report=term-missing --cov-report=lcov:dist/coverage.info --cov-report=html:dist/coveragereport --cov-fail-under=100"
testpaths = "tests"
python_functions = ["*_test", "test_*"]
[tool.coverage.report]
exclude_lines = ["if __name__ == .__main__.:", "\\s*Bot\\S*run.\\S*"]
[tool.ruff.lint]
extend-ignore = ["E501"]
fixable = ["ALL"]
unfixable = []
[tool.tomlsort]
trailing_comma_inline_array = true
spaces_indent_inline_array = 4
sort_first = ["tool.poetry"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
prosper-bot="prosper_bot.bot.bot:runner"
[tool.poetry-sort]
move-optionals-to-bottom=true