stdl 0.6.8__tar.gz → 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stdl-0.6.8 → stdl-0.7.0}/PKG-INFO +1 -1
- {stdl-0.6.8 → stdl-0.7.0}/pyproject.toml +129 -101
- {stdl-0.6.8 → stdl-0.7.0}/stdl/color.py +97 -85
- {stdl-0.6.8 → stdl-0.7.0}/stdl/decorators.py +5 -8
- {stdl-0.6.8 → stdl-0.7.0}/stdl/dt.py +53 -48
- {stdl-0.6.8 → stdl-0.7.0}/stdl/fs.py +147 -115
- {stdl-0.6.8 → stdl-0.7.0}/stdl/import_lazy.py +26 -19
- {stdl-0.6.8 → stdl-0.7.0}/stdl/log.py +8 -6
- stdl-0.7.0/stdl/lst.py +166 -0
- {stdl-0.6.8 → stdl-0.7.0}/stdl/net.py +2 -2
- {stdl-0.6.8 → stdl-0.7.0}/stdl/st.py +42 -48
- {stdl-0.6.8 → stdl-0.7.0}/tests/test_color.py +9 -9
- {stdl-0.6.8 → stdl-0.7.0}/tests/test_decorators.py +7 -4
- {stdl-0.6.8 → stdl-0.7.0}/tests/test_dt.py +5 -7
- {stdl-0.6.8 → stdl-0.7.0}/tests/test_fs.py +39 -39
- stdl-0.7.0/tests/test_lst.py +27 -0
- {stdl-0.6.8 → stdl-0.7.0}/tests/test_pydantic_integration.py +8 -3
- {stdl-0.6.8 → stdl-0.7.0}/tests/test_st.py +21 -1
- {stdl-0.6.8 → stdl-0.7.0}/uv.lock +3 -1
- stdl-0.6.8/stdl/lst.py +0 -166
- stdl-0.6.8/tests/test_lst.py +0 -25
- {stdl-0.6.8 → stdl-0.7.0}/.editorconfig +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/.github/workflows/lint.yml +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/.github/workflows/publish.yml +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/.github/workflows/test.yml +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/.gitignore +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/.pre-commit-config.yaml +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/.python-version +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/.readthedocs.yml +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/CONTRIBUTING.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/Justfile +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/LICENSE +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/README.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/docs/index.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/docs/reference/color.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/docs/reference/decorators.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/docs/reference/dt.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/docs/reference/fs.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/docs/reference/import_lazy.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/docs/reference/log.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/docs/reference/net.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/docs/reference/st.md +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/docs/requirements.txt +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/mkdocs.yml +0 -0
- {stdl-0.6.8 → stdl-0.7.0}/stdl/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "stdl"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.7.0"
|
|
4
4
|
description = "Extended Python Standard Library"
|
|
5
5
|
authors = [{ name = "Žiga Ivanšek", email = "ziga.ivansek@gmail.com" }]
|
|
6
6
|
license = { file = "LICENSE" }
|
|
@@ -70,106 +70,6 @@ build-backend = "hatchling.build"
|
|
|
70
70
|
[tool.hatch.build.targets.wheel]
|
|
71
71
|
packages = ["stdl"]
|
|
72
72
|
|
|
73
|
-
[tool.ruff]
|
|
74
|
-
line-length = 100
|
|
75
|
-
|
|
76
|
-
[tool.ruff.lint]
|
|
77
|
-
select = [
|
|
78
|
-
"F", # Pyflakes
|
|
79
|
-
"E", # Pycodestyle (Error)
|
|
80
|
-
'I', # isort
|
|
81
|
-
'D', # pydocstyle
|
|
82
|
-
'D213', # pydocstyle
|
|
83
|
-
'UP', # pyupgrade
|
|
84
|
-
'YTT', # flake8-2020
|
|
85
|
-
'B', # flake8-bugbear
|
|
86
|
-
"PLE", # pylint
|
|
87
|
-
'PYI006', # flake8-pyi
|
|
88
|
-
'PYI019', # flake8-pyi
|
|
89
|
-
'PYI024', # flake8-pyi
|
|
90
|
-
'PYI030', # flake8-pyi
|
|
91
|
-
'PYI062', # flake8-pyi
|
|
92
|
-
'PYI063', # flake8-pyi
|
|
93
|
-
'PYI066', # flake8-pyi
|
|
94
|
-
"RUF001",
|
|
95
|
-
"RUF002",
|
|
96
|
-
"RUF003",
|
|
97
|
-
"RUF005",
|
|
98
|
-
"RUF006",
|
|
99
|
-
"RUF012",
|
|
100
|
-
"RUF013",
|
|
101
|
-
"RUF016",
|
|
102
|
-
"RUF017",
|
|
103
|
-
"RUF018",
|
|
104
|
-
"RUF019",
|
|
105
|
-
"RUF020",
|
|
106
|
-
"RUF021",
|
|
107
|
-
"RUF024",
|
|
108
|
-
"RUF026",
|
|
109
|
-
"RUF030",
|
|
110
|
-
"RUF032",
|
|
111
|
-
"RUF033",
|
|
112
|
-
"RUF034",
|
|
113
|
-
"TRY002",
|
|
114
|
-
"TRY004",
|
|
115
|
-
"TRY201",
|
|
116
|
-
"TRY300",
|
|
117
|
-
"TRY301",
|
|
118
|
-
"TRY400",
|
|
119
|
-
"PERF101",
|
|
120
|
-
"RET503",
|
|
121
|
-
"LOG001",
|
|
122
|
-
"LOG002",
|
|
123
|
-
]
|
|
124
|
-
ignore = [
|
|
125
|
-
"D100",
|
|
126
|
-
"D101",
|
|
127
|
-
"D102",
|
|
128
|
-
"D103",
|
|
129
|
-
"D104",
|
|
130
|
-
'D105',
|
|
131
|
-
'D106',
|
|
132
|
-
'D107',
|
|
133
|
-
'D205',
|
|
134
|
-
"D212",
|
|
135
|
-
'D415',
|
|
136
|
-
'E501',
|
|
137
|
-
'B011',
|
|
138
|
-
'B028',
|
|
139
|
-
'B904',
|
|
140
|
-
'PIE804',
|
|
141
|
-
"N802",
|
|
142
|
-
"N803",
|
|
143
|
-
"N806",
|
|
144
|
-
"UP007",
|
|
145
|
-
"UP038",
|
|
146
|
-
]
|
|
147
|
-
exclude = ["build", "tests/**"]
|
|
148
|
-
|
|
149
|
-
[tool.ruff.lint.per-file-ignores]
|
|
150
|
-
"__init__.py" = [
|
|
151
|
-
"F401", # Unused import
|
|
152
|
-
"E402", # Module import not at top of file
|
|
153
|
-
]
|
|
154
|
-
"stdl/color.py" = [
|
|
155
|
-
"E741", # Ambiguous variable name 'l' (used for lightness in HSL color space)
|
|
156
|
-
]
|
|
157
|
-
"stdl/lst.py" = [
|
|
158
|
-
"E741", # Ambiguous variable name 'l' (used as list parameter name)
|
|
159
|
-
]
|
|
160
|
-
|
|
161
|
-
[tool.ruff.format]
|
|
162
|
-
quote-style = "double"
|
|
163
|
-
indent-style = "space"
|
|
164
|
-
skip-magic-trailing-comma = false
|
|
165
|
-
line-ending = "lf"
|
|
166
|
-
|
|
167
|
-
[tool.ruff.lint.isort]
|
|
168
|
-
known-first-party = ["stdl", "tests"]
|
|
169
|
-
|
|
170
|
-
[tool.ruff.lint.pydocstyle]
|
|
171
|
-
convention = "google"
|
|
172
|
-
|
|
173
73
|
[tool.codespell]
|
|
174
74
|
skip = '.git,uv.lock'
|
|
175
75
|
|
|
@@ -212,3 +112,131 @@ warn_return_any = true
|
|
|
212
112
|
warn_unused_configs = true
|
|
213
113
|
strict_equality = true
|
|
214
114
|
ignore_missing_imports = true
|
|
115
|
+
|
|
116
|
+
[tool.ruff]
|
|
117
|
+
line-length = 100
|
|
118
|
+
|
|
119
|
+
[tool.ruff.lint]
|
|
120
|
+
select = ["ALL"]
|
|
121
|
+
ignore = [
|
|
122
|
+
"ERA",
|
|
123
|
+
"FBT002",
|
|
124
|
+
"COM",
|
|
125
|
+
"CPY",
|
|
126
|
+
"DJ",
|
|
127
|
+
"ANN003",
|
|
128
|
+
"FIX",
|
|
129
|
+
"D100",
|
|
130
|
+
"D101",
|
|
131
|
+
"D102",
|
|
132
|
+
"D103",
|
|
133
|
+
"D104",
|
|
134
|
+
"D105",
|
|
135
|
+
"D106",
|
|
136
|
+
"D107",
|
|
137
|
+
"D205",
|
|
138
|
+
"D203",
|
|
139
|
+
"D212",
|
|
140
|
+
"E501",
|
|
141
|
+
"PIE804",
|
|
142
|
+
"S101",
|
|
143
|
+
"EM101",
|
|
144
|
+
"PYI041",
|
|
145
|
+
"PYI051",
|
|
146
|
+
"PYI046",
|
|
147
|
+
"PYI047",
|
|
148
|
+
"PYI049",
|
|
149
|
+
"PYI053",
|
|
150
|
+
"PYI054",
|
|
151
|
+
"RET501",
|
|
152
|
+
"SIM910",
|
|
153
|
+
"N812",
|
|
154
|
+
"PLC0415",
|
|
155
|
+
"PLR0904",
|
|
156
|
+
"PLR0913",
|
|
157
|
+
"PLR2004",
|
|
158
|
+
"PLR1711",
|
|
159
|
+
"TRY003",
|
|
160
|
+
"T20",
|
|
161
|
+
"SIM105",
|
|
162
|
+
"RET504",
|
|
163
|
+
"PLR0912",
|
|
164
|
+
"PLR0915",
|
|
165
|
+
"SIM105",
|
|
166
|
+
"TD",
|
|
167
|
+
"TC001",
|
|
168
|
+
"TC002",
|
|
169
|
+
"TC003",
|
|
170
|
+
"TC006",
|
|
171
|
+
"PLW0603",
|
|
172
|
+
"EM102",
|
|
173
|
+
"PLW2901",
|
|
174
|
+
"RSE102",
|
|
175
|
+
"PGH004",
|
|
176
|
+
"N806",
|
|
177
|
+
"FBT001",
|
|
178
|
+
"PTH",
|
|
179
|
+
"S310",
|
|
180
|
+
]
|
|
181
|
+
exclude = ["build"]
|
|
182
|
+
|
|
183
|
+
[tool.ruff.lint.per-file-ignores]
|
|
184
|
+
"__init__.py" = [
|
|
185
|
+
"F401", # Unused import
|
|
186
|
+
"E402", # Module import not at top of file
|
|
187
|
+
]
|
|
188
|
+
"**/tests/**/*.py" = [
|
|
189
|
+
"S104",
|
|
190
|
+
"S105",
|
|
191
|
+
"S106",
|
|
192
|
+
"TRY004",
|
|
193
|
+
"RUF003",
|
|
194
|
+
"RUF012",
|
|
195
|
+
"UP031",
|
|
196
|
+
"SLF001",
|
|
197
|
+
"ARG",
|
|
198
|
+
"N806",
|
|
199
|
+
"ANN001",
|
|
200
|
+
"ANN201",
|
|
201
|
+
"ANN202",
|
|
202
|
+
"ANN204",
|
|
203
|
+
"ANN401",
|
|
204
|
+
"S",
|
|
205
|
+
"SLF001",
|
|
206
|
+
"INP001",
|
|
207
|
+
"PLW0108",
|
|
208
|
+
"EM102",
|
|
209
|
+
"FBT001",
|
|
210
|
+
"SIM300",
|
|
211
|
+
"DTZ001",
|
|
212
|
+
]
|
|
213
|
+
"examples/*.py" = ["INP001"]
|
|
214
|
+
|
|
215
|
+
[tool.ruff.lint.pep8-naming]
|
|
216
|
+
classmethod-decorators = [
|
|
217
|
+
"pydantic.validator",
|
|
218
|
+
"declared_attr",
|
|
219
|
+
"expression",
|
|
220
|
+
"comparator",
|
|
221
|
+
]
|
|
222
|
+
|
|
223
|
+
[tool.ruff.lint.flake8-builtins]
|
|
224
|
+
ignorelist = ["id", "input"]
|
|
225
|
+
|
|
226
|
+
[tool.ruff.lint.flake8-type-checking]
|
|
227
|
+
runtime-evaluated-base-classes = [
|
|
228
|
+
"pydantic.BaseModel",
|
|
229
|
+
"sqlalchemy.orm.DeclarativeBase",
|
|
230
|
+
]
|
|
231
|
+
|
|
232
|
+
[tool.ruff.format]
|
|
233
|
+
quote-style = "double"
|
|
234
|
+
indent-style = "space"
|
|
235
|
+
skip-magic-trailing-comma = false
|
|
236
|
+
line-ending = "lf"
|
|
237
|
+
|
|
238
|
+
[tool.ruff.lint.isort]
|
|
239
|
+
known-first-party = ["stdl", "tests"]
|
|
240
|
+
|
|
241
|
+
[tool.ruff.lint.pydocstyle]
|
|
242
|
+
convention = "google"
|