-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (75 loc) · 2.34 KB
/
pyproject.toml
File metadata and controls
91 lines (75 loc) · 2.34 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
# Copyright (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# NOTE: This is a minimal root pyproject.toml.
# The library and application/backend directories have their own independent environments.
# - ML engineers: work in library/ directory (uv sync from there)
# - Backend engineers: work in application/backend/ directory (uv sync from there)
#
# SHARED TOOL CONFIGURATION:
# The [tool.*] sections below define shared settings inherited by workspaces.
# Each workspace extends these via `extend = "../pyproject.toml"` (or similar).
# ============================================================================ #
# SHARED MYPY CONFIGURATION #
# ============================================================================ #
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
show_error_codes = true
# ============================================================================ #
# SHARED RUFF CONFIGURATION #
# ============================================================================ #
[tool.ruff]
# Python version
target-version = "py312"
# Line length (same as Black)
line-length = 120
# Enable preview features
preview = true
# Exclude common directories
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"notebooks"
]
[tool.ruff.lint]
# Enable ALL available ruff rules (workspaces can override)
select = ["ALL"]
ignore = []
# Allow autofix for all enabled rules
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.pylint]
max-args = 15
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-copyright]
notice-rgx = """
# Copyright \\(C\\) (\\d{4}(-\\d{4})?) Intel Corporation
# SPDX-License-Identifier: Apache-2\\.0
"""
# ============================================================================ #
# SHARED BANDIT CONFIGURATION #
# ============================================================================ #
[tool.bandit]
skips = ["B101"]
exclude_dirs = ["tests"]