Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (60 loc) · 1.82 KB
/
Copy pathpyproject.toml
File metadata and controls
72 lines (60 loc) · 1.82 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "o2j"
version = "1.0.0"
description = "OpenAPI YAML to Java Spring Boot conversion factory, driven by GitHub Copilot agents"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "Proprietary" }
dependencies = [
"typer>=0.15.1",
"pydantic>=2.10.0",
"ruamel.yaml>=0.18.6",
"jsonschema>=4.23.0",
"openapi-spec-validator>=0.7.1", # official OpenAPI JSON Schemas (FR-V-03)
"rich>=13.9.0",
]
[project.optional-dependencies]
mcp = ["mcp>=1.2.0"]
dev = [
"pre-commit>=4.0.0",
"pytest>=8.3.0",
"pytest-cov>=6.0.0",
"ruff>=0.8.0",
"mypy>=1.13.0",
]
[project.scripts]
o2j = "o2j.cli:app"
[tool.setuptools.packages.find]
include = ["o2j*"]
[tool.setuptools.package-data]
o2j = ["schemas/*.json", "templates/*.mustache", "rules/spectral/*.yaml"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "SIM", "RUF", "S"]
ignore = ["S603", "S607"] # subprocess use is deliberate and argument-list based
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"]
# N818 wants an "Error" suffix on every exception. These names read as the pipeline outcome
# they represent at the raise site (`raise LoadBearingLoss(...)`), and they all derive from
# O2JError, so the category is already explicit. Narrow, single-rule, single-file.
"o2j/errors.py" = ["N818"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_unreachable = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["ruamel.*", "mcp.*", "jsonschema.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --strict-markers"
markers = [
"requires_java: needs a JDK and Maven on PATH",
"requires_generator: needs the openapi-generator jar",
]