-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (127 loc) · 3.9 KB
/
Copy pathpyproject.toml
File metadata and controls
142 lines (127 loc) · 3.9 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[build-system]
# hatchling >= 1.27 required for PEP 639 license metadata
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "b1sl-python"
version = "0.14.0"
description = "A framework-agnostic Python SDK for SAP Business One: Service Layer (OData) and API Gateway (Crystal Reports to PDF). (Unofficial)"
readme = "README.md"
requires-python = ">=3.11,<3.15"
license = "MIT"
license-files = ["LICENSE"]
# "hana" kept deliberately: SQLQueries runs SQL over HANA via the Service Layer.
keywords = ["sap", "sap-b1", "service-layer", "api-gateway", "crystal-reports", "hana", "erp", "odata"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
authors = [
{ name = "Eliceo Guzman" },
]
# ── Core: minimal footprint ─────────────────────────────────────────────── #
dependencies = [
"pydantic>=2.0.0,<3",
"httpx>=0.28.1,<1",
"python-dotenv>=1.2.2",
]
[project.urls]
Homepage = "https://github.com/operator-ita/b1sl-python"
Repository = "https://github.com/operator-ita/b1sl-python"
"Bug Tracker" = "https://github.com/operator-ita/b1sl-python/issues"
Documentation = "https://github.com/operator-ita/b1sl-python/tree/main/docs"
Changelog = "https://github.com/operator-ita/b1sl-python/blob/main/CHANGELOG.md"
[project.optional-dependencies]
django = ["django>=4.2,<6"]
generator = [
"beautifulsoup4>=4.14.3",
"lxml>=6.0.2",
]
dev = [
"pytest>=8.0,<9.0",
"pytest-django",
"pytest-asyncio>=1.3.0",
"pytest-recording>=0.13.4",
"python-dotenv>=1.2.2",
"respx>=0.22.0",
"responses>=0.26.0",
"ruff",
"mypy",
"pytest-cov",
]
all = ["b1sl-python[django,generator]"]
[tool.hatch.build.targets.wheel]
packages = ["src/b1sl"]
exclude = [
"/scripts",
"/metadata",
"/examples",
"/docs",
"/skills",
"agents.md",
]
[tool.hatch.build.targets.sdist]
exclude = [
"/scripts",
"/metadata",
"/examples",
"/docs",
"/.env",
"/.env.example",
"/skills",
"/tests",
"/configs",
"/TODO.md",
"/ROADMAP.md",
"/skills-lock.json",
"agents.md",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
markers = [
"integration: tests that require a real SAP B1 Service Layer connection",
"vcr: tests that use pytest-recording to capture HTTP traffic",
]
# Coverage instrumentation is opt-in (make test-ci / coverage-html): keeping
# --cov out of addopts makes plain `pytest` runs and collection fast.
addopts = "--tb=short"
[tool.mypy]
files = ["src"]
plugins = ["pydantic.mypy"]
strict = false
ignore_missing_imports = true
exclude = ["_generated"]
check_untyped_defs = true
warn_unreachable = true
# Re-armed (audit P1): attr-defined / arg-type / call-arg / union-attr are
# ACTIVE — they catch protocol drift and sync/async asymmetries. Only codes
# that fire en masse on pydantic/generated-model idioms stay disabled.
disable_error_code = ["misc", "override", "assignment", "valid-type", "type-var", "unreachable", "call-overload"]
[tool.ruff]
line-length = 88
target-version = "py311"
extend-exclude = [
"src/b1sl/b1sl/models/_generated",
"src/b1sl/b1sl/resources/_generated",
]
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501", "W291", "W293"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint.extend-per-file-ignores]
"src/b1sl/b1sl/entities/__init__.py" = ["F401", "F403", "F405"]
"examples/**" = ["E402", "F841"]
"scripts/**" = ["E701", "F401"]
[tool.pyright]
include = ["src", "scripts"]
extraPaths = [".", "scripts"]