-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
113 lines (95 loc) · 2.27 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
[tool.poetry]
name = "sia"
version = "0.1.0"
description = ""
authors = ["Mohammad Mohsen <kuro.ece@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
django = "^4.2.2"
django-rest-framework = "^0.1.0"
django-tastypie = "^0.14.5"
django-environ = "^0.10.0"
jinja2 = "^3.1.2"
django-extensions = "^3.2.3"
[tool.poetry.group.dev.dependencies]
ipython = "^8.14.0"
pytest = "^7.3.2"
pytest-django = "^4.5.2"
pytest-xdist = "^3.3.1"
pytest-cov = "^4.1.0"
coverage = "^7.2.7"
django-coverage-plugin = "^3.1.0"
django-debug-toolbar = "^4.1.0"
pytest-skip-slow = "^0.0.5"
pytest-sugar = "^0.9.7"
httpie = "^3.2.2"
pre-commit = "^3.3.3"
django-filter = "^23.2"
[tool.poetry.group.new_features.dependencies]
werkzeug = "^2.3.6"
rules = "^3.3"
django-rest-knox = "^4.2.0"
httpie = "^3.2.2"
paho-mqtt = "^1.6.1"
selenium = "^4.11.2"
uritemplate = "^4.1.1"
pyyaml = "^6.0.1"
pika = "^1.3.2"
[tool.pytest.ini_options]
addopts = "-x -n 8 -v --cov --cov-report html --cov-report term-missing --cov-report lcov --cov-report xml --cov-report json"
# addopts = "-x -n 8 -v"
# addopts = "-x -v"
console_output_style = "count"
required_plugins = "pytest-django pytest-xdist pytest-cov"
DJANGO_SETTINGS_MODULE = "sia.settings"
python_files = [
"accounts/tests/test_*.py",
"devices/tests/*/test_*.py",
"dashboard/tests/test_*.py",
"mqtt/tests/test_*.py",
"tests/utils/tests/test_*.py",
"api/v1/tests/test_*.py",
]
[tool.coverage.run]
plugins = ["django_coverage_plugin"]
data_file = "coverage/.coverage"
branch = true
source = [
"accounts",
"devices",
"api",
]
omit = [
"*/tests/*",
"*/migrations/*",
"*/admin.py",
"*/apps.py",
"*/__init__.py",
"api/v2/*",
"api/v3/*",
]
[tool.coverage.report]
exclude_also = [
"def __str__",
"def __repr__",
]
show_missing = true
skip_empty = true
# fail_under = 98
sort = "Cover"
[tool.coverage.html]
directory = "coverage/html_report"
title = "SIA Coverage Report"
[tool.coverage.xml]
output = "coverage/xml/coverage.xml"
[tool.coverage.json]
output = "coverage/json/coverage.json"
pretty_print = true
[tool.coverage.lcov]
output = "coverage/lcov/coverage.lcov"
[tool.black]
target_version = ["py310", "py311"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"