This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
134 lines (120 loc) · 3.26 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
[tool.poetry]
name = "aquila"
version = "0.0.0"
description = ""
authors = ["Bink <bink@bink.bink>"]
readme = "README.md"
repository = "https://github.com/binkhq/aquila"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[[tool.poetry.source]]
name = "azure"
url = "https://pkgs.dev.azure.com/binkhq/_packaging/binkhq/pypi/simple/"
priority = "explicit"
[tool.poetry.dependencies]
python = "^3.12"
flask = "<4"
requests = "^2.31.0"
azure-storage-blob = "^12.19.1"
python-decouple = "^3.8"
sentry-sdk = { extras = ["flask"], version = "^1.45.0" }
gunicorn = "^22.0.0"
prometheus-client = "^0.20.0"
[tool.poetry.group.dev.dependencies]
ruff = "^0.3.0"
black = "^24.3.0"
isort = "^5.10.1"
xenon = "^0.9.0"
mypy = "^1.0.1"
pytest = "^8.0.0"
types-requests = "^2.28.3"
ipython = "^8.10.0"
responses = "^0.25.0"
pytest-mock = "^3.8.2"
pytest-cov = "^5.0.0"
refurb = "^2.0.0"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry-dynamic-versioning]
enable = true
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
skip_gitignore = true
lines_between_types = 1
[tool.mypy]
disallow_untyped_defs = true
show_error_codes = true
warn_unused_ignores = true
ignore_missing_imports = true
disallow_incomplete_defs = true
warn_redundant_casts = true
warn_unreachable = true
[tool.ruff]
line-length = 120
output-format = "full"
target-version = "py310"
[tool.ruff.lint]
select = [
"F", # Pyflakes (F)
"E",
"W", # pycodestyle (E, W)
"C90", # mccabe (C90)
# isort (I)
# pydocstyle (D)
"UP", # pyupgrade (UP)
"N", # pep8-naming (N)
"YTT", # flake8-2020 (YTT)
"ANN", # flake8-annotations (ANN)
"S", # flake8-bandit (S)
"BLE", # flake8-blind-except (BLE)
# flake8-boolean-trap (FBT)
"B", # flake8-bugbear (B)
"A", # flake8-builtins (A)
"C4", # flake8-comprehensions (C4)
"T10", # flake8-debugger (T10)
# flake8-errmsg (EM)
"ICN", # flake8-import-conventions (ICN)
"T20", # flake8-print (T20)
# "PT", # flake8-pytest-style (PT)
"Q", # flake8-quotes (Q)
# flake8-return (RET)
"SIM", # flake8-simplify (SIM)
"TID", # flake8-tidy-imports (TID)
"ARG", # flake8-unused-arguments (ARG)
"DTZ", # flake8-datetimez (DTZ)
# "ERA", # eradicate (ERA) until we can remove commented out code this has to stay deactivated
# pandas-vet (PD)
# pygrep-hooks (PGH)
"PLC",
"PLE",
"PLR",
"PLW", # Pylint (PLC, PLE, PLR, PLW)
"RUF", # Ruff-specific rules (RUF)
]
ignore = [
"ANN101",
"ANN102",
# disables function call in function parameter error
# arg = Depends(..) and arg = typer.Option(..) would be flagged
"B008",
"PLR2004", # disable Magic value used in comparison
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["S101", "PLR2004", "ARG001", "PLR0913", "PLR0915", "ARG002"]
# disable unused import error for __init__.py and cosmos/db/base.py
[tool.coverage.run]
omit = ["aquila/endpoints/healthz.py", "aquila/reporting.py"]
[tool.coverage.report]
fail_under = 85
exclude_lines = ["pragma: no cover"]