-
Notifications
You must be signed in to change notification settings - Fork 40
/
pyproject.toml
62 lines (55 loc) · 1.38 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.mypy]
python_version = "3.9"
exclude = "build"
ignore_missing_imports = true
check_untyped_defs = true
no_strict_optional = true
namespace_packages = true
[[tool.mypy.overrides]]
module = [
"modal/_vendor/cloudpickle",
"modal/_vendor/tblib",
"modal/_vendor/a2wsgi_wsgi",
]
ignore_errors = true
[tool.pytest.ini_options]
timeout = 300
addopts = "--ignore=modal/cli/programs"
filterwarnings = [
"error::DeprecationWarning",
"ignore:Type google._upb.*MapContainer uses PyType_Spec.*Python 3.14:DeprecationWarning",
"error::modal.exception.DeprecationError",
"ignore::DeprecationWarning:pytest.*:",
"ignore::DeprecationWarning:pkg_resources.*:",
"ignore::DeprecationWarning:google.rpc.*:",
"ignore:.*pkg_resources.*:DeprecationWarning::",
]
[tool.ruff]
extend-include = ["*.pyi"]
exclude = [
'.venv',
'.git',
'__pycache__',
'proto',
'build',
'modal_proto',
'modal/_vendor',
]
line-length = 120
lint.ignore = ['E741']
lint.select = ['E', 'F', 'W', 'I']
[tool.ruff.lint.per-file-ignores]
"*_test.py" = ['E712']
"test/supports/notebooks/*.py" = ['E402']
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = [
"modal",
"modal_global_objects",
"modal_proto",
"modal_version",
]
extra-standard-library = ["pytest"]