-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
77 lines (66 loc) · 1.95 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "interactEM"
version = "0.1.0"
description = ""
authors = ["Sam Welborn <[email protected]>"]
license = "MIT"
package-mode = false
# Define the Python versions compatible with your project.
# Adjust the versions according to your project's requirements.
[tool.poetry.dependencies]
python = "^3.11"
app = { path = "backend/app", develop = true }
core = { path = "backend/core", develop = true }
operators = { path = "backend/operators", develop = true }
agent = { path = "backend/agent", develop = true }
[tool.poetry.group.dev.dependencies]
pytest = "^8.1.1"
pytest-cov = "^4.1.0"
mypy = "^1.8.0"
ruff = "^0.5.0"
pre-commit = "^3.7.1"
isort = "^5.13.2"
pytest-mock = "^3.12.0"
black = "^24.4.2"
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
line_length = 88
[tool.mypy]
strict = true
exclude = ["venv", "alembic"]
[tool.pytest.ini_options]
addopts = "-ra -v"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*", "*Test"]
python_functions = ["test_*"]
filterwarnings = ["ignore::DeprecationWarning"]
[tool.ruff]
target-version = "py310"
exclude = ["backend/app/interactem/app/alembic/**", "backend/agent/thirdparty/**", "conftest.py"]
[tool.ruff.lint]
exclude = ["**/__init__.py"]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"W191", # indentation contains tabs
"B904", # Allow raising exceptions without from e, for HTTPException
]
isort = { known-first-party = ['operators', 'core'] }
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true