-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (122 loc) · 3.24 KB
/
Copy pathpyproject.toml
File metadata and controls
138 lines (122 loc) · 3.24 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
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
135
136
137
138
[tool.poetry]
name = "iterbot-utfpr"
version = "0.1.0"
description = "Assistente de WhatsApp para estudantes da UTFPR"
authors = ["IterBot Team"]
readme = "README.md"
packages = [{include = "apps"}, {include = "config"}, {include = "infra"}, {include = "waha_bot"}]
[tool.poetry.dependencies]
python = "^3.11"
django = ">=5.2.11,<6"
django-allauth = "^0.57.0"
djangorestframework = "^3.14.0"
django-filter = "^23.0"
requests = "^2.33.0"
resend = "^2.13.0"
urllib3 = ">=2.6.3"
python-jobspy = "^1.1.0"
pandas = "^2.1.0"
gunicorn = "^22.0.0"
whitenoise = "^6.7.0"
psycopg2-binary = "^2.9.9"
django-environ = "^0.11.2"
dj-database-url = "^2.1.0"
celery = "^5.3.4"
redis = "^5.0.1"
structlog = "^24.1.0"
pydantic = "^2.5.0"
cryptography = ">=46.0.0"
python-statemachine = "^2.1.2"
validate-docbr = "^1.10.0"
django-unfold = "^0.90.0"
django-ses = "^4.0.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-django = "^4.7.0"
pytest-mock = "^3.12.0"
pytest-cov = "^4.1.0"
black = "^23.12.0"
ruff = "^0.14.0"
mypy = "^1.7.1"
factory-boy = "^3.3.0"
faker = "^20.1.0"
responses = "^0.24.1"
django-stubs = "^4.2.7"
types-requests = "^2.31.0"
pre-commit = "^4.5.1"
commitizen = "^4.13.10"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.ruff]
line-length = 100
exclude = ["migrations"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "SIM", "TCH", "C901", "RUF"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"waha_bot/settings/*.py" = ["E402"]
"**/models.py" = ["RUF012"]
"**/models/*.py" = ["RUF012"]
"**/admin.py" = ["RUF012"]
"**/admin/*.py" = ["RUF012"]
"**/serializers.py" = ["RUF012"]
"**/api_views.py" = ["RUF012"]
"**/forms.py" = ["RUF012"]
"**/tests/test_protocol_di.py" = ["TCH001"]
"**/messages.py" = ["RUF009", "RUF001"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["apps", "infra", "config", "waha_bot"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
plugins = ["mypy_django_plugin.main"]
[tool.django-stubs]
django_settings_module = "waha_bot.settings.development"
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.1.0"
version_provider = "commitizen"
version_scheme = "pep440"
tag_format = "$version"
update_changelog_on_bump = true
changelog_file = "CHANGELOG.md"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "waha_bot.settings.development"
python_files = ["test_*.py", "*_test.py"]
addopts = "-v --tb=short --strict-markers --cov=apps/bot --cov=waha_bot --cov-report=term-missing --cov-report=html --cov-report=xml --cov-report=lcov"
testpaths = ["apps"]
[tool.coverage.run]
source = ["apps", "config", "infra", "waha_bot"]
branch = true
omit = [
"*/migrations/*",
"*/tests/*",
"*/__pycache__/*",
"*/conftest.py",
]
[tool.coverage.report]
fail_under = 70
show_missing = true
skip_covered = false
show_contexts = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"@abstractmethod",
]