This repository was archived by the owner on Apr 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (97 loc) · 2.86 KB
/
pyproject.toml
File metadata and controls
112 lines (97 loc) · 2.86 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "odoo-ai"
version = "0.0.0"
description = "AI-powered Odoo 19 Enterprise development framework"
requires-python = ">=3.13"
dependencies = [
"ariadne-codegen",
"pdfminer.six",
"psutil",
"click",
"graphql-core",
"pydantic",
"pydantic_settings",
"questionary",
"requests",
"PyMySQL",
"ruff",
"rich",
"mypy",
]
[project.optional-dependencies]
dev = [
"coverage",
"debugpy",
"docker",
"lxml-stubs",
"types-Werkzeug",
"pip",
"pydevd-odoo",
"pydevd-pycharm",
"pydantic[email,timezone]",
"setuptools",
"types-geoip2",
"types-Pillow",
"types-PyMySQL",
"types-psycopg2",
"types-requests",
"watchdog",
"websocket-client",
]
[tool.hatch.build.targets.wheel]
packages = ["tools"]
[project.scripts]
test = "tools.testkit.cli:main" # example: uv run test unit --json
test-validate = "tools.testkit.validate:main"
gate-benchmark = "tools.gate_benchmark:main"
prod-gate = "tools.prod_gate:main"
platform = "tools.platform.cli:main"
[tool.uv]
preview = true
[tool.odoo-test.timeouts]
unit = 1200
integration = 1200
tour = 1200
js = 1200
[tool.odoo-test.template]
reuse = true
ttl_sec = 3600
[tool.ruff]
line-length = 133
target-version = "py313"
[tool.ruff.lint]
select = ["ANN", "UP", "B", "I"]
ignore = [
"D", # pydocstyle
"B018", # Ruff flags Odoo manifests (module dict literal) as useless expression
"COM812", # trailing-comma-missing (conflicts with formatter)
"ISC001", # single-line-implicit-string-concatenation (conflicts with formatter)
"FBT001", # Boolean default positional argument - PyCharm shows inlay hints
"FBT002", # Boolean positional argument - PyCharm shows inlay hints
"TRY300", # Unnecessary else after return - prefer early returns
"ARG001", # Unused function argument - PyCharm handles this better with context awareness
"ARG002", # Unused method argument - PyCharm handles this better with context awareness
"ANN201", # Missing type annotation for function - PyCharm handles this better with context awareness
"ANN206", # Missing return type annotation for classmethod - common in test setup helpers
"UP037", # Quoted annotations are common for Odoo plugin types without future imports
]
[tool.ruff.lint.isort]
known-first-party = ["tools"]
[tool.mypy]
python_version = "3.13"
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["odoo", "odoo.*"]
ignore_missing_imports = true
disable_error_code = ["name-defined"]
[[tool.mypy.overrides]]
module = ["repairshopr_import", "repairshopr_import.*"]
disable_error_code = ["name-defined"]
[tool.pyright]
typeCheckingMode = "basic"
executionEnvironments = [
{ root = "addons", reportMissingImports = "none", reportMissingTypeStubs = "none", reportUndefinedVariable = "none" },
]