Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (113 loc) · 2.34 KB
/
Copy pathpyproject.toml
File metadata and controls
130 lines (113 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "apigatewaycl"
version = "6.0.0"
description = "Cliente para realizar la integración con los servicios web de API Gateway desde Python."
readme = "README.rst"
license = { file = "COPYING" }
authors = [
{ name = "API Gateway", email = "dev@apigateway.cl" },
]
requires-python = ">=3.13"
keywords = ["sii", "chile"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"requests",
]
[project.optional-dependencies]
dev = [
"ruff",
"mypy",
"pytest",
"pytest-cov",
"types-requests",
"python-dotenv",
"build",
"twine",
]
docs = ["sphinx", "sphinx-rtd-theme"]
[project.urls]
Homepage = "https://www.apigateway.cl"
Source = "https://github.com/apigatewaycl/apigateway-api-client-python"
[tool.hatch.build.targets.wheel]
packages = ["apigatewaycl"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra -m dummy"
markers = [
"dummy: deterministic real-API tests safe to run always — run by default and in CI.",
"readonly: read-only real-API tests that need specific test-account data — not run by default.",
"risky: real-API tests that emit/anular/enviar something real (SII/email) — never run automatically.",
]
[tool.mypy]
python_version = "3.13"
strict = true
files = ["apigatewaycl"]
[tool.ruff]
include = ["**/*.py", "**/*.pyi"]
exclude = [
".git",
"__pycache__",
".venv",
"venv",
]
line-length = 79
target-version = "py313"
respect-gitignore = true
fix = true
[tool.ruff.lint]
select = [
"D",
"F",
"E",
"W",
"I",
"UP",
"N",
"B",
"A",
"C90",
"ARG",
"DTZ",
"TRY",
"SLF",
"ERA",
"PL",
"RUF",
]
ignore = [
"D102",
"D203",
"D212",
"D401",
"TRY400",
"N818",
"UP031",
"TRY003",
"ARG001",
"Q001",
"ERA001",
"PLC0415",
"N802",
"N806",
]
[tool.ruff.lint.mccabe]
max-complexity = 25
[tool.ruff.lint.pylint]
max-args = 10
max-branches = 25
max-statements = 60
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D", "SLF", "PLR2004"]
"docs/conf.py" = ["D100", "A001"]
[tool.ruff.format]
quote-style = "single"