-
Notifications
You must be signed in to change notification settings - Fork 154
/
pyproject.toml
112 lines (94 loc) · 2.98 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
[project]
requires-python = "~=3.12.6"
[tool.towncrier]
package = "ai.backend.manager" # reference point for getting __version__
filename = "CHANGELOG.md"
directory = "changes/"
title_format = "" # embedded inside the template
template = "changes/template.md"
start_string = "<!-- towncrier release notes start -->\n"
issue_format = "([#{issue}](https://github.com/lablup/backend.ai/issues/{issue}))"
underlines = ["", "", ""]
# NOTE: A single PR may have multiple news fragments with different types.
[[tool.towncrier.type]]
# Put breaking changes that should be announced loudly.
directory = "breaking"
name = "Breaking Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
# Describe general improvements, such as internal refactoring, optimization,
# performance improvements, and etc. that do not introduce new features.
directory = "enhance"
name = "Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "fix"
name = "Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Documentation Updates"
showcontent = true
[[tool.towncrier.type]]
# Describe notable changes of external/upstream dependencies
# that may require installers updates and extra concerns
# to upgrade existing setups.
directory = "deps"
name = "External Dependency Updates"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Miscellaneous"
showcontent = true
[tool.pytest.ini_options]
testpaths = "tests"
markers = [
"integration: Test cases that spawn Dockerized kernel sessions",
]
filterwarnings = [
"ignore::DeprecationWarning:etcd3.*:",
]
asyncio_mode = "auto"
[tool.ruff]
line-length = 100
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
# "C", # flake8-comprehensions
# "B", # flake8-bugbear
]
ignore = ["E203","E731","E501"]
[tool.ruff.lint.isort]
known-first-party = ["ai.backend"]
known-local-folder = ["src"]
known-third-party = ["alembic", "redis"]
split-on-trailing-comma = true
[tool.ruff.lint.per-file-ignores]
"src/ai/backend/manager/config.py" = ["E402"]
"src/ai/backend/manager/models/alembic/env.py" = ["E402"]
[tool.ruff.format]
preview = true # enable the black's preview style
[tool.black]
# unused for our codebase but preserved for `pants tailor`
line-length = 100
preview = true
[tool.mypy]
ignore_missing_imports = true
implicit_optional = true # FIXME: remove after adding https://github.com/hauntsaninja/no_implicit_optional to fmt
mypy_path = "stubs:src:tools/pants-plugins"
namespace_packages = true
explicit_package_bases = true
python_executable = "dist/export/python/virtualenvs/python-default/3.12.6/bin/python"
disable_error_code = ["typeddict-unknown-key"]