forked from teddyhla/team2hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (81 loc) · 2.11 KB
/
pyproject.toml
File metadata and controls
96 lines (81 loc) · 2.11 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
[tool.poetry]
name = "futurecare"
version = "0.1.0"
description = ""
authors = ["Rafael Dias <rafaelagd@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
django = "^5.0.7"
chromadb = "^0.5.4"
factory-boy = "^3.3.0"
pytest = "^8.2.2"
pytest-django = "^4.8.0"
pytest-factoryboy = "^2.7.0"
keyring = "^25.2.1"
openai = "^1.37.1"
gunicorn = "^23.0.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.2.2"
pytest-cov = "^5.0.0"
taskipy = "^1.13.0"
isort = "^5.13.2"
black = "^24.4.2"
mypy = "^1.10.1"
ruff = "^0.5.2"
ipython = "^8.26.0"
pandas-stubs = "^2.2.2.240603"
django-stubs = "^5.0.2"
python-dotenv = "^1.0.1"
debugpy = "^1.8.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "futurecare.settings"
python_files = ["test_*.py", "*_test.py", "testing/python/*.py"]
addopts = ["-svvv", "--nomigrations", "--no-cov-on-fail", "-m not slow"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"serial",
]
filterwarnings = "ignore::DeprecationWarning"
[tool.coverage.run]
branch = true
omit = [
"*/tests/*",
"*/migrations/*",
"*/settings.py",
"*/wsgi.py",
"*/asgi.py",
"*/__init__.py",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
[tool.coverage.html]
directory = "htmlcov"
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
[tool.django-stubs]
django_settings_module = "futurecare.settings"
[tool.ruff]
exclude = ["*/migrations/*", "*/settings.py", "*/wsgi.py", "*/asgi.py"]
line-length = 120
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PT']
[tool.taskipy.tasks]
lint = "ruff check . --fix && ruff check . --diff"
format = "ruff check . --fix && ruff format ."
pre_test = "task format"
test = "coverage run -m pytest"
post_test = "coverage report; coverage html"
run= "python manage.py runserver"