-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
112 lines (98 loc) · 2.1 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
[tool.poetry]
name = "bearish"
version = "0.1.2"
description = ""
authors = ["aan <andoludovic.andriamamonjy@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
pandas = "^2.1.4"
pydantic = "^2.5.3"
unidecode = "^1.3.8"
html5lib = "^1.1"
typeguard = "^4.1.5"
alembic = "^1.14.0"
sqlmodel = "^0.0.22"
alpha-vantage = "^3.0.0"
python-dotenv = "^1.0.1"
yfinance = "^0.2.48"
typer = "^0.13.1"
[tool.poetry.scripts]
trano = "bearish.main:app"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
mypy = "^1.8.0"
nox = "^2023.4.22"
ruff = "*"
pre-commit = "^3.6.2"
pandas-stubs = "^2.2.0.240218"
types-simplejson = "^3.19.0.20240218"
types-beautifulsoup4 = "^4.12.0.20240229"
pytest-mongo = "^3.1.0"
requests-mock = "^1.12.1"
black = "^24.10.0"
pytest-order = "^1.3.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
plugins = "pydantic.mypy"
packages= "bearish"
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
show_absolute_path = true
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true
strict = true
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
exclude = [
"test_*",
"conftest.py",
]
[tool.ruff]
line-length = 120
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"test_*",
"conftest.py",
"bearish/database/alembic/*",
]
[tool.isort]
skip = ["models"]
[tool.ruff.lint]
select = ["E", "W", "F", "B006","RUF","UP","SIM","FURB","PIE","PERF","C4","B","PL","S","C901","N","ANN", "ERA001", "PD"]
ignore = []
extend-ignore = ["ANN101","ANN102","UP006","UP035"]
fixable = ["ALL"]
unfixable = []