-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (68 loc) · 1.75 KB
/
pyproject.toml
File metadata and controls
79 lines (68 loc) · 1.75 KB
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
[tool.poetry]
name = "saic_python_api_proxy"
homepage = "https://github.com/SAIC-iSmart-API/saic-python-api-proxy"
version = "0.2.3"
description = "MG iSMART API proxy"
authors = [
"Giovanni Condello <saic-python-client@nanomad.net>",
]
readme = "README.md"
package-mode = false
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/SAIC-iSmart-API/saic-python-api-proxy/issues"
[tool.poetry.dependencies]
python = "^3.11"
httpx = "^0.27.0"
flask = { version = "^3.0.3", extras = ["async"] }
saic_ismart_client_ng = "^0.5.1"
gunicorn = "^23.0.0"
[tool.poetry.dev-dependencies]
pytest = "^8.2.2"
mock = "^5.1.0"
coverage = "^7.5.4"
ruff = "^0.6.8"
pytest-cov = "^5.0.0"
pytest-asyncio = "^0.24.0"
pytest-mock = "^3.14.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
norecursedirs = ".git build dist"
testpaths = "tests"
#pythonpath = [
# "src"
#]
mock_use_standalone_module = true
addopts = [
"--import-mode=importlib",
]
[tool.coverage.run]
omit = [
"tests/*",
]
branch = true
command_line = "-m pytest"
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Don't complain about missing debug-only code:
'def __repr__',
'if self\.debug',
# Don't complain if tests don't hit defensive assertion code:
'raise AssertionError',
'raise NotImplementedError',
# Don't complain if non-runnable code isn't run:
'if 0:',
'if __name__ == .__main__.:',
]
ignore_errors = true
[tool.ruff]
output-format = "github"