-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
105 lines (99 loc) · 3.53 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
[tool.poetry]
name = "django-quant-tick"
version = "0.1.3"
description = "Django Quant Tick downloads and aggregate candlesticks from tick data"
authors = ["Alex <globophobe@gmail.com>"]
readme = "README.md"
license = "MIT"
homepage = "https://github.com/globophobe/django-quant-tick"
repository = "https://github.com/globophobe/django-quant-tick"
keywords = ["django", "cryptocurrency", "candlesticks", "quant", "trading", "trading-strategies", "coinbase", "bitfinex", "bitmex", "bybit"]
classifiers = ["Development Status :: 4 - Beta", "Operating System :: OS Independent"]
packages = [{ include = "quant_tick" }]
[tool.poetry.dependencies]
python = ">=3.10"
django-polymorphic = "*"
djangorestframework = "*"
httpx = "*"
pandas = "*"
pyarrow = "*"
randomname = "*"
[tool.poetry.dev-dependencies]
black = "*"
coverage = "*"
django-filter = "*"
django-semantic-admin = "*"
django-storages = {version = "*", extras = ["google"]}
gunicorn = "*"
invoke = "*"
ipython = "*"
psycopg2-binary = "*"
python-decouple = "*"
ruff = "*"
sentry-sdk = "*"
time-machine = "*"
whitenoise = "*"
[tool.ruff]
exclude = [
"__init__.py",
"build",
"migrations",
]
line-length = 88
target-version = "py310"
ignore = [
"ANN002", # Missing type annotation for *{name}
"ANN003", # Missing type annotation for **{name}
"ANN101", # Missing type annotation for {name} in method
"ANN102", # Missing type annotation for {name} in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in {name}
"B007", # Loop control variable not used within loop body
"B904", # Within an except clause, raise exceptions with...
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D106", # Missing docstring in public nested class, i.e. Meta
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D400", # First line should end with a period
"D401", # First line should be in imperative mood
"D403", # First word of the first line should be properly capitalized
"D404", # First word of the docstring should not be This
"D406", # Section name should end with a newline
"D407", # Missing dashed underline after section
"D411", # Missing blank line before section
"D413", # Missing blank line after last section
"D415", # First line should end with a period, question mark, or exclamation point
"D417", # Missing argument description in the docstring: {name}
"E501", # Line too long
"E721", # Do not compare types, use `isinstance()`
"N803", # Argument name should be lowercase
"N806", # Variable in function should be lowercase
"PTH123", # open() should be replaced by Path.open()
"UP032", # [*] Use f-string instead of `format` call
]
select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"INT", # flake8-gettext
"N", # pep8-naming
"PTH", # flake8-use-pathlib
"UP", # pyupgrade
"RUF100", # unused-noqa
"RUF200", # invalid-pyproject-toml
"W", # pycodestyle
]
unfixable = ["F401", "F841"]
[tool.ruff.per-file-ignores]
"**/tests/*" = ["ANN", "D"]
"**/migrations/*" = ["ANN", "D"]
[tool.ruff.isort]
known-first-party = ["quant_tick"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"