-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
82 lines (71 loc) · 1.86 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
[tool.poetry]
name = "stake"
version = "0.3.0"
readme = "README.md"
homepage = "https://github.com/stabacco/stake-python"
repository = "https://github.com/stabacco/stake-python"
description = "Unofficial https://hellostake.com API wrapper."
authors = ["Stefano Tabacco <[email protected]>"]
license = "Apache-2.0"
keywords = ["stake","trading","stocks","financial","python"]
[tool.poetry.dependencies]
python = ">=3.8,<4.0.0"
python-dotenv = "^0.13.0"
pydantic = "^2.3"
inflection = "^0.5.0"
aiohttp = "^3.9"
single-version = "^1.2.2"
[tool.poetry.dev-dependencies]
pytest = "^7.2.0"
pytest-asyncio = "^0.14.0"
pre-commit-hooks = "^3.1.0"
pre-commit = "^2.12.0"
pytest-coverage = "^0.0"
black = {version = "^19.10b0", allow-prereleases = true}
pytest-mock = "^3.3.0"
faker = "^4.14.0"
coverage-badge = "^1.0.1"
pytest-recording = "^0.12.0"
[tool.poetry.group.dev.dependencies]
bump-pydantic = "^0.8.0"
[tool.isort]
profile = "black"
known_third_party = ["aiohttp", "dotenv", "faker", "inflection", "pydantic", "pytest", "single_version"]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
packages = [
{ include = "stake", from="." },
]
[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
ignore = ["E501", "E731"]
fixable = ["A", "B", "C", "D", "E", "F"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"venv",
]
line-length = 100
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10