-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
88 lines (81 loc) · 2.03 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
[project]
name = "bittensor-prometheus-proxy"
requires-python = "==3.11.*"
version = "0"
dependencies = [
"Django~=4.2.4",
"django-constance[database]==3.1.0",
"django-cors-headers~=4.2.0",
"django-environ~=0.11.2",
"django-extensions==3.2.3",
"django-probes==1.7.0",
"django-debug-toolbar==4.1.0",
"django-structlog[celery]==8.0.0",
"celery~=5.3.1",
"flower~=2.0.0",
"gunicorn==20.1.0",
"psycopg[binary]~=3.1.19",
"redis~=4.6.0",
"sentry-sdk==1.3.0",
"ipython~=8.14.0",
"nox==2023.4.22",
"more-itertools~=10.3.0",
"psutil>=5.9.8",
"prometheus-client~=0.17.0",
"django-prometheus==2.3.1",
"django-business-metrics>=1.0.1,<2",
"django-health-check>=3.18.1,<4",
"requests>=2.32.3,<3",
"bittensor<8.0.0,>=7.3.1",
"compute_horde",
"django-cacheops>=7.1,<8",
"python-snappy==0.7.3",
"protobuf>=5.28.3,<6",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = false
[tool.pdm.dev-dependencies]
test = [
'pytest',
'pytest-django',
'pytest-xdist',
'ipdb',
'freezegun',
]
lint = [
"ruff",
"codespell[toml]",
]
type_check = [
"django-stubs[compatible-mypy]",
"djangorestframework-stubs[compatible-mypy]",
"mypy",
"types-freezegun",
"types-python-dateutil",
"types-requests",
]
[tool.ruff]
src = ["app/src"]
line-length = 120
[tool.ruff.lint]
# TODO add D
select = [
"E", "F", "I", "UP", "S",
"TCH005",
]
# TODO: remove E501 once docstrings are formatted
ignore = [
"D100", "D105", "D107", "D200", "D202", "D203", "D205", "D212", "D400", "D401", "D415",
"D101", "D102","D103", "D104", # TODO remove once we have docstring for all public methods
"E501", # TODO: remove E501 once docstrings are formatted
"S101", "S108", "S603", "S607",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"**/test*/**.py" = ["D", "F403", "F405", "S106", "S311"]
[tool.codespell]
skip = '*.min.js,*.lock,*/monitoring_certs/*'
ignore-words-list = 'datas'