-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
157 lines (136 loc) · 4.45 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[tool.poetry]
name = "prosper-shared"
version = "0"
description = ""
authors = ["Graham Tibbitts <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"
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,<4.0"
case-converter = "^1.1.0"
deepmerge = "^1.1.0"
dpath = "^2.1.6"
platformdirs = "^4.1.0"
schema = "^0.7.5"
autohooks = { version = "^23.10.0", optional = true }
autohooks-plugin-black = { version = "^23.10.0", optional = true }
autohooks-plugin-isort = { version = "^23.10.0", optional = true }
autohooks-plugin-pytest = { version = "^23.10.0", optional = true }
autohooks-plugin-ruff = { version = "^23.11.0", optional = true }
autoimport = { version = "^1.3.3", optional = true }
jinja2-cli = {version="^0.8.2", optional = true }
mdformat-gfm = { version = "^0.3.5", optional = true }
mutmut = { version = "^2.4.4", optional = true }
pydoclint = { version = "^0.3.8", optional = true }
pydocstyle = { version = "^6.3.0", optional = true }
pytest = { version = "^7.4.2", optional = true }
pytest-cov = { version = "^4.1.0", optional = true }
pytest-mock = { version = "^3.11.1", optional = true }
pytest-sugar = { version = "^0.9.7", optional = true }
pyyaml = {version = "^6.0.1", optional = true }
toml = {version= "^0.10.2", optional = true }
toml-sort = { version = "^0.23.1", optional = true }
tox = { version = "^4.11.3", optional = true }
[tool.poetry.extras]
dev = [
"autohooks",
"autohooks-plugin-black",
"autohooks-plugin-pytest",
"autohooks-plugin-isort",
"autohooks-plugin-ruff",
"autoimport",
"jinja2-cli",
"mdformat-gfm",
"mutmut",
"pydocstyle",
"pydoclint",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-sugar",
"pyyaml",
"toml-sort",
"tox"
]
toml = ['toml']
yaml = ['pyyaml']
[tool.poetry.group.dev.dependencies]
syrupy = "^4.6.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.autohooks]
mode = "poetry"
pre-commit = [
"prosper_shared.autohooks.clean",
"prosper_shared.autohooks.mdformat",
"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",
"prosper_shared.autohooks.update_dependencies",
"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.poetry-dynamic-versioning]
enable = true
metadata = false
style = "semver"
vcs = "git"
bump = true
[tool.autohooks.plugins.ruff]
arguments = '--fix'
[tool.autohooks.plugins.mutmut]
arguments = [
"--disable-mutation-types=string,fstring,expr_stmt,annassign,number", '--CI',
]
[tool.autohooks.plugins.pydoclint]
include = 'prosper_shared/*.py'
[tool.autohooks.plugins.pydocstyle]
include = 'prosper_shared/*.py'
[tool.autohooks.plugins.update_dependencies.install]
arguments = ['--all-extras']
[tool.isort]
profile = "black"
[tool.ruff.lint]
extend-ignore = ["E501", "F401"]
fixable = ["ALL"]
unfixable = []
[tool.tomlsort]
trailing_comma_inline_array = true
spaces_indent_inline_array = 4
sort_first = ["tool.poetry"]
[tool.pytest.ini_options]
addopts = "--cov=prosper_shared/omni_config --cov-report=term-missing --cov-report=lcov:dist/coverage.info --cov-fail-under=100"
testpaths = "tests"
python_functions = ["*_test", "test_*"]
[tool.pydoclint]
style = "google"
allow-init-docstring = true
[tool.pydocstyle]
inherit = false
convention = "google"
add_ignore = ['D100', 'D104']
[tool.poetry.scripts]
list-config-values="prosper_shared.omni_config:list_available_config_values"
[tool.poetry-sort]
move-optionals-to-bottom=true