-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (128 loc) · 3.8 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (128 loc) · 3.8 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
[tool.poetry]
name = "ubidots-cli"
version = "2.1.1"
description = "A powerful CLI tool for efficient management and automation of cloud-based resources."
authors = ["Ubidots <devel@ubidots.com>", "crubio <cristian.rubio@ubidots.com>", "Juan David <juan.david@ubidots.com>"]
readme = "README.md"
packages = [
{ include = "cli"}
]
include = [
{ path = "cli/apps/schemas/*.dtd", format = ["sdist", "wheel"] },
{ path = "cli/apps/schemas/*.xml", format = ["sdist", "wheel"] }
]
[tool.poetry.urls]
"Homepage" = "https://github.com/ubidots/ubidots-cli"
"Source" = "https://github.com/ubidots/ubidots-cli"
"Bug Tracker" = "https://github.com/ubidots/ubidots-cli/issues"
[tool.poetry.scripts]
ubidots = "cli.main:app"
[tool.poetry.dependencies]
click = ">=8.1.0"
python = ">=3.9,<3.15"
typer = "^0.15.0"
pyyaml = "^6.0.1"
pydantic = "^2.5.3"
requests = "^2.31.0"
inquirerpy = "^0.3.4"
pydantic-settings = "^2.1.0"
rich = "^13.7.0"
docker = "^7.0.0"
podman = "^4.9.0"
croniter = "^2.0.1"
httpx = "^0.27.0"
tomli = "^2.2.1"
tomli-w = "^1.2.0"
jinja2 = "^3.1.6"
psutil = "^5.9.0"
watchdog = "^6.0.0"
lxml = ">=5.2,<5.4"
PyJWT = {version = ">=2.8.0", extras = ["crypto"]}
filelock = "^3.13.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.extras]
simplification = ["simplification"]
[tool.poetry.group.dev.dependencies]
ipdb = "^0.13.13"
pep8 = "^1.7.1"
pytest = "^7.4.4"
pytest-mock = "^3.12.0"
autoflake = "^2.2.1"
ruff = "^0.15.5"
tox = "^4.18"
mypy = "^1.11.1"
types-PyYAML = "^6.0.12.20240808"
types-requests = "^2.32.0.20241016"
respx = "^0.22.0"
[tool.ruff]
target-version = "py313"
line-length = 119
lint.select = ["ALL"]
lint.ignore = [
# ── Inherited from core (cross-repo standard) ────────────────────────────
"A",
"ANN",
"BLE",
"C",
"COM812",
"CPY",
"D",
"DOC",
"ERA",
"FBT",
"FIX",
"N",
"PLC1901",
"PLC2701",
"PLR0904",
"PLR0913",
"PLR0917",
"PLR6301",
"RUF001",
"RUF012",
"S101",
"S103",
"S105",
"S106",
"S108",
"S301",
"S324",
"S403",
"S405",
"S603",
"S608",
"S611",
"SLF",
"T",
"TD",
"TC",
# ── CLI-specific: pre-existing patterns / intentional constructs ──────────
"PLC0415", # conditional imports inside try/except blocks (valid pattern)
"EM101", # exception string literals (pre-existing style)
"EM102", # exception f-string literals (pre-existing style)
"INP001", # implicit namespace packages (pre-existing structure)
"UP036", # version block in compat.py is intentional (supports Python 3.9+)
"UP042", # StrEnum backport in compat.py is intentional (supports Python 3.9/3.10)
# ── Test style: project uses unittest assertions and fixture patterns ─────
"PT009", # unittest-style assertEqual/assertIn (entire test suite uses this)
"PT019", # fixture _ without value — unittest mock injection pattern
"ARG002", # unused method argument — legitimate in test stubs/mocks
# ── Refactor-class: require structural changes, deferred ─────────────────
"PLR2004", # magic value comparisons
"PLR0912", # too many branches
"PLR0914", # too many local variables
"PLR0915", # too many statements
"PLR1702", # too many nested blocks
"TRY003", # long raise messages outside exception class
"TRY300", # consider else block instead of try
"TRY301", # raise inside try block
"TRY004", # prefer TypeError for type checks
"S110", # try-except-pass (intentional in hot-path error suppression)
"PT011", # pytest.raises too broad — needs match= parameter
"ARG001", # unused function argument
"DTZ007", # naive datetime from strptime in test assertions
]
lint.isort.force-single-line = true
lint.isort.case-sensitive = true