-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
116 lines (107 loc) · 2.2 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
114
115
116
[project]
name = "daiv-sandbox"
version = "0.1.0-rc.10"
description = "Runtime sandbox to empower DAIV agents to run arbitrary code/commands."
readme = "README.md"
license = { file = "LICENSE" }
maintainers = [
{ name = "Sandro Rodrigues", email = "[email protected]" },
]
authors = [
{ name = "Sandro Rodrigues", email = "[email protected]" },
]
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"docker==7.1",
"fastapi[standard]==0.115.6",
"ipython==8.31",
"pydantic==2.10.4",
"pydantic-settings==2.7",
"sentry-sdk==2.19.2",
]
urls."Bug Tracker" = "https://github.com/srtab/daiv-sandbox/issues"
urls.Changelog = "CHANGELOG.md"
urls.Repository = "https://github.com/srtab/daiv-sandbox"
[tool.ruff]
target-version = "py312"
line-length = 120
extend-exclude = [ "*/node_modules/*", "*/static/*" ]
force-exclude = true
preview = true
show-fixes = true
format.skip-magic-trailing-comma = true
lint.select = [
# flake8-builtins
"A",
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# pycodestyle
"E",
# eradicate
"ERA",
# Pyflakes
"F",
# flake8-logging-format
"G",
# isort
"I",
# flake8-logging
"LOG",
# pep8-naming
"N",
# flake8-use-pathlib
"PTH",
# flake8-bandit
"S",
# flake8-simplify
"SIM",
# flake8-print
"T20",
# flake8-type-checking
"TCH",
# pyupgrade
"UP",
# pycodestyle
"W",
]
lint.ignore = [ "N812", "S101" ]
lint.isort.known-first-party = [ ]
lint.isort.section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
lint.isort.split-on-trailing-comma = false
[tool.pytest.ini_options]
addopts = "--cov --cov-config=.coveragerc"
[tool.pytest_env]
DAIV_SANDBOX_API_KEY = "notsosecret"
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"docker.*",
]
ignore_missing_imports = true
[tool.uv]
dev-dependencies = [
"mypy==1.14.0",
"pre-commit==4.0.1",
"pyproject-fmt==2.5.0",
"pyopenssl==24.3.0",
"pytest-cov==6.0.0",
"pytest-env==1.1.5",
"pytest-mock==3.14.0",
"pytest-xdist==3.6.1",
"ruff==0.8.4",
]