Advertisement
Guest User

conda install error

a guest
Feb 8th, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 140.79 KB | Software | 0 0
  1. AUR Dependency (2): python-conda-libmamba-solver-24.11.1-1, python-boltons-25.0.0-1
  2. AUR Explicit (1): python-conda-25.1.1-1
  3. :: PKGBUILD up to date, skipping download: python-conda
  4. :: PKGBUILD up to date, skipping download: python-conda-libmamba-solver
  5. :: PKGBUILD up to date, skipping download: python-boltons
  6. 3 python-conda-libmamba-solver (Build Files Exist)
  7. 2 python-boltons (Build Files Exist)
  8. 1 python-conda (Build Files Exist)
  9. ==> Packages to cleanBuild?
  10. ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
  11. ==> :: Deleting (1/3): /home/usernameedited/.cache/yay/python-conda-libmamba-solver
  12. HEAD is now at 5109096 v24.11.1 (#59)
  13. Removing python-conda-libmamba-solver-24.11.1.tar.gz
  14. Removing src/
  15. :: Deleting (2/3): /home/usernameedited/.cache/yay/python-boltons
  16. HEAD is now at cdae599 Update makedepends and bump to 25.0.0
  17. Removing boltons/
  18. Removing pkg/
  19. Skipping repository src/boltons
  20. :: Deleting (3/3): /home/usernameedited/.cache/yay/python-conda
  21. HEAD is now at cec9a29 build: release v25.1.1-1
  22. Removing conda-25.1.1.tar.gz
  23. Removing src/
  24. 3 python-conda (Build Files Exist)
  25. 2 python-conda-libmamba-solver (Build Files Exist)
  26. 1 python-boltons (Build Files Exist)
  27. ==> Diffs to show?
  28. ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
  29. ==> ==> Making package: python-boltons 25.0.0-1 (Sat 08 Feb 2025 07:11:19 PM CET)
  30. ==> Retrieving sources...
  31. ==> Making package: python-conda-libmamba-solver 24.11.1-1 (Sat 08 Feb 2025 07:11:19 PM CET)
  32. ==> Retrieving sources...
  33.  -> Cloning boltons git repo...
  34. ==> Making package: python-conda 25.1.1-1 (Sat 08 Feb 2025 07:11:19 PM CET)
  35. ==> Retrieving sources...
  36.  -> Downloading python-conda-libmamba-solver-24.11.1.tar.gz...
  37.  -> Downloading conda-25.1.1.tar.gz...
  38. ==> Validating source files with sha256sums...
  39. ==> Validating source files with sha512sums...
  40.  -> Found py-3.13-logging.patch
  41. ==> Validating source files with sha256sums...
  42. :: (1/3) Parsing SRCINFO: python-conda
  43. :: (2/3) Parsing SRCINFO: python-conda-libmamba-solver
  44. :: (3/3) Parsing SRCINFO: python-boltons
  45. ==> Making package: python-boltons 25.0.0-1 (Sat 08 Feb 2025 07:11:25 PM CET)
  46. ==> Checking runtime dependencies...
  47. ==> Checking buildtime dependencies...
  48. ==> Retrieving sources...
  49.  -> Updating boltons git repo...
  50. ==> Validating source files with sha512sums...
  51. ==> Removing existing $srcdir/ directory...
  52. ==> Extracting sources...
  53.  -> Creating working copy of boltons git repo...
  54. ==> Sources are ready.
  55. ==> Making package: python-boltons 25.0.0-1 (Sat 08 Feb 2025 07:11:28 PM CET)
  56. ==> Checking runtime dependencies...
  57. ==> Checking buildtime dependencies...
  58. ==> Starting build()...
  59. )0[?7h
  60. ==> Starting check()...
  61. ============================= test session starts ==============================
  62. platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0
  63. rootdir: /home/usernameedited/.cache/yay/python-boltons/src/boltons
  64. configfile: pyproject.toml
  65. plugins: typeguard-4.4.1, ruff-0.4.1, cov-6.0.0, jaraco.vcs-2.4.0, mock-3.14.0, xonsh-0.19.1, enabler-3.3.0, hypothesis-6.124.7, mypy-0.10.3, home-0.6.0, anyio-4.8.0
  66. collected 616 items
  67.  
  68. boltons/__init__.py .F.. [ 0%]
  69. boltons/cacheutils.py F.F [ 1%]
  70. boltons/debugutils.py .FF [ 1%]
  71. boltons/deprutils.py ..F [ 2%]
  72. boltons/dictutils.py FFF [ 2%]
  73. boltons/easterutils.py ..F [ 3%]
  74. boltons/ecoutils.py FFF [ 3%]
  75. boltons/excutils.py .FF [ 4%]
  76. boltons/fileutils.py F.F [ 4%]
  77. boltons/formatutils.py ..F [ 5%]
  78. boltons/funcutils.py .FF [ 5%]
  79. boltons/gcutils.py ..F [ 6%]
  80. boltons/ioutils.py ..F [ 6%]
  81. boltons/iterutils.py FFF [ 6%]
  82. boltons/jsonutils.py ..F [ 7%]
  83. boltons/listutils.py .FF [ 7%]
  84. boltons/mathutils.py ..F [ 8%]
  85. boltons/mboxutils.py ..F [ 8%]
  86. boltons/namedutils.py ..F [ 9%]
  87. boltons/pathutils.py ..F [ 9%]
  88. boltons/queueutils.py F.F [ 10%]
  89. boltons/setutils.py .FF [ 10%]
  90. boltons/socketutils.py F.F [ 11%]
  91. boltons/statsutils.py .FF [ 11%]
  92. boltons/strutils.py .FF [ 12%]
  93. boltons/tableutils.py ..F [ 12%]
  94. boltons/tbutils.py .FF [ 13%]
  95. boltons/timeutils.py FFF [ 13%]
  96. boltons/typeutils.py ..F [ 14%]
  97. boltons/urlutils.py FFF [ 14%]
  98. docs/conf.py FFF [ 15%]
  99. misc/bench_omd.py FFF [ 15%]
  100. misc/linkify_changelog.py ..F [ 16%]
  101. misc/table_html_app.py FFF [ 16%]
  102. tests/__init__.py ... [ 17%]
  103. tests/conftest.py ..F [ 17%]
  104. tests/test_cacheutils.py .FF.................. [ 21%]
  105. tests/test_debugutils_trace.py ..F...... [ 22%]
  106. tests/test_dictutils.py .FF........................... [ 27%]
  107. tests/test_ecoutils.py ..F.. [ 28%]
  108. tests/test_fileutils.py ..F...... [ 29%]
  109. tests/test_formatutils.py FFF..... [ 31%]
  110. tests/test_funcutils.py ..F..... [ 32%]
  111. tests/test_funcutils_fb.py ..F............... [ 35%]
  112. tests/test_funcutils_fb_py3.py FFF...................... [ 39%]
  113. tests/test_gcutils.py .FF.. [ 40%]
  114. tests/test_ioutils.py ..F............................................... [ 48%]
  115. ................................... [ 53%]
  116. tests/test_iterutils.py .FF......................................... [ 61%]
  117. tests/test_jsonutils.py ..F.. [ 61%]
  118. tests/test_listutils.py .FF.. [ 62%]
  119. tests/test_mathutils.py ..F........... [ 64%]
  120. tests/test_namedutils.py ..F... [ 65%]
  121. tests/test_queueutils.py ..F.. [ 66%]
  122. tests/test_setutils.py .FF..... [ 68%]
  123. tests/test_socketutils.py .FF........... [ 70%]
  124. tests/test_statsutils.py F.F. [ 70%]
  125. tests/test_statsutils_histogram.py F.F.. [ 71%]
  126. tests/test_strutils.py .FF.............. [ 74%]
  127. tests/test_tableutils.py ..F... [ 75%]
  128. tests/test_tbutils.py .FF.. [ 76%]
  129. tests/test_tbutils_parsed_exc.py ..F... [ 77%]
  130. tests/test_timeutils.py ..F.... [ 78%]
  131. tests/test_typeutils.py ..F... [ 79%]
  132. tests/test_urlutils.py ..F.............................................. [ 87%]
  133. ........................................................................ [ 99%]
  134. ...... [100%]
  135.  
  136. =================================== FAILURES ===================================
  137. _________________________________ test session _________________________________
  138. mypy exited with status 1.
  139. ____________________________ boltons/cacheutils.py _____________________________
  140. 74: error: Name "RLock" already defined (possibly by an import) [no-redef]
  141. _________________________________ test session _________________________________
  142. File would be reformatted
  143. ----------------------------- Captured stdout call -----------------------------
  144. Would reformat: boltons/cacheutils.py
  145. _________________________________ test session _________________________________
  146. boltons/debugutils.py:175:9: E731 Do not assign a `lambda` expression, use a `def`
  147. |
  148. 174 | if isinstance(which, str):
  149. 175 | which_func = lambda attr_name, attr_val: attr_name == which
  150. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  151. 176 | elif callable(getattr(which, '__contains__', None)):
  152. 177 | which_func = lambda attr_name, attr_val: attr_name in which
  153. |
  154. = help: Rewrite `which_func` as a `def`
  155.  
  156. boltons/debugutils.py:177:9: E731 Do not assign a `lambda` expression, use a `def`
  157. |
  158. 175 | which_func = lambda attr_name, attr_val: attr_name == which
  159. 176 | elif callable(getattr(which, '__contains__', None)):
  160. 177 | which_func = lambda attr_name, attr_val: attr_name in which
  161. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  162. 178 | elif which is None or callable(which):
  163. 179 | which_func = which
  164. |
  165. = help: Rewrite `which_func` as a `def`
  166.  
  167.  
  168. _________________________________ test session _________________________________
  169. File would be reformatted
  170. ----------------------------- Captured stdout call -----------------------------
  171. Would reformat: boltons/debugutils.py
  172. _________________________________ test session _________________________________
  173. File would be reformatted
  174. ----------------------------- Captured stdout call -----------------------------
  175. Would reformat: boltons/deprutils.py
  176. _____________________________ boltons/dictutils.py _____________________________
  177. 370: error: Signatures of "__ior__" and "__or__" are incompatible [misc]
  178. 1114: error: Incompatible types in assignment (expression has type "Callable[[FrozenDict, VarArg(Any), KwArg(Any)], Any]", base class "dict" defined the type as overloaded function) [assignment]
  179. 1114: error: Incompatible types in assignment (expression has type "Callable[[FrozenDict, VarArg(Any), KwArg(Any)], Any]", base class "MutableMapping" defined the type as overloaded function) [assignment]
  180. 1115: error: Incompatible types in assignment (expression has type "Callable[[FrozenDict, VarArg(Any), KwArg(Any)], Any]", base class "MutableMapping" defined the type as overloaded function) [assignment]
  181. 1115: error: Incompatible types in assignment (expression has type "Callable[[FrozenDict, VarArg(Any), KwArg(Any)], Any]", base class "dict" defined the type as overloaded function) [assignment]
  182. _________________________________ test session _________________________________
  183. boltons/dictutils.py:1013:16: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
  184. |
  185. 1012 | def __eq__(self, other):
  186. 1013 | return type(self) == type(other) and self.data == other.data
  187. | ^^^^^^^^^^^^^^^^^^^^^^^^^ E721
  188. 1014 |
  189. 1015 | def __repr__(self):
  190. |
  191.  
  192.  
  193. _________________________________ test session _________________________________
  194. File would be reformatted
  195. ----------------------------- Captured stdout call -----------------------------
  196. Would reformat: boltons/dictutils.py
  197. _________________________________ test session _________________________________
  198. File would be reformatted
  199. ----------------------------- Captured stdout call -----------------------------
  200. Would reformat: boltons/easterutils.py
  201. _____________________________ boltons/ecoutils.py ______________________________
  202. 174: error: Incompatible types in assignment (expression has type "Callable[[int], int]", variable has type "Callable[[Arg(int, 'k')], int]") [assignment]
  203. _________________________________ test session _________________________________
  204. boltons/ecoutils.py:185:12: F401 [*] `readline` imported but unused
  205. |
  206. 184 | try:
  207. 185 | import readline
  208. | ^^^^^^^^ F401
  209. 186 | except Exception:
  210. 187 | HAVE_READLINE = False
  211. |
  212. = help: Remove unused import: `readline`
  213.  
  214. boltons/ecoutils.py:238:12: F401 [*] `threading` imported but unused
  215. |
  216. 237 | try:
  217. 238 | import threading
  218. | ^^^^^^^^^ F401
  219. 239 | HAVE_THREADING = True
  220. 240 | except Exception:
  221. |
  222. = help: Remove unused import: `threading`
  223.  
  224.  
  225. _________________________________ test session _________________________________
  226. File would be reformatted
  227. ----------------------------- Captured stdout call -----------------------------
  228. Would reformat: boltons/ecoutils.py
  229. _________________________________ test session _________________________________
  230. boltons/excutils.py:286:19: E702 Multiple statements on one line (semicolon)
  231. |
  232. 284 | main()
  233. 285 | except Exception:
  234. 286 | import pdb;pdb.post_mortem()
  235. | ^ E702
  236. 287 | raise
  237. |
  238.  
  239.  
  240. _________________________________ test session _________________________________
  241. File would be reformatted
  242. ----------------------------- Captured stdout call -----------------------------
  243. Would reformat: boltons/excutils.py
  244. _____________________________ boltons/fileutils.py _____________________________
  245. 276: error: Module has no attribute "windll" [attr-defined]
  246. _________________________________ test session _________________________________
  247. File would be reformatted
  248. ----------------------------- Captured stdout call -----------------------------
  249. Would reformat: boltons/fileutils.py
  250. _________________________________ test session _________________________________
  251. File would be reformatted
  252. ----------------------------- Captured stdout call -----------------------------
  253. Would reformat: boltons/formatutils.py
  254. _________________________________ test session _________________________________
  255. boltons/funcutils.py:228:34: E701 Multiple statements on one line (colon)
  256. |
  257. 226 | def __eq__(self, other): return self >= other and self <= other
  258. 227 |
  259. 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
  260. | ^ E701
  261. 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
  262. 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
  263. |
  264.  
  265. boltons/funcutils.py:229:34: E701 Multiple statements on one line (colon)
  266. |
  267. 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
  268. 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
  269. | ^ E701
  270. 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
  271. |
  272.  
  273. boltons/funcutils.py:230:34: E701 Multiple statements on one line (colon)
  274. |
  275. 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
  276. 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
  277. 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
  278. | ^ E701
  279. 231 |
  280. 232 | return cls
  281. |
  282.  
  283. boltons/funcutils.py:390:9: E731 Do not assign a `lambda` expression, use a `def`
  284. |
  285. 389 | if opt_key is None:
  286. 390 | opt_key = lambda v: v is None
  287. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  288. 391 | assert callable(opt_key)
  289. |
  290. = help: Rewrite `opt_key` as a `def`
  291.  
  292. boltons/funcutils.py:441:9: E731 Do not assign a `lambda` expression, use a `def`
  293. |
  294. 440 | if opt_key is None:
  295. 441 | opt_key = lambda v: v is None
  296. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  297. 442 | assert callable(opt_key)
  298. |
  299. = help: Rewrite `opt_key` as a `def`
  300.  
  301.  
  302. _________________________________ test session _________________________________
  303. File would be reformatted
  304. ----------------------------- Captured stdout call -----------------------------
  305. Would reformat: boltons/funcutils.py
  306. _________________________________ test session _________________________________
  307. File would be reformatted
  308. ----------------------------- Captured stdout call -----------------------------
  309. Would reformat: boltons/gcutils.py
  310. _________________________________ test session _________________________________
  311. File would be reformatted
  312. ----------------------------- Captured stdout call -----------------------------
  313. Would reformat: boltons/ioutils.py
  314. _____________________________ boltons/iterutils.py _____________________________
  315. 346: error: All conditional function variants must have identical signatures [misc]
  316. 346: note: Original:
  317. 346: note: def postprocess(chk: Any) -> Any
  318. 346: note: Redefinition:
  319. 346: note: def postprocess(chk: Any, _sep: Any = ...) -> Any
  320. _________________________________ test session _________________________________
  321. boltons/iterutils.py:45:8: F401 [*] `codecs` imported but unused
  322. |
  323. 43 | import math
  324. 44 | import time
  325. 45 | import codecs
  326. | ^^^^^^ F401
  327. 46 | import random
  328. 47 | import itertools
  329. |
  330. = help: Remove unused import: `codecs`
  331.  
  332. boltons/iterutils.py:1317:33: F841 [*] Local variable `exc` is assigned to but never used
  333. |
  334. 1315 | except (KeyError, IndexError) as exc:
  335. 1316 | raise PathAccessError(exc, seg, path)
  336. 1317 | except TypeError as exc:
  337. | ^^^ F841
  338. 1318 | # either string index in a list, or a parent that
  339. 1319 | # doesn't support indexing
  340. |
  341. = help: Remove assignment to unused variable `exc`
  342.  
  343.  
  344. _________________________________ test session _________________________________
  345. File would be reformatted
  346. ----------------------------- Captured stdout call -----------------------------
  347. Would reformat: boltons/iterutils.py
  348. _________________________________ test session _________________________________
  349. File would be reformatted
  350. ----------------------------- Captured stdout call -----------------------------
  351. Would reformat: boltons/jsonutils.py
  352. _________________________________ test session _________________________________
  353. boltons/listutils.py:124:19: F841 Local variable `len_self` is assigned to but never used
  354. |
  355. 122 | if list_idx < 0:
  356. 123 | list_idx += len(self.lists)
  357. 124 | cur_list, len_self = self.lists[list_idx], len(self)
  358. | ^^^^^^^^ F841
  359. 125 | size_limit = self._cur_size_limit
  360. 126 | if len(cur_list) > size_limit:
  361. |
  362. = help: Remove assignment to unused variable `len_self`
  363.  
  364. boltons/listutils.py:227:52: E741 Ambiguous variable name: `l`
  365. |
  366. 226 | def __reversed__(self):
  367. 227 | return chain.from_iterable(reversed(l) for l in reversed(self.lists))
  368. | ^ E741
  369. 228 |
  370. 229 | def __len__(self):
  371. |
  372.  
  373. boltons/listutils.py:230:32: E741 Ambiguous variable name: `l`
  374. |
  375. 229 | def __len__(self):
  376. 230 | return sum([len(l) for l in self.lists])
  377. | ^ E741
  378. 231 |
  379. 232 | def __contains__(self, item):
  380. |
  381.  
  382. boltons/listutils.py:267:13: F841 Local variable `start` is assigned to but never used
  383. |
  384. 265 | def __setitem__(self, index, item):
  385. 266 | try:
  386. 267 | start, stop, step = index.start, index.stop, index.step
  387. | ^^^^^ F841
  388. 268 | except AttributeError:
  389. 269 | index = operator.index(index)
  390. |
  391. = help: Remove assignment to unused variable `start`
  392.  
  393. boltons/listutils.py:267:20: F841 Local variable `stop` is assigned to but never used
  394. |
  395. 265 | def __setitem__(self, index, item):
  396. 266 | try:
  397. 267 | start, stop, step = index.start, index.stop, index.step
  398. | ^^^^ F841
  399. 268 | except AttributeError:
  400. 269 | index = operator.index(index)
  401. |
  402. = help: Remove assignment to unused variable `stop`
  403.  
  404. boltons/listutils.py:267:26: F841 Local variable `step` is assigned to but never used
  405. |
  406. 265 | def __setitem__(self, index, item):
  407. 266 | try:
  408. 267 | start, stop, step = index.start, index.stop, index.step
  409. | ^^^^ F841
  410. 268 | except AttributeError:
  411. 269 | index = operator.index(index)
  412. |
  413. = help: Remove assignment to unused variable `step`
  414.  
  415.  
  416. _________________________________ test session _________________________________
  417. File would be reformatted
  418. ----------------------------- Captured stdout call -----------------------------
  419. Would reformat: boltons/listutils.py
  420. _________________________________ test session _________________________________
  421. File would be reformatted
  422. ----------------------------- Captured stdout call -----------------------------
  423. Would reformat: boltons/mathutils.py
  424. _________________________________ test session _________________________________
  425. File would be reformatted
  426. ----------------------------- Captured stdout call -----------------------------
  427. Would reformat: boltons/mboxutils.py
  428. _________________________________ test session _________________________________
  429. File would be reformatted
  430. ----------------------------- Captured stdout call -----------------------------
  431. Would reformat: boltons/namedutils.py
  432. _________________________________ test session _________________________________
  433. File would be reformatted
  434. ----------------------------- Captured stdout call -----------------------------
  435. Would reformat: boltons/pathutils.py
  436. ____________________________ boltons/queueutils.py _____________________________
  437. 80: error: Cannot assign multiple types to name "BList" without an explicit "Type[...]" annotation [misc]
  438. 80: error: Incompatible types in assignment (expression has type "type[list[Any]]", variable has type "type[BarrelList]") [assignment]
  439. _________________________________ test session _________________________________
  440. File would be reformatted
  441. ----------------------------- Captured stdout call -----------------------------
  442. Would reformat: boltons/queueutils.py
  443. _________________________________ test session _________________________________
  444. boltons/setutils.py:616:24: E713 [*] Test for membership should be `not in`
  445. |
  446. 614 | def __contains__(self, item):
  447. 615 | if self._included is None:
  448. 616 | return not item in self._excluded
  449. | ^^^^^^^^^^^^^^^^^^^^^^ E713
  450. 617 | return item in self._included
  451. |
  452. = help: Convert to `not in`
  453.  
  454.  
  455. _________________________________ test session _________________________________
  456. File would be reformatted
  457. ----------------------------- Captured stdout call -----------------------------
  458. Would reformat: boltons/setutils.py
  459. ____________________________ boltons/socketutils.py ____________________________
  460. 73: error: Name "RLock" already defined (possibly by an import) [no-redef]
  461. _________________________________ test session _________________________________
  462. File would be reformatted
  463. ----------------------------- Captured stdout call -----------------------------
  464. Would reformat: boltons/socketutils.py
  465. _________________________________ test session _________________________________
  466. boltons/statsutils.py:319:9: E731 Do not assign a `lambda` expression, use a `def`
  467. |
  468. 317 | """
  469. 318 | sorted_data = self._get_sorted_data()
  470. 319 | gq = lambda q: self._get_quantile(sorted_data, q)
  471. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  472. 320 | return (gq(0.25) + (2 * gq(0.5)) + gq(0.75)) / 4.0
  473. 321 | trimean = _StatsProperty('trimean', _calc_trimean)
  474. |
  475. = help: Rewrite `gq` as a `def`
  476.  
  477. boltons/statsutils.py:785:9: E731 Do not assign a `lambda` expression, use a `def`
  478. |
  479. 783 | lines = []
  480. 784 | if not format_bin:
  481. 785 | format_bin = lambda v: v
  482. | ^^^^^^^^^^^^^^^^^^^^^^^^ E731
  483. 786 | if not width:
  484. 787 | try:
  485. |
  486. = help: Rewrite `format_bin` as a `def`
  487.  
  488. boltons/statsutils.py:798:34: E741 Ambiguous variable name: `l`
  489. |
  490. 797 | labels = ['%s' % format_bin(b) for b in bins]
  491. 798 | label_cols = max([len(l) for l in labels])
  492. | ^ E741
  493. 799 | tmp_line = '{}: {} #'.format('x' * label_cols, count_max)
  494. |
  495.  
  496.  
  497. _________________________________ test session _________________________________
  498. File would be reformatted
  499. ----------------------------- Captured stdout call -----------------------------
  500. Would reformat: boltons/statsutils.py
  501. _________________________________ test session _________________________________
  502. boltons/strutils.py:38:8: F401 [*] `builtins` imported but unused
  503. |
  504. 38 | import builtins
  505. | ^^^^^^^^ F401
  506. 39 | import re
  507. 40 | import sys
  508. |
  509. = help: Remove unused import: `builtins`
  510.  
  511. boltons/strutils.py:285:52: F601 Dictionary key literal `'formula'` repeated
  512. |
  513. 283 | 'embargo': 'embargoes', 'emphasis': 'emphases', 'erratum': 'errata',
  514. 284 | 'fireman': 'firemen', 'fish': 'fish', 'focus': 'foci',
  515. 285 | 'foot': 'feet', 'formula': 'formulae', 'formula': 'formulas',
  516. | ^^^^^^^^^ F601
  517. 286 | 'fungus': 'fungi', 'genus': 'genera', 'goose': 'geese',
  518. 287 | 'half': 'halves', 'hero': 'heroes', 'hippopotamus': 'hippopotami',
  519. |
  520. = help: Remove repeated key literal `'formula'`
  521.  
  522. boltons/strutils.py:402:24: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
  523. |
  524. 401 | # Transform back the result to the same bytearray type provided by the user.
  525. 402 | if target_type and target_type != type(cleaned):
  526. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E721
  527. 403 | cleaned = target_type(cleaned, 'utf-8')
  528. |
  529.  
  530.  
  531. _________________________________ test session _________________________________
  532. File would be reformatted
  533. ----------------------------- Captured stdout call -----------------------------
  534. Would reformat: boltons/strutils.py
  535. _________________________________ test session _________________________________
  536. File would be reformatted
  537. ----------------------------- Captured stdout call -----------------------------
  538. Would reformat: boltons/tableutils.py
  539. _________________________________ test session _________________________________
  540. boltons/tbutils.py:525:29: E741 Ambiguous variable name: `l`
  541. |
  542. 523 | start_line = self.lineno - len(self.pre_lines)
  543. 524 | pre_lines = [{'lineno': start_line + i, 'line': str(l)}
  544. 525 | for i, l in enumerate(self.pre_lines)]
  545. | ^ E741
  546. 526 | # trim off leading empty lines
  547. 527 | for i, item in enumerate(pre_lines):
  548. |
  549.  
  550. boltons/tbutils.py:536:30: E741 Ambiguous variable name: `l`
  551. |
  552. 534 | # now post_lines
  553. 535 | post_lines = [{'lineno': self.lineno + i, 'line': str(l)}
  554. 536 | for i, l in enumerate(self.post_lines)]
  555. | ^ E741
  556. 537 | _last = 0
  557. 538 | for i, item in enumerate(post_lines):
  558. |
  559.  
  560.  
  561. _________________________________ test session _________________________________
  562. File would be reformatted
  563. ----------------------------- Captured stdout call -----------------------------
  564. Would reformat: boltons/tbutils.py
  565. _____________________________ boltons/timeutils.py _____________________________
  566. 131: error: List comprehension has incompatible type List[tuple[timedelta, timedelta, str]]; expected List[tuple[int, timedelta, str]] [misc]
  567. _________________________________ test session _________________________________
  568. boltons/timeutils.py:370:9: E731 Do not assign a `lambda` expression, use a `def`
  569. |
  570. 369 | if stop is None:
  571. 370 | finished = lambda now, stop: False
  572. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  573. 371 | elif start <= stop:
  574. 372 | finished = operator.gt if inclusive else operator.ge
  575. |
  576. = help: Rewrite `finished` as a `def`
  577.  
  578.  
  579. _________________________________ test session _________________________________
  580. File would be reformatted
  581. ----------------------------- Captured stdout call -----------------------------
  582. Would reformat: boltons/timeutils.py
  583. _________________________________ test session _________________________________
  584. File would be reformatted
  585. ----------------------------- Captured stdout call -----------------------------
  586. Would reformat: boltons/typeutils.py
  587. _____________________________ boltons/urlutils.py ______________________________
  588. 826: error: Module has no attribute "windll" [attr-defined]
  589. 827: error: Module has no attribute "windll" [attr-defined]
  590. 829: error: All conditional function variants must have identical signatures [misc]
  591. 829: note: Original:
  592. 829: note: def inet_pton(int, str, /) -> bytes
  593. 829: note: Redefinition:
  594. 829: note: def inet_pton(address_family: Any, ip_string: Any) -> Any
  595. 1276: error: Signatures of "__ior__" and "__or__" are incompatible [misc]
  596. 1553: error: Incompatible import of "OrderedMultiDict" (imported name has type "type[boltons.dictutils.OrderedMultiDict]", local name has type "type[boltons.urlutils.OrderedMultiDict]") [assignment]
  597. _________________________________ test session _________________________________
  598. boltons/urlutils.py:979:1: E402 Module level import not at top of file
  599. |
  600. 977 | """
  601. 978 |
  602. 979 | from collections.abc import KeysView, ValuesView, ItemsView
  603. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E402
  604. 980 | from itertools import zip_longest
  605. |
  606.  
  607. boltons/urlutils.py:980:1: E402 Module level import not at top of file
  608. |
  609. 979 | from collections.abc import KeysView, ValuesView, ItemsView
  610. 980 | from itertools import zip_longest
  611. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E402
  612. 981 |
  613. 982 | try:
  614. |
  615.  
  616.  
  617. _________________________________ test session _________________________________
  618. File would be reformatted
  619. ----------------------------- Captured stdout call -----------------------------
  620. Would reformat: boltons/urlutils.py
  621. _________________________________ docs/conf.py _________________________________
  622. 126: error: Skipping analyzing "sphinx_rtd_theme": module is installed, but missing library stubs or py.typed marker [import-untyped]
  623. 126: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
  624. 231: error: Need type annotation for "latex_elements" (hint: "latex_elements: dict[<type>, <type>] = ...") [var-annotated]
  625. _________________________________ test session _________________________________
  626. docs/conf.py:39:5: E731 Do not assign a `lambda` expression, use a `def`
  627. |
  628. 37 | tot_type_count = 0
  629. 38 | tot_func_count = 0
  630. 39 | ignore = lambda attr_name: attr_name.startswith('_')
  631. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  632. 40 | for _, mod_name, _ in pkgutil.iter_modules([PACKAGE_PATH]):
  633. 41 | if not mod_name.endswith('utils'):
  634. |
  635. = help: Rewrite `ignore` as a `def`
  636.  
  637.  
  638. _________________________________ test session _________________________________
  639. File would be reformatted
  640. ----------------------------- Captured stdout call -----------------------------
  641. Would reformat: docs/conf.py
  642. ______________________________ misc/bench_omd.py _______________________________
  643. 6: error: Cannot find implementation or library stub for module named "lithoxyl" [import-not-found]
  644. 9: error: Cannot find implementation or library stub for module named "dictutils" [import-not-found]
  645. 19: error: No overload variant of "range" matches argument type "float" [call-overload]
  646. 19: note: Possible overload variants:
  647. 19: note: def __new__(cls, SupportsIndex, /) -> range
  648. 19: note: def __new__(cls, SupportsIndex, SupportsIndex, SupportsIndex = ..., /) -> range
  649. 32: error: Incompatible types in assignment (expression has type "tuple[Any, Any, Any, type[MultiDict[Any, Any]]]", variable has type "tuple[Any, Any]") [assignment]
  650. _________________________________ test session _________________________________
  651. misc/bench_omd.py:5:8: F401 [*] `time` imported but unused
  652. |
  653. 3 | sys.path.append('/home/mahmoud/projects/lithoxyl/')
  654. 4 |
  655. 5 | import time
  656. | ^^^^ F401
  657. 6 | import lithoxyl
  658. 7 | from lithoxyl import sinks, logger
  659. |
  660. = help: Remove unused import: `time`
  661.  
  662. misc/bench_omd.py:7:22: F401 [*] `lithoxyl.sinks` imported but unused
  663. |
  664. 5 | import time
  665. 6 | import lithoxyl
  666. 7 | from lithoxyl import sinks, logger
  667. | ^^^^^ F401
  668. 8 |
  669. 9 | from dictutils import OMD, FastIterOrderedMultiDict
  670. |
  671. = help: Remove unused import
  672.  
  673. misc/bench_omd.py:7:29: F401 [*] `lithoxyl.logger` imported but unused
  674. |
  675. 5 | import time
  676. 6 | import lithoxyl
  677. 7 | from lithoxyl import sinks, logger
  678. | ^^^^^^ F401
  679. 8 |
  680. 9 | from dictutils import OMD, FastIterOrderedMultiDict
  681. |
  682. = help: Remove unused import
  683.  
  684.  
  685. _________________________________ test session _________________________________
  686. File would be reformatted
  687. ----------------------------- Captured stdout call -----------------------------
  688. Would reformat: misc/bench_omd.py
  689. _________________________________ test session _________________________________
  690. File would be reformatted
  691. ----------------------------- Captured stdout call -----------------------------
  692. Would reformat: misc/linkify_changelog.py
  693. ____________________________ misc/table_html_app.py ____________________________
  694. 4: error: Cannot find implementation or library stub for module named "clastic" [import-not-found]
  695. 6: error: Cannot find implementation or library stub for module named "clastic.render" [import-not-found]
  696. 7: error: Cannot find implementation or library stub for module named "clastic.middleware" [import-not-found]
  697. 9: error: Cannot find implementation or library stub for module named "clastic.sinter" [import-not-found]
  698. 22: error: Cannot find implementation or library stub for module named "urllib2" [import-not-found]
  699. _________________________________ test session _________________________________
  700. misc/table_html_app.py:44:9: E722 Do not use bare `except`
  701. |
  702. 42 | try:
  703. 43 | func_name = route.endpoint.func_name
  704. 44 | except:
  705. | ^^^^^^ E722
  706. 45 | func_name = repr(route.endpoint)
  707. 46 | args, _, _, _ = getargspec(route.endpoint)
  708. |
  709.  
  710. misc/table_html_app.py:156:5: F841 Local variable `atr` is assigned to but never used
  711. |
  712. 154 | rsc = {'data': _DATA}
  713. 155 | gpm = GetParamMiddleware('url')
  714. 156 | atr = AutoTableRenderer(max_depth=5)
  715. | ^^^ F841
  716. 157 | render_basic = BasicRender()
  717. 158 | app = Application([('/', ident_ep, render_basic),
  718. |
  719. = help: Remove assignment to unused variable `atr`
  720.  
  721.  
  722. _________________________________ test session _________________________________
  723. File would be reformatted
  724. ----------------------------- Captured stdout call -----------------------------
  725. Would reformat: misc/table_html_app.py
  726. _________________________________ test session _________________________________
  727. File would be reformatted
  728. ----------------------------- Captured stdout call -----------------------------
  729. Would reformat: tests/conftest.py
  730. _________________________________ test session _________________________________
  731. tests/test_cacheutils.py:2:8: F401 [*] `sys` imported but unused
  732. |
  733. 1 | import string
  734. 2 | import sys
  735. | ^^^ F401
  736. 3 | from abc import abstractmethod, ABCMeta
  737. |
  738. = help: Remove unused import: `sys`
  739.  
  740. tests/test_cacheutils.py:279:5: E731 Do not assign a `lambda` expression, use a `def`
  741. |
  742. 277 | def test_callable_cached_dec():
  743. 278 | lru = LRU()
  744. 279 | get_lru = lambda: lru
  745. | ^^^^^^^^^^^^^^^^^^^^^ E731
  746. 280 |
  747. 281 | inner_func = CountingCallable()
  748. |
  749. = help: Rewrite `get_lru` as a `def`
  750.  
  751. tests/test_cacheutils.py:426:12: F811 [*] Redefinition of unused `sys` from line 2
  752. |
  753. 425 | def test_min_id_map():
  754. 426 | import sys
  755. | ^^^ F811
  756. 427 | if '__pypy__' in sys.builtin_module_names:
  757. 428 | return # TODO: pypy still needs some work
  758. |
  759. = help: Remove definition: `sys`
  760.  
  761.  
  762. _________________________________ test session _________________________________
  763. File would be reformatted
  764. ----------------------------- Captured stdout call -----------------------------
  765. Would reformat: tests/test_cacheutils.py
  766. _________________________________ test session _________________________________
  767. File would be reformatted
  768. ----------------------------- Captured stdout call -----------------------------
  769. Would reformat: tests/test_debugutils_trace.py
  770. _________________________________ test session _________________________________
  771. tests/test_dictutils.py:311:1: E402 Module level import not at top of file
  772. |
  773. 309 | ## END OMD TESTS
  774. 310 |
  775. 311 | import string
  776. | ^^^^^^^^^^^^^ E402
  777. 312 |
  778. 313 | def test_subdict():
  779. |
  780.  
  781. tests/test_dictutils.py:540:20: E712 Avoid equality comparisons to `False`; use `if not attrname:` for false checks
  782. |
  783. 539 | if getattr(FrozenDict, attrname) == getattr(dict, attrname, None) and attrname not in through_methods:
  784. 540 | assert attrname == False
  785. | ^^^^^^^^^^^^^^^^^ E712
  786. 541 | ret.append(attrname)
  787. |
  788. = help: Replace with `not attrname`
  789.  
  790.  
  791. _________________________________ test session _________________________________
  792. File would be reformatted
  793. ----------------------------- Captured stdout call -----------------------------
  794. Would reformat: tests/test_dictutils.py
  795. _________________________________ test session _________________________________
  796. File would be reformatted
  797. ----------------------------- Captured stdout call -----------------------------
  798. Would reformat: tests/test_ecoutils.py
  799. _________________________________ test session _________________________________
  800. File would be reformatted
  801. ----------------------------- Captured stdout call -----------------------------
  802. Would reformat: tests/test_fileutils.py
  803. __________________________ tests/test_formatutils.py ___________________________
  804. 11: error: First argument to namedtuple() should be "PFAT", not "PositionalFormatArgTest" [name-match]
  805. _________________________________ test session _________________________________
  806. tests/test_formatutils.py:35:5: F841 Local variable `results` is assigned to but never used
  807. |
  808. 34 | def test_get_fstr_args():
  809. 35 | results = []
  810. | ^^^^^^^ F841
  811. 36 | for t in _TEST_TMPLS:
  812. 37 | inferred_t = infer_positional_format_args(t)
  813. |
  814. = help: Remove assignment to unused variable `results`
  815.  
  816.  
  817. _________________________________ test session _________________________________
  818. File would be reformatted
  819. ----------------------------- Captured stdout call -----------------------------
  820. Would reformat: tests/test_formatutils.py
  821. _________________________________ test session _________________________________
  822. File would be reformatted
  823. ----------------------------- Captured stdout call -----------------------------
  824. Would reformat: tests/test_funcutils.py
  825. _________________________________ test session _________________________________
  826. File would be reformatted
  827. ----------------------------- Captured stdout call -----------------------------
  828. Would reformat: tests/test_funcutils_fb.py
  829. ________________________ tests/test_funcutils_fb_py3.py ________________________
  830. 34: error: Incompatible default for argument "c" (default has type "tuple[()]", argument has type "defaultdict[Any, Any]") [assignment]
  831. 35: error: Incompatible return value type (got "tuple[int, float, defaultdict[Any, Any]]", expected "defaultdict[Any, Any]") [return-value]
  832. _________________________________ test session _________________________________
  833. tests/test_funcutils_fb_py3.py:62:5: E731 Do not assign a `lambda` expression, use a `def`
  834. |
  835. 60 | def test_copy_function_kw_defaults_py3():
  836. 61 | # test that the copy works with keyword-only defaults
  837. 62 | f = lambda x, *, y=2: x * y
  838. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  839. 63 | f_copy = copy_function(f)
  840. 64 | assert f(21) == f_copy(21) == 42
  841. |
  842. = help: Rewrite `f` as a `def`
  843.  
  844.  
  845. _________________________________ test session _________________________________
  846. File would be reformatted
  847. ----------------------------- Captured stdout call -----------------------------
  848. Would reformat: tests/test_funcutils_fb_py3.py
  849. _________________________________ test session _________________________________
  850. tests/test_gcutils.py:14:9: F841 Local variable `tt` is assigned to but never used
  851. |
  852. 12 | pass
  853. 13 |
  854. 14 | tt = TestType()
  855. | ^^ F841
  856. 15 |
  857. 16 | assert len(get_all(TestType)) == 1
  858. |
  859. = help: Remove assignment to unused variable `tt`
  860.  
  861. tests/test_gcutils.py:29:9: F841 Local variable `x` is assigned to but never used
  862. |
  863. 28 | start = time.time()
  864. 29 | x = [{} for x in range(COUNT)]
  865. | ^ F841
  866. 30 | with_gc_time = time.time() - start
  867. |
  868. = help: Remove assignment to unused variable `x`
  869.  
  870. tests/test_gcutils.py:32:9: F841 Local variable `time_diff` is assigned to but never used
  871. |
  872. 30 | with_gc_time = time.time() - start
  873. 31 |
  874. 32 | time_diff = no_gc_time < with_gc_time
  875. | ^^^^^^^^^ F841
  876. |
  877. = help: Remove assignment to unused variable `time_diff`
  878.  
  879.  
  880. _________________________________ test session _________________________________
  881. File would be reformatted
  882. ----------------------------- Captured stdout call -----------------------------
  883. Would reformat: tests/test_gcutils.py
  884. _________________________________ test session _________________________________
  885. File would be reformatted
  886. ----------------------------- Captured stdout call -----------------------------
  887. Would reformat: tests/test_ioutils.py
  888. _________________________________ test session _________________________________
  889. tests/test_iterutils.py:20:1: E731 Do not assign a `lambda` expression, use a `def`
  890. |
  891. 18 | CUR_PATH = os.path.abspath(__file__)
  892. 19 |
  893. 20 | isbool = lambda x: isinstance(x, bool)
  894. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  895. 21 | isint = lambda x: isinstance(x, int)
  896. 22 | odd = lambda x: isint(x) and x % 2 != 0
  897. |
  898. = help: Rewrite `isbool` as a `def`
  899.  
  900. tests/test_iterutils.py:21:1: E731 Do not assign a `lambda` expression, use a `def`
  901. |
  902. 20 | isbool = lambda x: isinstance(x, bool)
  903. 21 | isint = lambda x: isinstance(x, int)
  904. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  905. 22 | odd = lambda x: isint(x) and x % 2 != 0
  906. 23 | even = lambda x: isint(x) and x % 2 == 0
  907. |
  908. = help: Rewrite `isint` as a `def`
  909.  
  910. tests/test_iterutils.py:22:1: E731 Do not assign a `lambda` expression, use a `def`
  911. |
  912. 20 | isbool = lambda x: isinstance(x, bool)
  913. 21 | isint = lambda x: isinstance(x, int)
  914. 22 | odd = lambda x: isint(x) and x % 2 != 0
  915. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  916. 23 | even = lambda x: isint(x) and x % 2 == 0
  917. 24 | is_meaning_of_life = lambda x: x == 42
  918. |
  919. = help: Rewrite `odd` as a `def`
  920.  
  921. tests/test_iterutils.py:23:1: E731 Do not assign a `lambda` expression, use a `def`
  922. |
  923. 21 | isint = lambda x: isinstance(x, int)
  924. 22 | odd = lambda x: isint(x) and x % 2 != 0
  925. 23 | even = lambda x: isint(x) and x % 2 == 0
  926. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  927. 24 | is_meaning_of_life = lambda x: x == 42
  928. |
  929. = help: Rewrite `even` as a `def`
  930.  
  931. tests/test_iterutils.py:24:1: E731 Do not assign a `lambda` expression, use a `def`
  932. |
  933. 22 | odd = lambda x: isint(x) and x % 2 != 0
  934. 23 | even = lambda x: isint(x) and x % 2 == 0
  935. 24 | is_meaning_of_life = lambda x: x == 42
  936. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  937. |
  938. = help: Rewrite `is_meaning_of_life` as a `def`
  939.  
  940. tests/test_iterutils.py:33:9: E741 Ambiguous variable name: `l`
  941. |
  942. 31 | """
  943. 32 | s = set()
  944. 33 | l = []
  945. | ^ E741
  946. 34 | assert first(s) is None
  947. 35 | assert first(l) is None
  948. |
  949.  
  950. tests/test_iterutils.py:42:9: E741 Ambiguous variable name: `l`
  951. |
  952. 40 | """
  953. 41 | s = set()
  954. 42 | l = []
  955. | ^ E741
  956. 43 | assert first(s, default=42) == 42
  957. 44 | assert first(l, default=3.14) == 3.14
  958. |
  959.  
  960. tests/test_iterutils.py:46:9: E741 Ambiguous variable name: `l`
  961. |
  962. 44 | assert first(l, default=3.14) == 3.14
  963. 45 |
  964. 46 | l = [0, False, []]
  965. | ^ E741
  966. 47 | assert first(l, default=3.14) == 3.14
  967. |
  968.  
  969. tests/test_iterutils.py:53:9: E741 Ambiguous variable name: `l`
  970. |
  971. 51 | Success cases with and without a key function.
  972. 52 | """
  973. 53 | l = [(), 0, False, 3, []]
  974. | ^ E741
  975. 54 |
  976. 55 | assert first(l, default=42) == 3
  977. |
  978.  
  979. tests/test_iterutils.py:200:9: E731 Do not assign a `lambda` expression, use a `def`
  980. |
  981. 198 | def test_reraise_visit(self):
  982. 199 | root = {'A': 'b', 1: 2}
  983. 200 | key_to_lower = lambda p, k, v: (k.lower(), v)
  984. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  985. 201 | with pytest.raises(AttributeError):
  986. 202 | remap(root, key_to_lower)
  987. |
  988. = help: Rewrite `key_to_lower` as a `def`
  989.  
  990. tests/test_iterutils.py:211:9: E731 Do not assign a `lambda` expression, use a `def`
  991. |
  992. 209 | orig = {'a': 1, 'b': None, 'c': [3, None, 4, None]}
  993. 210 | ref = {'a': 1, 'c': [3, 4]}
  994. 211 | drop_none = lambda p, k, v: v is not None
  995. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  996. 212 | remapped = remap(orig, visit=drop_none)
  997. 213 | assert remapped == ref
  998. |
  999. = help: Rewrite `drop_none` as a `def`
  1000.  
  1001. tests/test_iterutils.py:272:13: E722 Do not use bare `except`
  1002. |
  1003. 270 | try:
  1004. 271 | all_interests.update(value['interests'])
  1005. 272 | except:
  1006. | ^^^^^^ E722
  1007. 273 | pass
  1008. 274 | return default_enter(path, key, value)
  1009. |
  1010.  
  1011. tests/test_iterutils.py:296:13: E722 Do not use bare `except`
  1012. |
  1013. 294 | try:
  1014. 295 | ret['review_length'] = len(ret['review'])
  1015. 296 | except:
  1016. | ^^^^^^ E722
  1017. 297 | pass
  1018. 298 | return ret
  1019. |
  1020.  
  1021. tests/test_iterutils.py:328:13: E722 Do not use bare `except`
  1022. |
  1023. 326 | new_parent.update(base_obj)
  1024. 327 | base_obj['id'] += 1
  1025. 328 | except:
  1026. | ^^^^^^ E722
  1027. 329 | pass
  1028. 330 | return new_parent, new_items
  1029. |
  1030.  
  1031.  
  1032. _________________________________ test session _________________________________
  1033. File would be reformatted
  1034. ----------------------------- Captured stdout call -----------------------------
  1035. Would reformat: tests/test_iterutils.py
  1036. _________________________________ test session _________________________________
  1037. File would be reformatted
  1038. ----------------------------- Captured stdout call -----------------------------
  1039. Would reformat: tests/test_jsonutils.py
  1040. _________________________________ test session _________________________________
  1041. tests/test_listutils.py:1:8: F401 [*] `sys` imported but unused
  1042. |
  1043. 1 | import sys
  1044. | ^^^ F401
  1045. 2 |
  1046. 3 | from boltons.listutils import SplayList, BarrelList
  1047. |
  1048. = help: Remove unused import: `sys`
  1049.  
  1050. tests/test_listutils.py:121:25: F841 [*] Local variable `e` is assigned to but never used
  1051. |
  1052. 119 | try:
  1053. 120 | tune() # main()
  1054. 121 | except Exception as e:
  1055. | ^ F841
  1056. 122 | import pdb;pdb.post_mortem()
  1057. 123 | raise
  1058. |
  1059. = help: Remove assignment to unused variable `e`
  1060.  
  1061. tests/test_listutils.py:122:19: E702 Multiple statements on one line (semicolon)
  1062. |
  1063. 120 | tune() # main()
  1064. 121 | except Exception as e:
  1065. 122 | import pdb;pdb.post_mortem()
  1066. | ^ E702
  1067. 123 | raise
  1068. |
  1069.  
  1070.  
  1071. _________________________________ test session _________________________________
  1072. File would be reformatted
  1073. ----------------------------- Captured stdout call -----------------------------
  1074. Would reformat: tests/test_listutils.py
  1075. _________________________________ test session _________________________________
  1076. File would be reformatted
  1077. ----------------------------- Captured stdout call -----------------------------
  1078. Would reformat: tests/test_mathutils.py
  1079. _________________________________ test session _________________________________
  1080. File would be reformatted
  1081. ----------------------------- Captured stdout call -----------------------------
  1082. Would reformat: tests/test_namedutils.py
  1083. _________________________________ test session _________________________________
  1084. File would be reformatted
  1085. ----------------------------- Captured stdout call -----------------------------
  1086. Would reformat: tests/test_queueutils.py
  1087. _________________________________ test session _________________________________
  1088. tests/test_setutils.py:137:37: E701 Multiple statements on one line (colon)
  1089. |
  1090. 135 | cab.add(complement(frozenset())) # frozen complement can be a member of complement set
  1091. 136 | assert len({complement(frozenset()): 1, complement(frozenset()): 2}) == 1 # hash works
  1092. 137 | with raises(NotImplementedError): cab.pop()
  1093. | ^ E701
  1094. 138 | with raises(NotImplementedError): len(cab)
  1095. 139 | with raises(NotImplementedError): iter(cab)
  1096. |
  1097.  
  1098. tests/test_setutils.py:138:37: E701 Multiple statements on one line (colon)
  1099. |
  1100. 136 | assert len({complement(frozenset()): 1, complement(frozenset()): 2}) == 1 # hash works
  1101. 137 | with raises(NotImplementedError): cab.pop()
  1102. 138 | with raises(NotImplementedError): len(cab)
  1103. | ^ E701
  1104. 139 | with raises(NotImplementedError): iter(cab)
  1105. 140 | ~cab
  1106. |
  1107.  
  1108. tests/test_setutils.py:139:37: E701 Multiple statements on one line (colon)
  1109. |
  1110. 137 | with raises(NotImplementedError): cab.pop()
  1111. 138 | with raises(NotImplementedError): len(cab)
  1112. 139 | with raises(NotImplementedError): iter(cab)
  1113. | ^ E701
  1114. 140 | ~cab
  1115. 141 | cab.complement()
  1116. |
  1117.  
  1118. tests/test_setutils.py:153:15: E702 Multiple statements on one line (semicolon)
  1119. |
  1120. 151 | ops = OpOverloader()
  1121. 152 | def opsmash(a, b):
  1122. 153 | a &= b; a |= b; a -= b; a ^= b
  1123. | ^ E702
  1124. 154 | a > b; a >= b; a < b; a <= b
  1125. 155 | return (((a & b) | b) - b) ^ b
  1126. |
  1127.  
  1128. tests/test_setutils.py:153:23: E702 Multiple statements on one line (semicolon)
  1129. |
  1130. 151 | ops = OpOverloader()
  1131. 152 | def opsmash(a, b):
  1132. 153 | a &= b; a |= b; a -= b; a ^= b
  1133. | ^ E702
  1134. 154 | a > b; a >= b; a < b; a <= b
  1135. 155 | return (((a & b) | b) - b) ^ b
  1136. |
  1137.  
  1138. tests/test_setutils.py:153:31: E702 Multiple statements on one line (semicolon)
  1139. |
  1140. 151 | ops = OpOverloader()
  1141. 152 | def opsmash(a, b):
  1142. 153 | a &= b; a |= b; a -= b; a ^= b
  1143. | ^ E702
  1144. 154 | a > b; a >= b; a < b; a <= b
  1145. 155 | return (((a & b) | b) - b) ^ b
  1146. |
  1147.  
  1148. tests/test_setutils.py:154:14: E702 Multiple statements on one line (semicolon)
  1149. |
  1150. 152 | def opsmash(a, b):
  1151. 153 | a &= b; a |= b; a -= b; a ^= b
  1152. 154 | a > b; a >= b; a < b; a <= b
  1153. | ^ E702
  1154. 155 | return (((a & b) | b) - b) ^ b
  1155. |
  1156.  
  1157. tests/test_setutils.py:154:22: E702 Multiple statements on one line (semicolon)
  1158. |
  1159. 152 | def opsmash(a, b):
  1160. 153 | a &= b; a |= b; a -= b; a ^= b
  1161. 154 | a > b; a >= b; a < b; a <= b
  1162. | ^ E702
  1163. 155 | return (((a & b) | b) - b) ^ b
  1164. |
  1165.  
  1166. tests/test_setutils.py:154:29: E702 Multiple statements on one line (semicolon)
  1167. |
  1168. 152 | def opsmash(a, b):
  1169. 153 | a &= b; a |= b; a -= b; a ^= b
  1170. 154 | a > b; a >= b; a < b; a <= b
  1171. | ^ E702
  1172. 155 | return (((a & b) | b) - b) ^ b
  1173. |
  1174.  
  1175. tests/test_setutils.py:157:27: E701 Multiple statements on one line (colon)
  1176. |
  1177. 155 | return (((a & b) | b) - b) ^ b
  1178. 156 |
  1179. 157 | with raises(TypeError): opsmash(cab, object())
  1180. | ^ E701
  1181. 158 | assert opsmash(ops, cab) == ops
  1182. 159 | assert opsmash(cab, ops) == ops
  1183. |
  1184.  
  1185.  
  1186. _________________________________ test session _________________________________
  1187. File would be reformatted
  1188. ----------------------------- Captured stdout call -----------------------------
  1189. Would reformat: tests/test_setutils.py
  1190. _________________________________ test session _________________________________
  1191. tests/test_socketutils.py:282:5: E731 Do not assign a `lambda` expression, use a `def`
  1192. |
  1193. 280 | server_socket.listen(100)
  1194. 281 | ip, port = server_socket.getsockname()
  1195. 282 | start_server = lambda: netstring_server(server_socket)
  1196. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  1197. 283 | threading.Thread(target=start_server).start()
  1198. |
  1199. = help: Rewrite `start_server` as a `def`
  1200.  
  1201. tests/test_socketutils.py:409:5: E731 Do not assign a `lambda` expression, use a `def`
  1202. |
  1203. 407 | server_socket.listen(100)
  1204. 408 | ip, port = server_socket.getsockname()
  1205. 409 | start_server = lambda: netstring_server_timeout_override(server_socket)
  1206. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  1207. 410 | threading.Thread(target=start_server).start()
  1208. |
  1209. = help: Rewrite `start_server` as a `def`
  1210.  
  1211.  
  1212. _________________________________ test session _________________________________
  1213. File would be reformatted
  1214. ----------------------------- Captured stdout call -----------------------------
  1215. Would reformat: tests/test_socketutils.py
  1216. ___________________________ tests/test_statsutils.py ___________________________
  1217. 16: error: Cannot find implementation or library stub for module named "statsutils" [import-not-found]
  1218. _________________________________ test session _________________________________
  1219. File would be reformatted
  1220. ----------------------------- Captured stdout call -----------------------------
  1221. Would reformat: tests/test_statsutils.py
  1222. ______________________ tests/test_statsutils_histogram.py ______________________
  1223. 27: error: Need type annotation for "EMPTY_DATA" (hint: "EMPTY_DATA: list[<type>] = ...") [var-annotated]
  1224. _________________________________ test session _________________________________
  1225. File would be reformatted
  1226. ----------------------------- Captured stdout call -----------------------------
  1227. Would reformat: tests/test_statsutils_histogram.py
  1228. _________________________________ test session _________________________________
  1229. tests/test_strutils.py:54:12: E712 Avoid equality comparisons to `True`; use `if strutils.is_uuid(uuid.uuid4()):` for truth checks
  1230. |
  1231. 53 | def test_is_uuid():
  1232. 54 | assert strutils.is_uuid(uuid.uuid4()) == True
  1233. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  1234. 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
  1235. 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
  1236. |
  1237. = help: Replace with `strutils.is_uuid(uuid.uuid4())`
  1238.  
  1239. tests/test_strutils.py:55:12: E712 Avoid equality comparisons to `False`; use `if not strutils.is_uuid(uuid.uuid4(), version=1):` for false checks
  1240. |
  1241. 53 | def test_is_uuid():
  1242. 54 | assert strutils.is_uuid(uuid.uuid4()) == True
  1243. 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
  1244. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  1245. 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
  1246. 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
  1247. |
  1248. = help: Replace with `not strutils.is_uuid(uuid.uuid4(), version=1)`
  1249.  
  1250. tests/test_strutils.py:56:12: E712 Avoid equality comparisons to `True`; use `if strutils.is_uuid(str(uuid.uuid4())):` for truth checks
  1251. |
  1252. 54 | assert strutils.is_uuid(uuid.uuid4()) == True
  1253. 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
  1254. 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
  1255. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  1256. 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
  1257. 58 | assert strutils.is_uuid(set('garbage')) == False
  1258. |
  1259. = help: Replace with `strutils.is_uuid(str(uuid.uuid4()))`
  1260.  
  1261. tests/test_strutils.py:57:12: E712 Avoid equality comparisons to `False`; use `if not strutils.is_uuid(str(uuid.uuid4()), version=1):` for false checks
  1262. |
  1263. 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
  1264. 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
  1265. 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
  1266. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  1267. 58 | assert strutils.is_uuid(set('garbage')) == False
  1268. |
  1269. = help: Replace with `not strutils.is_uuid(str(uuid.uuid4()), version=1)`
  1270.  
  1271. tests/test_strutils.py:58:12: E712 Avoid equality comparisons to `False`; use `if not strutils.is_uuid(set('garbage')):` for false checks
  1272. |
  1273. 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
  1274. 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
  1275. 58 | assert strutils.is_uuid(set('garbage')) == False
  1276. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  1277. |
  1278. = help: Replace with `not strutils.is_uuid(set('garbage'))`
  1279.  
  1280.  
  1281. _________________________________ test session _________________________________
  1282. File would be reformatted
  1283. ----------------------------- Captured stdout call -----------------------------
  1284. Would reformat: tests/test_strutils.py
  1285. _________________________________ test session _________________________________
  1286. File would be reformatted
  1287. ----------------------------- Captured stdout call -----------------------------
  1288. Would reformat: tests/test_tableutils.py
  1289. _________________________________ test session _________________________________
  1290. tests/test_tbutils.py:29:5: E722 Do not use bare `except`
  1291. |
  1292. 27 | try:
  1293. 28 | test()
  1294. 29 | except:
  1295. | ^^^^^^ E722
  1296. 30 | exc, _, exc_traceback = sys.exc_info()
  1297. 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
  1298. |
  1299.  
  1300. tests/test_tbutils.py:32:9: F841 Local variable `exc_info` is assigned to but never used
  1301. |
  1302. 30 | exc, _, exc_traceback = sys.exc_info()
  1303. 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
  1304. 32 | exc_info = ExceptionInfo.from_exc_info(*sys.exc_info())
  1305. | ^^^^^^^^ F841
  1306. 33 | exc_info2 = ExceptionInfo.from_current()
  1307. 34 | tbi_str = str(tbi)
  1308. |
  1309. = help: Remove assignment to unused variable `exc_info`
  1310.  
  1311. tests/test_tbutils.py:33:9: F841 Local variable `exc_info2` is assigned to but never used
  1312. |
  1313. 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
  1314. 32 | exc_info = ExceptionInfo.from_exc_info(*sys.exc_info())
  1315. 33 | exc_info2 = ExceptionInfo.from_current()
  1316. | ^^^^^^^^^ F841
  1317. 34 | tbi_str = str(tbi)
  1318. 35 | print_exception(*sys.exc_info(), file=fake_stderr2)
  1319. |
  1320. = help: Remove assignment to unused variable `exc_info2`
  1321.  
  1322. tests/test_tbutils.py:66:9: F841 Local variable `x` is assigned to but never used
  1323. |
  1324. 64 | return func2()
  1325. 65 | def func2():
  1326. 66 | x = 5
  1327. | ^ F841
  1328. 67 | return func3()
  1329. 68 | def func3():
  1330. |
  1331. = help: Remove assignment to unused variable `x`
  1332.  
  1333. tests/test_tbutils.py:84:9: F841 Local variable `a` is assigned to but never used
  1334. |
  1335. 83 | def func_a():
  1336. 84 | a = 1
  1337. | ^ F841
  1338. 85 | raise Exception('func_a exception')
  1339. 86 | def func_b():
  1340. |
  1341. = help: Remove assignment to unused variable `a`
  1342.  
  1343. tests/test_tbutils.py:87:9: F841 Local variable `b` is assigned to but never used
  1344. |
  1345. 85 | raise Exception('func_a exception')
  1346. 86 | def func_b():
  1347. 87 | b = 2
  1348. | ^ F841
  1349. 88 | return func_a()
  1350. 89 | def func_c():
  1351. |
  1352. = help: Remove assignment to unused variable `b`
  1353.  
  1354. tests/test_tbutils.py:90:9: F841 Local variable `c` is assigned to but never used
  1355. |
  1356. 88 | return func_a()
  1357. 89 | def func_c():
  1358. 90 | c = 3
  1359. | ^ F841
  1360. 91 | return func_b()
  1361. |
  1362. = help: Remove assignment to unused variable `c`
  1363.  
  1364. tests/test_tbutils.py:95:25: F841 [*] Local variable `e` is assigned to but never used
  1365. |
  1366. 93 | try:
  1367. 94 | func_c()
  1368. 95 | except Exception as e:
  1369. | ^ F841
  1370. 96 | ctx_ei = ContextualExceptionInfo.from_current()
  1371. 97 | ctx_ei_str = ctx_ei.get_formatted()
  1372. |
  1373. = help: Remove assignment to unused variable `e`
  1374.  
  1375.  
  1376. _________________________________ test session _________________________________
  1377. File would be reformatted
  1378. ----------------------------- Captured stdout call -----------------------------
  1379. Would reformat: tests/test_tbutils.py
  1380. _________________________________ test session _________________________________
  1381. File would be reformatted
  1382. ----------------------------- Captured stdout call -----------------------------
  1383. Would reformat: tests/test_tbutils_parsed_exc.py
  1384. _________________________________ test session _________________________________
  1385. File would be reformatted
  1386. ----------------------------- Captured stdout call -----------------------------
  1387. Would reformat: tests/test_timeutils.py
  1388. _________________________________ test session _________________________________
  1389. File would be reformatted
  1390. ----------------------------- Captured stdout call -----------------------------
  1391. Would reformat: tests/test_typeutils.py
  1392. _________________________________ test session _________________________________
  1393. File would be reformatted
  1394. ----------------------------- Captured stdout call -----------------------------
  1395. Would reformat: tests/test_urlutils.py
  1396. =============================== warnings summary ===============================
  1397. tests/conftest.py:8
  1398. /home/usernameedited/.cache/yay/python-boltons/src/boltons/tests/conftest.py:8: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path)
  1399. see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
  1400. def pytest_ignore_collect(path, config):
  1401.  
  1402. -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
  1403.  
  1404. ---------- coverage: platform linux, python 3.13.1-final-0 -----------
  1405. Name Stmts Miss Cover
  1406. --------------------------------------------------------
  1407. boltons/__init__.py 0 0 100%
  1408. boltons/cacheutils.py 410 42 90%
  1409. boltons/debugutils.py 147 39 73%
  1410. boltons/dictutils.py 553 127 77%
  1411. boltons/ecoutils.py 186 71 62%
  1412. boltons/fileutils.py 358 217 39%
  1413. boltons/formatutils.py 150 25 83%
  1414. boltons/funcutils.py 360 89 75%
  1415. boltons/gcutils.py 33 5 85%
  1416. boltons/ioutils.py 330 24 93%
  1417. boltons/iterutils.py 545 208 62%
  1418. boltons/jsonutils.py 136 64 53%
  1419. boltons/listutils.py 212 74 65%
  1420. boltons/mathutils.py 113 17 85%
  1421. boltons/namedutils.py 104 22 79%
  1422. boltons/queueutils.py 86 17 80%
  1423. boltons/setutils.py 591 224 62%
  1424. boltons/socketutils.py 313 49 84%
  1425. boltons/statsutils.py 280 103 63%
  1426. boltons/strutils.py 382 187 51%
  1427. boltons/tableutils.py 285 78 73%
  1428. boltons/tbutils.py 360 85 76%
  1429. boltons/timeutils.py 178 85 52%
  1430. boltons/typeutils.py 52 23 56%
  1431. boltons/urlutils.py 708 287 59%
  1432. tests/__init__.py 0 0 100%
  1433. tests/conftest.py 15 1 93%
  1434. tests/test_cacheutils.py 308 9 97%
  1435. tests/test_debugutils_trace.py 55 0 100%
  1436. tests/test_dictutils.py 381 4 99%
  1437. tests/test_ecoutils.py 8 0 100%
  1438. tests/test_fileutils.py 62 0 100%
  1439. tests/test_formatutils.py 43 0 100%
  1440. tests/test_funcutils.py 55 0 100%
  1441. tests/test_funcutils_fb.py 191 19 90%
  1442. tests/test_funcutils_fb_py3.py 156 13 92%
  1443. tests/test_gcutils.py 21 0 100%
  1444. tests/test_ioutils.py 325 6 98%
  1445. tests/test_iterutils.py 366 1 99%
  1446. tests/test_jsonutils.py 26 0 100%
  1447. tests/test_listutils.py 72 28 61%
  1448. tests/test_mathutils.py 73 0 100%
  1449. tests/test_namedutils.py 17 0 100%
  1450. tests/test_queueutils.py 38 1 97%
  1451. tests/test_setutils.py 160 14 91%
  1452. tests/test_socketutils.py 301 24 92%
  1453. tests/test_statsutils.py 19 9 53%
  1454. tests/test_statsutils_histogram.py 34 2 94%
  1455. tests/test_strutils.py 68 0 100%
  1456. tests/test_tableutils.py 26 0 100%
  1457. tests/test_tbutils.py 74 3 96%
  1458. tests/test_tbutils_parsed_exc.py 26 0 100%
  1459. tests/test_timeutils.py 39 0 100%
  1460. tests/test_typeutils.py 12 0 100%
  1461. tests/test_urlutils.py 214 5 98%
  1462. --------------------------------------------------------
  1463. TOTAL 10057 2301 77%
  1464.  
  1465. ===================================== mypy =====================================
  1466. Found 34 errors in 16 files (checked 64 source files)
  1467. =========================== short test summary info ============================
  1468. FAILED boltons/__init__.py::mypy-status
  1469. FAILED boltons/cacheutils.py::mypy
  1470. FAILED boltons/cacheutils.py::ruff::format
  1471. FAILED boltons/debugutils.py::ruff
  1472. FAILED boltons/debugutils.py::ruff::format
  1473. FAILED boltons/deprutils.py::ruff::format
  1474. FAILED boltons/dictutils.py::mypy
  1475. FAILED boltons/dictutils.py::ruff
  1476. FAILED boltons/dictutils.py::ruff::format
  1477. FAILED boltons/easterutils.py::ruff::format
  1478. FAILED boltons/ecoutils.py::mypy
  1479. FAILED boltons/ecoutils.py::ruff
  1480. FAILED boltons/ecoutils.py::ruff::format
  1481. FAILED boltons/excutils.py::ruff
  1482. FAILED boltons/excutils.py::ruff::format
  1483. FAILED boltons/fileutils.py::mypy
  1484. FAILED boltons/fileutils.py::ruff::format
  1485. FAILED boltons/formatutils.py::ruff::format
  1486. FAILED boltons/funcutils.py::ruff
  1487. FAILED boltons/funcutils.py::ruff::format
  1488. FAILED boltons/gcutils.py::ruff::format
  1489. FAILED boltons/ioutils.py::ruff::format
  1490. FAILED boltons/iterutils.py::mypy
  1491. FAILED boltons/iterutils.py::ruff
  1492. FAILED boltons/iterutils.py::ruff::format
  1493. FAILED boltons/jsonutils.py::ruff::format
  1494. FAILED boltons/listutils.py::ruff
  1495. FAILED boltons/listutils.py::ruff::format
  1496. FAILED boltons/mathutils.py::ruff::format
  1497. FAILED boltons/mboxutils.py::ruff::format
  1498. FAILED boltons/namedutils.py::ruff::format
  1499. FAILED boltons/pathutils.py::ruff::format
  1500. FAILED boltons/queueutils.py::mypy
  1501. FAILED boltons/queueutils.py::ruff::format
  1502. FAILED boltons/setutils.py::ruff
  1503. FAILED boltons/setutils.py::ruff::format
  1504. FAILED boltons/socketutils.py::mypy
  1505. FAILED boltons/socketutils.py::ruff::format
  1506. FAILED boltons/statsutils.py::ruff
  1507. FAILED boltons/statsutils.py::ruff::format
  1508. FAILED boltons/strutils.py::ruff
  1509. FAILED boltons/strutils.py::ruff::format
  1510. FAILED boltons/tableutils.py::ruff::format
  1511. FAILED boltons/tbutils.py::ruff
  1512. FAILED boltons/tbutils.py::ruff::format
  1513. FAILED boltons/timeutils.py::mypy
  1514. FAILED boltons/timeutils.py::ruff
  1515. FAILED boltons/timeutils.py::ruff::format
  1516. FAILED boltons/typeutils.py::ruff::format
  1517. FAILED boltons/urlutils.py::mypy
  1518. FAILED boltons/urlutils.py::ruff
  1519. FAILED boltons/urlutils.py::ruff::format
  1520. FAILED docs/conf.py::mypy
  1521. FAILED docs/conf.py::ruff
  1522. FAILED docs/conf.py::ruff::format
  1523. FAILED misc/bench_omd.py::mypy
  1524. FAILED misc/bench_omd.py::ruff
  1525. FAILED misc/bench_omd.py::ruff::format
  1526. FAILED misc/linkify_changelog.py::ruff::format
  1527. FAILED misc/table_html_app.py::mypy
  1528. FAILED misc/table_html_app.py::ruff
  1529. FAILED misc/table_html_app.py::ruff::format
  1530. FAILED tests/conftest.py::ruff::format
  1531. FAILED tests/test_cacheutils.py::ruff
  1532. FAILED tests/test_cacheutils.py::ruff::format
  1533. FAILED tests/test_debugutils_trace.py::ruff::format
  1534. FAILED tests/test_dictutils.py::ruff
  1535. FAILED tests/test_dictutils.py::ruff::format
  1536. FAILED tests/test_ecoutils.py::ruff::format
  1537. FAILED tests/test_fileutils.py::ruff::format
  1538. FAILED tests/test_formatutils.py::mypy
  1539. FAILED tests/test_formatutils.py::ruff
  1540. FAILED tests/test_formatutils.py::ruff::format
  1541. FAILED tests/test_funcutils.py::ruff::format
  1542. FAILED tests/test_funcutils_fb.py::ruff::format
  1543. FAILED tests/test_funcutils_fb_py3.py::mypy
  1544. FAILED tests/test_funcutils_fb_py3.py::ruff
  1545. FAILED tests/test_funcutils_fb_py3.py::ruff::format
  1546. FAILED tests/test_gcutils.py::ruff
  1547. FAILED tests/test_gcutils.py::ruff::format
  1548. FAILED tests/test_ioutils.py::ruff::format
  1549. FAILED tests/test_iterutils.py::ruff
  1550. FAILED tests/test_iterutils.py::ruff::format
  1551. FAILED tests/test_jsonutils.py::ruff::format
  1552. FAILED tests/test_listutils.py::ruff
  1553. FAILED tests/test_listutils.py::ruff::format
  1554. FAILED tests/test_mathutils.py::ruff::format
  1555. FAILED tests/test_namedutils.py::ruff::format
  1556. FAILED tests/test_queueutils.py::ruff::format
  1557. FAILED tests/test_setutils.py::ruff
  1558. FAILED tests/test_setutils.py::ruff::format
  1559. FAILED tests/test_socketutils.py::ruff
  1560. FAILED tests/test_socketutils.py::ruff::format
  1561. FAILED tests/test_statsutils.py::mypy
  1562. FAILED tests/test_statsutils.py::ruff::format
  1563. FAILED tests/test_statsutils_histogram.py::mypy
  1564. FAILED tests/test_statsutils_histogram.py::ruff::format
  1565. FAILED tests/test_strutils.py::ruff
  1566. FAILED tests/test_strutils.py::ruff::format
  1567. FAILED tests/test_tableutils.py::ruff::format
  1568. FAILED tests/test_tbutils.py::ruff
  1569. FAILED tests/test_tbutils.py::ruff::format
  1570. FAILED tests/test_tbutils_parsed_exc.py::ruff::format
  1571. FAILED tests/test_timeutils.py::ruff::format
  1572. FAILED tests/test_typeutils.py::ruff::format
  1573. FAILED tests/test_urlutils.py::ruff::format
  1574. ============ 106 failed, 510 passed, 1 warning in 99.70s (0:01:39) =============
  1575. -> Failed to install layer, rolling up to next layer.error:error making: python-boltons - exit status 4
  1576. ==> Making package: python-conda-libmamba-solver 24.11.1-1 (Sat 08 Feb 2025 07:13:13 PM CET)
  1577. ==> Checking runtime dependencies...
  1578. ==> Missing dependencies:
  1579.  -> python-boltons
  1580. ==> Checking buildtime dependencies...
  1581. -> Failed to install layer, rolling up to next layer.error:error making: python-conda-libmamba-solver - exit status 8
  1582. ==> Making package: python-conda 25.1.1-1 (Sat 08 Feb 2025 07:13:14 PM CET)
  1583. ==> Checking runtime dependencies...
  1584. ==> Missing dependencies:
  1585.  -> python-boltons
  1586.  -> python-conda-libmamba-solver
  1587. ==> Checking buildtime dependencies...
  1588. ==> Making package: python-conda-libmamba-solver 24.11.1-1 (Sat 08 Feb 2025 07:13:15 PM CET)
  1589. ==> Checking runtime dependencies...
  1590. ==> Missing dependencies:
  1591.  -> python-boltons
  1592. ==> Checking buildtime dependencies...
  1593. ==> Making package: python-boltons 25.0.0-1 (Sat 08 Feb 2025 07:13:16 PM CET)
  1594. ==> Checking runtime dependencies...
  1595. ==> Checking buildtime dependencies...
  1596. ==> Retrieving sources...
  1597.  -> Updating boltons git repo...
  1598. ==> Validating source files with sha512sums...
  1599. ==> Removing existing $srcdir/ directory...
  1600. ==> Extracting sources...
  1601.  -> Creating working copy of boltons git repo...
  1602. ==> Sources are ready.
  1603. ==> Making package: python-boltons 25.0.0-1 (Sat 08 Feb 2025 07:13:18 PM CET)
  1604. ==> Checking runtime dependencies...
  1605. ==> Checking buildtime dependencies...
  1606. ==> Removing existing $pkgdir/ directory...
  1607. ==> Starting build()...
  1608. )0[?7h
  1609. ==> Starting check()...
  1610. ============================= test session starts ==============================
  1611. platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0
  1612. rootdir: /home/usernameedited/.cache/yay/python-boltons/src/boltons
  1613. configfile: pyproject.toml
  1614. plugins: typeguard-4.4.1, ruff-0.4.1, cov-6.0.0, jaraco.vcs-2.4.0, mock-3.14.0, xonsh-0.19.1, enabler-3.3.0, hypothesis-6.124.7, mypy-0.10.3, home-0.6.0, anyio-4.8.0
  1615. collected 616 items
  1616.  
  1617. boltons/__init__.py .F.. [ 0%]
  1618. boltons/cacheutils.py F.F [ 1%]
  1619. boltons/debugutils.py .FF [ 1%]
  1620. boltons/deprutils.py ..F [ 2%]
  1621. boltons/dictutils.py FFF [ 2%]
  1622. boltons/easterutils.py ..F [ 3%]
  1623. boltons/ecoutils.py FFF [ 3%]
  1624. boltons/excutils.py .FF [ 4%]
  1625. boltons/fileutils.py F.F [ 4%]
  1626. boltons/formatutils.py ..F [ 5%]
  1627. boltons/funcutils.py .FF [ 5%]
  1628. boltons/gcutils.py ..F [ 6%]
  1629. boltons/ioutils.py ..F [ 6%]
  1630. boltons/iterutils.py FFF [ 6%]
  1631. boltons/jsonutils.py ..F [ 7%]
  1632. boltons/listutils.py .FF [ 7%]
  1633. boltons/mathutils.py ..F [ 8%]
  1634. boltons/mboxutils.py ..F [ 8%]
  1635. boltons/namedutils.py ..F [ 9%]
  1636. boltons/pathutils.py ..F [ 9%]
  1637. boltons/queueutils.py F.F [ 10%]
  1638. boltons/setutils.py .FF [ 10%]
  1639. boltons/socketutils.py F.F [ 11%]
  1640. boltons/statsutils.py .FF [ 11%]
  1641. boltons/strutils.py .FF [ 12%]
  1642. boltons/tableutils.py ..F [ 12%]
  1643. boltons/tbutils.py .FF [ 13%]
  1644. boltons/timeutils.py FFF [ 13%]
  1645. boltons/typeutils.py ..F [ 14%]
  1646. boltons/urlutils.py FFF [ 14%]
  1647. docs/conf.py FFF [ 15%]
  1648. misc/bench_omd.py FFF [ 15%]
  1649. misc/linkify_changelog.py ..F [ 16%]
  1650. misc/table_html_app.py FFF [ 16%]
  1651. tests/__init__.py ... [ 17%]
  1652. tests/conftest.py ..F [ 17%]
  1653. tests/test_cacheutils.py .FF.................. [ 21%]
  1654. tests/test_debugutils_trace.py ..F...... [ 22%]
  1655. tests/test_dictutils.py .FF........................... [ 27%]
  1656. tests/test_ecoutils.py ..F.. [ 28%]
  1657. tests/test_fileutils.py ..F...... [ 29%]
  1658. tests/test_formatutils.py FFF..... [ 31%]
  1659. tests/test_funcutils.py ..F..... [ 32%]
  1660. tests/test_funcutils_fb.py ..F............... [ 35%]
  1661. tests/test_funcutils_fb_py3.py FFF...................... [ 39%]
  1662. tests/test_gcutils.py .FF.. [ 40%]
  1663. tests/test_ioutils.py ..F............................................... [ 48%]
  1664. ................................... [ 53%]
  1665. tests/test_iterutils.py .FF......................................... [ 61%]
  1666. tests/test_jsonutils.py ..F.. [ 61%]
  1667. tests/test_listutils.py .FF.. [ 62%]
  1668. tests/test_mathutils.py ..F........... [ 64%]
  1669. tests/test_namedutils.py ..F... [ 65%]
  1670. tests/test_queueutils.py ..F.. [ 66%]
  1671. tests/test_setutils.py .FF..... [ 68%]
  1672. tests/test_socketutils.py .FF........... [ 70%]
  1673. tests/test_statsutils.py F.F. [ 70%]
  1674. tests/test_statsutils_histogram.py F.F.. [ 71%]
  1675. tests/test_strutils.py .FF.............. [ 74%]
  1676. tests/test_tableutils.py ..F... [ 75%]
  1677. tests/test_tbutils.py .FF.. [ 76%]
  1678. tests/test_tbutils_parsed_exc.py ..F... [ 77%]
  1679. tests/test_timeutils.py ..F.... [ 78%]
  1680. tests/test_typeutils.py ..F... [ 79%]
  1681. tests/test_urlutils.py ..F.............................................. [ 87%]
  1682. ........................................................................ [ 99%]
  1683. ...... [100%]
  1684.  
  1685. =================================== FAILURES ===================================
  1686. _________________________________ test session _________________________________
  1687. mypy exited with status 1.
  1688. ____________________________ boltons/cacheutils.py _____________________________
  1689. 74: error: Name "RLock" already defined (possibly by an import) [no-redef]
  1690. _________________________________ test session _________________________________
  1691. File would be reformatted
  1692. ----------------------------- Captured stdout call -----------------------------
  1693. Would reformat: boltons/cacheutils.py
  1694. _________________________________ test session _________________________________
  1695. boltons/debugutils.py:175:9: E731 Do not assign a `lambda` expression, use a `def`
  1696. |
  1697. 174 | if isinstance(which, str):
  1698. 175 | which_func = lambda attr_name, attr_val: attr_name == which
  1699. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  1700. 176 | elif callable(getattr(which, '__contains__', None)):
  1701. 177 | which_func = lambda attr_name, attr_val: attr_name in which
  1702. |
  1703. = help: Rewrite `which_func` as a `def`
  1704.  
  1705. boltons/debugutils.py:177:9: E731 Do not assign a `lambda` expression, use a `def`
  1706. |
  1707. 175 | which_func = lambda attr_name, attr_val: attr_name == which
  1708. 176 | elif callable(getattr(which, '__contains__', None)):
  1709. 177 | which_func = lambda attr_name, attr_val: attr_name in which
  1710. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  1711. 178 | elif which is None or callable(which):
  1712. 179 | which_func = which
  1713. |
  1714. = help: Rewrite `which_func` as a `def`
  1715.  
  1716.  
  1717. _________________________________ test session _________________________________
  1718. File would be reformatted
  1719. ----------------------------- Captured stdout call -----------------------------
  1720. Would reformat: boltons/debugutils.py
  1721. _________________________________ test session _________________________________
  1722. File would be reformatted
  1723. ----------------------------- Captured stdout call -----------------------------
  1724. Would reformat: boltons/deprutils.py
  1725. _____________________________ boltons/dictutils.py _____________________________
  1726. 370: error: Signatures of "__ior__" and "__or__" are incompatible [misc]
  1727. 1114: error: Incompatible types in assignment (expression has type "Callable[[FrozenDict, VarArg(Any), KwArg(Any)], Any]", base class "dict" defined the type as overloaded function) [assignment]
  1728. 1114: error: Incompatible types in assignment (expression has type "Callable[[FrozenDict, VarArg(Any), KwArg(Any)], Any]", base class "MutableMapping" defined the type as overloaded function) [assignment]
  1729. 1115: error: Incompatible types in assignment (expression has type "Callable[[FrozenDict, VarArg(Any), KwArg(Any)], Any]", base class "MutableMapping" defined the type as overloaded function) [assignment]
  1730. 1115: error: Incompatible types in assignment (expression has type "Callable[[FrozenDict, VarArg(Any), KwArg(Any)], Any]", base class "dict" defined the type as overloaded function) [assignment]
  1731. _________________________________ test session _________________________________
  1732. boltons/dictutils.py:1013:16: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
  1733. |
  1734. 1012 | def __eq__(self, other):
  1735. 1013 | return type(self) == type(other) and self.data == other.data
  1736. | ^^^^^^^^^^^^^^^^^^^^^^^^^ E721
  1737. 1014 |
  1738. 1015 | def __repr__(self):
  1739. |
  1740.  
  1741.  
  1742. _________________________________ test session _________________________________
  1743. File would be reformatted
  1744. ----------------------------- Captured stdout call -----------------------------
  1745. Would reformat: boltons/dictutils.py
  1746. _________________________________ test session _________________________________
  1747. File would be reformatted
  1748. ----------------------------- Captured stdout call -----------------------------
  1749. Would reformat: boltons/easterutils.py
  1750. _____________________________ boltons/ecoutils.py ______________________________
  1751. 174: error: Incompatible types in assignment (expression has type "Callable[[int], int]", variable has type "Callable[[Arg(int, 'k')], int]") [assignment]
  1752. _________________________________ test session _________________________________
  1753. boltons/ecoutils.py:185:12: F401 [*] `readline` imported but unused
  1754. |
  1755. 184 | try:
  1756. 185 | import readline
  1757. | ^^^^^^^^ F401
  1758. 186 | except Exception:
  1759. 187 | HAVE_READLINE = False
  1760. |
  1761. = help: Remove unused import: `readline`
  1762.  
  1763. boltons/ecoutils.py:238:12: F401 [*] `threading` imported but unused
  1764. |
  1765. 237 | try:
  1766. 238 | import threading
  1767. | ^^^^^^^^^ F401
  1768. 239 | HAVE_THREADING = True
  1769. 240 | except Exception:
  1770. |
  1771. = help: Remove unused import: `threading`
  1772.  
  1773.  
  1774. _________________________________ test session _________________________________
  1775. File would be reformatted
  1776. ----------------------------- Captured stdout call -----------------------------
  1777. Would reformat: boltons/ecoutils.py
  1778. _________________________________ test session _________________________________
  1779. boltons/excutils.py:286:19: E702 Multiple statements on one line (semicolon)
  1780. |
  1781. 284 | main()
  1782. 285 | except Exception:
  1783. 286 | import pdb;pdb.post_mortem()
  1784. | ^ E702
  1785. 287 | raise
  1786. |
  1787.  
  1788.  
  1789. _________________________________ test session _________________________________
  1790. File would be reformatted
  1791. ----------------------------- Captured stdout call -----------------------------
  1792. Would reformat: boltons/excutils.py
  1793. _____________________________ boltons/fileutils.py _____________________________
  1794. 276: error: Module has no attribute "windll" [attr-defined]
  1795. _________________________________ test session _________________________________
  1796. File would be reformatted
  1797. ----------------------------- Captured stdout call -----------------------------
  1798. Would reformat: boltons/fileutils.py
  1799. _________________________________ test session _________________________________
  1800. File would be reformatted
  1801. ----------------------------- Captured stdout call -----------------------------
  1802. Would reformat: boltons/formatutils.py
  1803. _________________________________ test session _________________________________
  1804. boltons/funcutils.py:228:34: E701 Multiple statements on one line (colon)
  1805. |
  1806. 226 | def __eq__(self, other): return self >= other and self <= other
  1807. 227 |
  1808. 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
  1809. | ^ E701
  1810. 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
  1811. 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
  1812. |
  1813.  
  1814. boltons/funcutils.py:229:34: E701 Multiple statements on one line (colon)
  1815. |
  1816. 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
  1817. 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
  1818. | ^ E701
  1819. 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
  1820. |
  1821.  
  1822. boltons/funcutils.py:230:34: E701 Multiple statements on one line (colon)
  1823. |
  1824. 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
  1825. 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
  1826. 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
  1827. | ^ E701
  1828. 231 |
  1829. 232 | return cls
  1830. |
  1831.  
  1832. boltons/funcutils.py:390:9: E731 Do not assign a `lambda` expression, use a `def`
  1833. |
  1834. 389 | if opt_key is None:
  1835. 390 | opt_key = lambda v: v is None
  1836. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  1837. 391 | assert callable(opt_key)
  1838. |
  1839. = help: Rewrite `opt_key` as a `def`
  1840.  
  1841. boltons/funcutils.py:441:9: E731 Do not assign a `lambda` expression, use a `def`
  1842. |
  1843. 440 | if opt_key is None:
  1844. 441 | opt_key = lambda v: v is None
  1845. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  1846. 442 | assert callable(opt_key)
  1847. |
  1848. = help: Rewrite `opt_key` as a `def`
  1849.  
  1850.  
  1851. _________________________________ test session _________________________________
  1852. File would be reformatted
  1853. ----------------------------- Captured stdout call -----------------------------
  1854. Would reformat: boltons/funcutils.py
  1855. _________________________________ test session _________________________________
  1856. File would be reformatted
  1857. ----------------------------- Captured stdout call -----------------------------
  1858. Would reformat: boltons/gcutils.py
  1859. _________________________________ test session _________________________________
  1860. File would be reformatted
  1861. ----------------------------- Captured stdout call -----------------------------
  1862. Would reformat: boltons/ioutils.py
  1863. _____________________________ boltons/iterutils.py _____________________________
  1864. 346: error: All conditional function variants must have identical signatures [misc]
  1865. 346: note: Original:
  1866. 346: note: def postprocess(chk: Any) -> Any
  1867. 346: note: Redefinition:
  1868. 346: note: def postprocess(chk: Any, _sep: Any = ...) -> Any
  1869. _________________________________ test session _________________________________
  1870. boltons/iterutils.py:45:8: F401 [*] `codecs` imported but unused
  1871. |
  1872. 43 | import math
  1873. 44 | import time
  1874. 45 | import codecs
  1875. | ^^^^^^ F401
  1876. 46 | import random
  1877. 47 | import itertools
  1878. |
  1879. = help: Remove unused import: `codecs`
  1880.  
  1881. boltons/iterutils.py:1317:33: F841 [*] Local variable `exc` is assigned to but never used
  1882. |
  1883. 1315 | except (KeyError, IndexError) as exc:
  1884. 1316 | raise PathAccessError(exc, seg, path)
  1885. 1317 | except TypeError as exc:
  1886. | ^^^ F841
  1887. 1318 | # either string index in a list, or a parent that
  1888. 1319 | # doesn't support indexing
  1889. |
  1890. = help: Remove assignment to unused variable `exc`
  1891.  
  1892.  
  1893. _________________________________ test session _________________________________
  1894. File would be reformatted
  1895. ----------------------------- Captured stdout call -----------------------------
  1896. Would reformat: boltons/iterutils.py
  1897. _________________________________ test session _________________________________
  1898. File would be reformatted
  1899. ----------------------------- Captured stdout call -----------------------------
  1900. Would reformat: boltons/jsonutils.py
  1901. _________________________________ test session _________________________________
  1902. boltons/listutils.py:124:19: F841 Local variable `len_self` is assigned to but never used
  1903. |
  1904. 122 | if list_idx < 0:
  1905. 123 | list_idx += len(self.lists)
  1906. 124 | cur_list, len_self = self.lists[list_idx], len(self)
  1907. | ^^^^^^^^ F841
  1908. 125 | size_limit = self._cur_size_limit
  1909. 126 | if len(cur_list) > size_limit:
  1910. |
  1911. = help: Remove assignment to unused variable `len_self`
  1912.  
  1913. boltons/listutils.py:227:52: E741 Ambiguous variable name: `l`
  1914. |
  1915. 226 | def __reversed__(self):
  1916. 227 | return chain.from_iterable(reversed(l) for l in reversed(self.lists))
  1917. | ^ E741
  1918. 228 |
  1919. 229 | def __len__(self):
  1920. |
  1921.  
  1922. boltons/listutils.py:230:32: E741 Ambiguous variable name: `l`
  1923. |
  1924. 229 | def __len__(self):
  1925. 230 | return sum([len(l) for l in self.lists])
  1926. | ^ E741
  1927. 231 |
  1928. 232 | def __contains__(self, item):
  1929. |
  1930.  
  1931. boltons/listutils.py:267:13: F841 Local variable `start` is assigned to but never used
  1932. |
  1933. 265 | def __setitem__(self, index, item):
  1934. 266 | try:
  1935. 267 | start, stop, step = index.start, index.stop, index.step
  1936. | ^^^^^ F841
  1937. 268 | except AttributeError:
  1938. 269 | index = operator.index(index)
  1939. |
  1940. = help: Remove assignment to unused variable `start`
  1941.  
  1942. boltons/listutils.py:267:20: F841 Local variable `stop` is assigned to but never used
  1943. |
  1944. 265 | def __setitem__(self, index, item):
  1945. 266 | try:
  1946. 267 | start, stop, step = index.start, index.stop, index.step
  1947. | ^^^^ F841
  1948. 268 | except AttributeError:
  1949. 269 | index = operator.index(index)
  1950. |
  1951. = help: Remove assignment to unused variable `stop`
  1952.  
  1953. boltons/listutils.py:267:26: F841 Local variable `step` is assigned to but never used
  1954. |
  1955. 265 | def __setitem__(self, index, item):
  1956. 266 | try:
  1957. 267 | start, stop, step = index.start, index.stop, index.step
  1958. | ^^^^ F841
  1959. 268 | except AttributeError:
  1960. 269 | index = operator.index(index)
  1961. |
  1962. = help: Remove assignment to unused variable `step`
  1963.  
  1964.  
  1965. _________________________________ test session _________________________________
  1966. File would be reformatted
  1967. ----------------------------- Captured stdout call -----------------------------
  1968. Would reformat: boltons/listutils.py
  1969. _________________________________ test session _________________________________
  1970. File would be reformatted
  1971. ----------------------------- Captured stdout call -----------------------------
  1972. Would reformat: boltons/mathutils.py
  1973. _________________________________ test session _________________________________
  1974. File would be reformatted
  1975. ----------------------------- Captured stdout call -----------------------------
  1976. Would reformat: boltons/mboxutils.py
  1977. _________________________________ test session _________________________________
  1978. File would be reformatted
  1979. ----------------------------- Captured stdout call -----------------------------
  1980. Would reformat: boltons/namedutils.py
  1981. _________________________________ test session _________________________________
  1982. File would be reformatted
  1983. ----------------------------- Captured stdout call -----------------------------
  1984. Would reformat: boltons/pathutils.py
  1985. ____________________________ boltons/queueutils.py _____________________________
  1986. 80: error: Cannot assign multiple types to name "BList" without an explicit "Type[...]" annotation [misc]
  1987. 80: error: Incompatible types in assignment (expression has type "type[list[Any]]", variable has type "type[BarrelList]") [assignment]
  1988. _________________________________ test session _________________________________
  1989. File would be reformatted
  1990. ----------------------------- Captured stdout call -----------------------------
  1991. Would reformat: boltons/queueutils.py
  1992. _________________________________ test session _________________________________
  1993. boltons/setutils.py:616:24: E713 [*] Test for membership should be `not in`
  1994. |
  1995. 614 | def __contains__(self, item):
  1996. 615 | if self._included is None:
  1997. 616 | return not item in self._excluded
  1998. | ^^^^^^^^^^^^^^^^^^^^^^ E713
  1999. 617 | return item in self._included
  2000. |
  2001. = help: Convert to `not in`
  2002.  
  2003.  
  2004. _________________________________ test session _________________________________
  2005. File would be reformatted
  2006. ----------------------------- Captured stdout call -----------------------------
  2007. Would reformat: boltons/setutils.py
  2008. ____________________________ boltons/socketutils.py ____________________________
  2009. 73: error: Name "RLock" already defined (possibly by an import) [no-redef]
  2010. _________________________________ test session _________________________________
  2011. File would be reformatted
  2012. ----------------------------- Captured stdout call -----------------------------
  2013. Would reformat: boltons/socketutils.py
  2014. _________________________________ test session _________________________________
  2015. boltons/statsutils.py:319:9: E731 Do not assign a `lambda` expression, use a `def`
  2016. |
  2017. 317 | """
  2018. 318 | sorted_data = self._get_sorted_data()
  2019. 319 | gq = lambda q: self._get_quantile(sorted_data, q)
  2020. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2021. 320 | return (gq(0.25) + (2 * gq(0.5)) + gq(0.75)) / 4.0
  2022. 321 | trimean = _StatsProperty('trimean', _calc_trimean)
  2023. |
  2024. = help: Rewrite `gq` as a `def`
  2025.  
  2026. boltons/statsutils.py:785:9: E731 Do not assign a `lambda` expression, use a `def`
  2027. |
  2028. 783 | lines = []
  2029. 784 | if not format_bin:
  2030. 785 | format_bin = lambda v: v
  2031. | ^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2032. 786 | if not width:
  2033. 787 | try:
  2034. |
  2035. = help: Rewrite `format_bin` as a `def`
  2036.  
  2037. boltons/statsutils.py:798:34: E741 Ambiguous variable name: `l`
  2038. |
  2039. 797 | labels = ['%s' % format_bin(b) for b in bins]
  2040. 798 | label_cols = max([len(l) for l in labels])
  2041. | ^ E741
  2042. 799 | tmp_line = '{}: {} #'.format('x' * label_cols, count_max)
  2043. |
  2044.  
  2045.  
  2046. _________________________________ test session _________________________________
  2047. File would be reformatted
  2048. ----------------------------- Captured stdout call -----------------------------
  2049. Would reformat: boltons/statsutils.py
  2050. _________________________________ test session _________________________________
  2051. boltons/strutils.py:38:8: F401 [*] `builtins` imported but unused
  2052. |
  2053. 38 | import builtins
  2054. | ^^^^^^^^ F401
  2055. 39 | import re
  2056. 40 | import sys
  2057. |
  2058. = help: Remove unused import: `builtins`
  2059.  
  2060. boltons/strutils.py:285:52: F601 Dictionary key literal `'formula'` repeated
  2061. |
  2062. 283 | 'embargo': 'embargoes', 'emphasis': 'emphases', 'erratum': 'errata',
  2063. 284 | 'fireman': 'firemen', 'fish': 'fish', 'focus': 'foci',
  2064. 285 | 'foot': 'feet', 'formula': 'formulae', 'formula': 'formulas',
  2065. | ^^^^^^^^^ F601
  2066. 286 | 'fungus': 'fungi', 'genus': 'genera', 'goose': 'geese',
  2067. 287 | 'half': 'halves', 'hero': 'heroes', 'hippopotamus': 'hippopotami',
  2068. |
  2069. = help: Remove repeated key literal `'formula'`
  2070.  
  2071. boltons/strutils.py:402:24: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
  2072. |
  2073. 401 | # Transform back the result to the same bytearray type provided by the user.
  2074. 402 | if target_type and target_type != type(cleaned):
  2075. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E721
  2076. 403 | cleaned = target_type(cleaned, 'utf-8')
  2077. |
  2078.  
  2079.  
  2080. _________________________________ test session _________________________________
  2081. File would be reformatted
  2082. ----------------------------- Captured stdout call -----------------------------
  2083. Would reformat: boltons/strutils.py
  2084. _________________________________ test session _________________________________
  2085. File would be reformatted
  2086. ----------------------------- Captured stdout call -----------------------------
  2087. Would reformat: boltons/tableutils.py
  2088. _________________________________ test session _________________________________
  2089. boltons/tbutils.py:525:29: E741 Ambiguous variable name: `l`
  2090. |
  2091. 523 | start_line = self.lineno - len(self.pre_lines)
  2092. 524 | pre_lines = [{'lineno': start_line + i, 'line': str(l)}
  2093. 525 | for i, l in enumerate(self.pre_lines)]
  2094. | ^ E741
  2095. 526 | # trim off leading empty lines
  2096. 527 | for i, item in enumerate(pre_lines):
  2097. |
  2098.  
  2099. boltons/tbutils.py:536:30: E741 Ambiguous variable name: `l`
  2100. |
  2101. 534 | # now post_lines
  2102. 535 | post_lines = [{'lineno': self.lineno + i, 'line': str(l)}
  2103. 536 | for i, l in enumerate(self.post_lines)]
  2104. | ^ E741
  2105. 537 | _last = 0
  2106. 538 | for i, item in enumerate(post_lines):
  2107. |
  2108.  
  2109.  
  2110. _________________________________ test session _________________________________
  2111. File would be reformatted
  2112. ----------------------------- Captured stdout call -----------------------------
  2113. Would reformat: boltons/tbutils.py
  2114. _____________________________ boltons/timeutils.py _____________________________
  2115. 131: error: List comprehension has incompatible type List[tuple[timedelta, timedelta, str]]; expected List[tuple[int, timedelta, str]] [misc]
  2116. _________________________________ test session _________________________________
  2117. boltons/timeutils.py:370:9: E731 Do not assign a `lambda` expression, use a `def`
  2118. |
  2119. 369 | if stop is None:
  2120. 370 | finished = lambda now, stop: False
  2121. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2122. 371 | elif start <= stop:
  2123. 372 | finished = operator.gt if inclusive else operator.ge
  2124. |
  2125. = help: Rewrite `finished` as a `def`
  2126.  
  2127.  
  2128. _________________________________ test session _________________________________
  2129. File would be reformatted
  2130. ----------------------------- Captured stdout call -----------------------------
  2131. Would reformat: boltons/timeutils.py
  2132. _________________________________ test session _________________________________
  2133. File would be reformatted
  2134. ----------------------------- Captured stdout call -----------------------------
  2135. Would reformat: boltons/typeutils.py
  2136. _____________________________ boltons/urlutils.py ______________________________
  2137. 826: error: Module has no attribute "windll" [attr-defined]
  2138. 827: error: Module has no attribute "windll" [attr-defined]
  2139. 829: error: All conditional function variants must have identical signatures [misc]
  2140. 829: note: Original:
  2141. 829: note: def inet_pton(int, str, /) -> bytes
  2142. 829: note: Redefinition:
  2143. 829: note: def inet_pton(address_family: Any, ip_string: Any) -> Any
  2144. 1276: error: Signatures of "__ior__" and "__or__" are incompatible [misc]
  2145. 1553: error: Incompatible import of "OrderedMultiDict" (imported name has type "type[boltons.dictutils.OrderedMultiDict]", local name has type "type[boltons.urlutils.OrderedMultiDict]") [assignment]
  2146. _________________________________ test session _________________________________
  2147. boltons/urlutils.py:979:1: E402 Module level import not at top of file
  2148. |
  2149. 977 | """
  2150. 978 |
  2151. 979 | from collections.abc import KeysView, ValuesView, ItemsView
  2152. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E402
  2153. 980 | from itertools import zip_longest
  2154. |
  2155.  
  2156. boltons/urlutils.py:980:1: E402 Module level import not at top of file
  2157. |
  2158. 979 | from collections.abc import KeysView, ValuesView, ItemsView
  2159. 980 | from itertools import zip_longest
  2160. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E402
  2161. 981 |
  2162. 982 | try:
  2163. |
  2164.  
  2165.  
  2166. _________________________________ test session _________________________________
  2167. File would be reformatted
  2168. ----------------------------- Captured stdout call -----------------------------
  2169. Would reformat: boltons/urlutils.py
  2170. _________________________________ docs/conf.py _________________________________
  2171. 126: error: Skipping analyzing "sphinx_rtd_theme": module is installed, but missing library stubs or py.typed marker [import-untyped]
  2172. 126: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
  2173. 231: error: Need type annotation for "latex_elements" (hint: "latex_elements: dict[<type>, <type>] = ...") [var-annotated]
  2174. _________________________________ test session _________________________________
  2175. docs/conf.py:39:5: E731 Do not assign a `lambda` expression, use a `def`
  2176. |
  2177. 37 | tot_type_count = 0
  2178. 38 | tot_func_count = 0
  2179. 39 | ignore = lambda attr_name: attr_name.startswith('_')
  2180. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2181. 40 | for _, mod_name, _ in pkgutil.iter_modules([PACKAGE_PATH]):
  2182. 41 | if not mod_name.endswith('utils'):
  2183. |
  2184. = help: Rewrite `ignore` as a `def`
  2185.  
  2186.  
  2187. _________________________________ test session _________________________________
  2188. File would be reformatted
  2189. ----------------------------- Captured stdout call -----------------------------
  2190. Would reformat: docs/conf.py
  2191. ______________________________ misc/bench_omd.py _______________________________
  2192. 6: error: Cannot find implementation or library stub for module named "lithoxyl" [import-not-found]
  2193. 9: error: Cannot find implementation or library stub for module named "dictutils" [import-not-found]
  2194. 19: error: No overload variant of "range" matches argument type "float" [call-overload]
  2195. 19: note: Possible overload variants:
  2196. 19: note: def __new__(cls, SupportsIndex, /) -> range
  2197. 19: note: def __new__(cls, SupportsIndex, SupportsIndex, SupportsIndex = ..., /) -> range
  2198. 32: error: Incompatible types in assignment (expression has type "tuple[Any, Any, Any, type[MultiDict[Any, Any]]]", variable has type "tuple[Any, Any]") [assignment]
  2199. _________________________________ test session _________________________________
  2200. misc/bench_omd.py:5:8: F401 [*] `time` imported but unused
  2201. |
  2202. 3 | sys.path.append('/home/mahmoud/projects/lithoxyl/')
  2203. 4 |
  2204. 5 | import time
  2205. | ^^^^ F401
  2206. 6 | import lithoxyl
  2207. 7 | from lithoxyl import sinks, logger
  2208. |
  2209. = help: Remove unused import: `time`
  2210.  
  2211. misc/bench_omd.py:7:22: F401 [*] `lithoxyl.sinks` imported but unused
  2212. |
  2213. 5 | import time
  2214. 6 | import lithoxyl
  2215. 7 | from lithoxyl import sinks, logger
  2216. | ^^^^^ F401
  2217. 8 |
  2218. 9 | from dictutils import OMD, FastIterOrderedMultiDict
  2219. |
  2220. = help: Remove unused import
  2221.  
  2222. misc/bench_omd.py:7:29: F401 [*] `lithoxyl.logger` imported but unused
  2223. |
  2224. 5 | import time
  2225. 6 | import lithoxyl
  2226. 7 | from lithoxyl import sinks, logger
  2227. | ^^^^^^ F401
  2228. 8 |
  2229. 9 | from dictutils import OMD, FastIterOrderedMultiDict
  2230. |
  2231. = help: Remove unused import
  2232.  
  2233.  
  2234. _________________________________ test session _________________________________
  2235. File would be reformatted
  2236. ----------------------------- Captured stdout call -----------------------------
  2237. Would reformat: misc/bench_omd.py
  2238. _________________________________ test session _________________________________
  2239. File would be reformatted
  2240. ----------------------------- Captured stdout call -----------------------------
  2241. Would reformat: misc/linkify_changelog.py
  2242. ____________________________ misc/table_html_app.py ____________________________
  2243. 4: error: Cannot find implementation or library stub for module named "clastic" [import-not-found]
  2244. 6: error: Cannot find implementation or library stub for module named "clastic.render" [import-not-found]
  2245. 7: error: Cannot find implementation or library stub for module named "clastic.middleware" [import-not-found]
  2246. 9: error: Cannot find implementation or library stub for module named "clastic.sinter" [import-not-found]
  2247. 22: error: Cannot find implementation or library stub for module named "urllib2" [import-not-found]
  2248. _________________________________ test session _________________________________
  2249. misc/table_html_app.py:44:9: E722 Do not use bare `except`
  2250. |
  2251. 42 | try:
  2252. 43 | func_name = route.endpoint.func_name
  2253. 44 | except:
  2254. | ^^^^^^ E722
  2255. 45 | func_name = repr(route.endpoint)
  2256. 46 | args, _, _, _ = getargspec(route.endpoint)
  2257. |
  2258.  
  2259. misc/table_html_app.py:156:5: F841 Local variable `atr` is assigned to but never used
  2260. |
  2261. 154 | rsc = {'data': _DATA}
  2262. 155 | gpm = GetParamMiddleware('url')
  2263. 156 | atr = AutoTableRenderer(max_depth=5)
  2264. | ^^^ F841
  2265. 157 | render_basic = BasicRender()
  2266. 158 | app = Application([('/', ident_ep, render_basic),
  2267. |
  2268. = help: Remove assignment to unused variable `atr`
  2269.  
  2270.  
  2271. _________________________________ test session _________________________________
  2272. File would be reformatted
  2273. ----------------------------- Captured stdout call -----------------------------
  2274. Would reformat: misc/table_html_app.py
  2275. _________________________________ test session _________________________________
  2276. File would be reformatted
  2277. ----------------------------- Captured stdout call -----------------------------
  2278. Would reformat: tests/conftest.py
  2279. _________________________________ test session _________________________________
  2280. tests/test_cacheutils.py:2:8: F401 [*] `sys` imported but unused
  2281. |
  2282. 1 | import string
  2283. 2 | import sys
  2284. | ^^^ F401
  2285. 3 | from abc import abstractmethod, ABCMeta
  2286. |
  2287. = help: Remove unused import: `sys`
  2288.  
  2289. tests/test_cacheutils.py:279:5: E731 Do not assign a `lambda` expression, use a `def`
  2290. |
  2291. 277 | def test_callable_cached_dec():
  2292. 278 | lru = LRU()
  2293. 279 | get_lru = lambda: lru
  2294. | ^^^^^^^^^^^^^^^^^^^^^ E731
  2295. 280 |
  2296. 281 | inner_func = CountingCallable()
  2297. |
  2298. = help: Rewrite `get_lru` as a `def`
  2299.  
  2300. tests/test_cacheutils.py:426:12: F811 [*] Redefinition of unused `sys` from line 2
  2301. |
  2302. 425 | def test_min_id_map():
  2303. 426 | import sys
  2304. | ^^^ F811
  2305. 427 | if '__pypy__' in sys.builtin_module_names:
  2306. 428 | return # TODO: pypy still needs some work
  2307. |
  2308. = help: Remove definition: `sys`
  2309.  
  2310.  
  2311. _________________________________ test session _________________________________
  2312. File would be reformatted
  2313. ----------------------------- Captured stdout call -----------------------------
  2314. Would reformat: tests/test_cacheutils.py
  2315. _________________________________ test session _________________________________
  2316. File would be reformatted
  2317. ----------------------------- Captured stdout call -----------------------------
  2318. Would reformat: tests/test_debugutils_trace.py
  2319. _________________________________ test session _________________________________
  2320. tests/test_dictutils.py:311:1: E402 Module level import not at top of file
  2321. |
  2322. 309 | ## END OMD TESTS
  2323. 310 |
  2324. 311 | import string
  2325. | ^^^^^^^^^^^^^ E402
  2326. 312 |
  2327. 313 | def test_subdict():
  2328. |
  2329.  
  2330. tests/test_dictutils.py:540:20: E712 Avoid equality comparisons to `False`; use `if not attrname:` for false checks
  2331. |
  2332. 539 | if getattr(FrozenDict, attrname) == getattr(dict, attrname, None) and attrname not in through_methods:
  2333. 540 | assert attrname == False
  2334. | ^^^^^^^^^^^^^^^^^ E712
  2335. 541 | ret.append(attrname)
  2336. |
  2337. = help: Replace with `not attrname`
  2338.  
  2339.  
  2340. _________________________________ test session _________________________________
  2341. File would be reformatted
  2342. ----------------------------- Captured stdout call -----------------------------
  2343. Would reformat: tests/test_dictutils.py
  2344. _________________________________ test session _________________________________
  2345. File would be reformatted
  2346. ----------------------------- Captured stdout call -----------------------------
  2347. Would reformat: tests/test_ecoutils.py
  2348. _________________________________ test session _________________________________
  2349. File would be reformatted
  2350. ----------------------------- Captured stdout call -----------------------------
  2351. Would reformat: tests/test_fileutils.py
  2352. __________________________ tests/test_formatutils.py ___________________________
  2353. 11: error: First argument to namedtuple() should be "PFAT", not "PositionalFormatArgTest" [name-match]
  2354. _________________________________ test session _________________________________
  2355. tests/test_formatutils.py:35:5: F841 Local variable `results` is assigned to but never used
  2356. |
  2357. 34 | def test_get_fstr_args():
  2358. 35 | results = []
  2359. | ^^^^^^^ F841
  2360. 36 | for t in _TEST_TMPLS:
  2361. 37 | inferred_t = infer_positional_format_args(t)
  2362. |
  2363. = help: Remove assignment to unused variable `results`
  2364.  
  2365.  
  2366. _________________________________ test session _________________________________
  2367. File would be reformatted
  2368. ----------------------------- Captured stdout call -----------------------------
  2369. Would reformat: tests/test_formatutils.py
  2370. _________________________________ test session _________________________________
  2371. File would be reformatted
  2372. ----------------------------- Captured stdout call -----------------------------
  2373. Would reformat: tests/test_funcutils.py
  2374. _________________________________ test session _________________________________
  2375. File would be reformatted
  2376. ----------------------------- Captured stdout call -----------------------------
  2377. Would reformat: tests/test_funcutils_fb.py
  2378. ________________________ tests/test_funcutils_fb_py3.py ________________________
  2379. 34: error: Incompatible default for argument "c" (default has type "tuple[()]", argument has type "defaultdict[Any, Any]") [assignment]
  2380. 35: error: Incompatible return value type (got "tuple[int, float, defaultdict[Any, Any]]", expected "defaultdict[Any, Any]") [return-value]
  2381. _________________________________ test session _________________________________
  2382. tests/test_funcutils_fb_py3.py:62:5: E731 Do not assign a `lambda` expression, use a `def`
  2383. |
  2384. 60 | def test_copy_function_kw_defaults_py3():
  2385. 61 | # test that the copy works with keyword-only defaults
  2386. 62 | f = lambda x, *, y=2: x * y
  2387. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2388. 63 | f_copy = copy_function(f)
  2389. 64 | assert f(21) == f_copy(21) == 42
  2390. |
  2391. = help: Rewrite `f` as a `def`
  2392.  
  2393.  
  2394. _________________________________ test session _________________________________
  2395. File would be reformatted
  2396. ----------------------------- Captured stdout call -----------------------------
  2397. Would reformat: tests/test_funcutils_fb_py3.py
  2398. _________________________________ test session _________________________________
  2399. tests/test_gcutils.py:14:9: F841 Local variable `tt` is assigned to but never used
  2400. |
  2401. 12 | pass
  2402. 13 |
  2403. 14 | tt = TestType()
  2404. | ^^ F841
  2405. 15 |
  2406. 16 | assert len(get_all(TestType)) == 1
  2407. |
  2408. = help: Remove assignment to unused variable `tt`
  2409.  
  2410. tests/test_gcutils.py:29:9: F841 Local variable `x` is assigned to but never used
  2411. |
  2412. 28 | start = time.time()
  2413. 29 | x = [{} for x in range(COUNT)]
  2414. | ^ F841
  2415. 30 | with_gc_time = time.time() - start
  2416. |
  2417. = help: Remove assignment to unused variable `x`
  2418.  
  2419. tests/test_gcutils.py:32:9: F841 Local variable `time_diff` is assigned to but never used
  2420. |
  2421. 30 | with_gc_time = time.time() - start
  2422. 31 |
  2423. 32 | time_diff = no_gc_time < with_gc_time
  2424. | ^^^^^^^^^ F841
  2425. |
  2426. = help: Remove assignment to unused variable `time_diff`
  2427.  
  2428.  
  2429. _________________________________ test session _________________________________
  2430. File would be reformatted
  2431. ----------------------------- Captured stdout call -----------------------------
  2432. Would reformat: tests/test_gcutils.py
  2433. _________________________________ test session _________________________________
  2434. File would be reformatted
  2435. ----------------------------- Captured stdout call -----------------------------
  2436. Would reformat: tests/test_ioutils.py
  2437. _________________________________ test session _________________________________
  2438. tests/test_iterutils.py:20:1: E731 Do not assign a `lambda` expression, use a `def`
  2439. |
  2440. 18 | CUR_PATH = os.path.abspath(__file__)
  2441. 19 |
  2442. 20 | isbool = lambda x: isinstance(x, bool)
  2443. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2444. 21 | isint = lambda x: isinstance(x, int)
  2445. 22 | odd = lambda x: isint(x) and x % 2 != 0
  2446. |
  2447. = help: Rewrite `isbool` as a `def`
  2448.  
  2449. tests/test_iterutils.py:21:1: E731 Do not assign a `lambda` expression, use a `def`
  2450. |
  2451. 20 | isbool = lambda x: isinstance(x, bool)
  2452. 21 | isint = lambda x: isinstance(x, int)
  2453. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2454. 22 | odd = lambda x: isint(x) and x % 2 != 0
  2455. 23 | even = lambda x: isint(x) and x % 2 == 0
  2456. |
  2457. = help: Rewrite `isint` as a `def`
  2458.  
  2459. tests/test_iterutils.py:22:1: E731 Do not assign a `lambda` expression, use a `def`
  2460. |
  2461. 20 | isbool = lambda x: isinstance(x, bool)
  2462. 21 | isint = lambda x: isinstance(x, int)
  2463. 22 | odd = lambda x: isint(x) and x % 2 != 0
  2464. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2465. 23 | even = lambda x: isint(x) and x % 2 == 0
  2466. 24 | is_meaning_of_life = lambda x: x == 42
  2467. |
  2468. = help: Rewrite `odd` as a `def`
  2469.  
  2470. tests/test_iterutils.py:23:1: E731 Do not assign a `lambda` expression, use a `def`
  2471. |
  2472. 21 | isint = lambda x: isinstance(x, int)
  2473. 22 | odd = lambda x: isint(x) and x % 2 != 0
  2474. 23 | even = lambda x: isint(x) and x % 2 == 0
  2475. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2476. 24 | is_meaning_of_life = lambda x: x == 42
  2477. |
  2478. = help: Rewrite `even` as a `def`
  2479.  
  2480. tests/test_iterutils.py:24:1: E731 Do not assign a `lambda` expression, use a `def`
  2481. |
  2482. 22 | odd = lambda x: isint(x) and x % 2 != 0
  2483. 23 | even = lambda x: isint(x) and x % 2 == 0
  2484. 24 | is_meaning_of_life = lambda x: x == 42
  2485. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2486. |
  2487. = help: Rewrite `is_meaning_of_life` as a `def`
  2488.  
  2489. tests/test_iterutils.py:33:9: E741 Ambiguous variable name: `l`
  2490. |
  2491. 31 | """
  2492. 32 | s = set()
  2493. 33 | l = []
  2494. | ^ E741
  2495. 34 | assert first(s) is None
  2496. 35 | assert first(l) is None
  2497. |
  2498.  
  2499. tests/test_iterutils.py:42:9: E741 Ambiguous variable name: `l`
  2500. |
  2501. 40 | """
  2502. 41 | s = set()
  2503. 42 | l = []
  2504. | ^ E741
  2505. 43 | assert first(s, default=42) == 42
  2506. 44 | assert first(l, default=3.14) == 3.14
  2507. |
  2508.  
  2509. tests/test_iterutils.py:46:9: E741 Ambiguous variable name: `l`
  2510. |
  2511. 44 | assert first(l, default=3.14) == 3.14
  2512. 45 |
  2513. 46 | l = [0, False, []]
  2514. | ^ E741
  2515. 47 | assert first(l, default=3.14) == 3.14
  2516. |
  2517.  
  2518. tests/test_iterutils.py:53:9: E741 Ambiguous variable name: `l`
  2519. |
  2520. 51 | Success cases with and without a key function.
  2521. 52 | """
  2522. 53 | l = [(), 0, False, 3, []]
  2523. | ^ E741
  2524. 54 |
  2525. 55 | assert first(l, default=42) == 3
  2526. |
  2527.  
  2528. tests/test_iterutils.py:200:9: E731 Do not assign a `lambda` expression, use a `def`
  2529. |
  2530. 198 | def test_reraise_visit(self):
  2531. 199 | root = {'A': 'b', 1: 2}
  2532. 200 | key_to_lower = lambda p, k, v: (k.lower(), v)
  2533. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2534. 201 | with pytest.raises(AttributeError):
  2535. 202 | remap(root, key_to_lower)
  2536. |
  2537. = help: Rewrite `key_to_lower` as a `def`
  2538.  
  2539. tests/test_iterutils.py:211:9: E731 Do not assign a `lambda` expression, use a `def`
  2540. |
  2541. 209 | orig = {'a': 1, 'b': None, 'c': [3, None, 4, None]}
  2542. 210 | ref = {'a': 1, 'c': [3, 4]}
  2543. 211 | drop_none = lambda p, k, v: v is not None
  2544. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2545. 212 | remapped = remap(orig, visit=drop_none)
  2546. 213 | assert remapped == ref
  2547. |
  2548. = help: Rewrite `drop_none` as a `def`
  2549.  
  2550. tests/test_iterutils.py:272:13: E722 Do not use bare `except`
  2551. |
  2552. 270 | try:
  2553. 271 | all_interests.update(value['interests'])
  2554. 272 | except:
  2555. | ^^^^^^ E722
  2556. 273 | pass
  2557. 274 | return default_enter(path, key, value)
  2558. |
  2559.  
  2560. tests/test_iterutils.py:296:13: E722 Do not use bare `except`
  2561. |
  2562. 294 | try:
  2563. 295 | ret['review_length'] = len(ret['review'])
  2564. 296 | except:
  2565. | ^^^^^^ E722
  2566. 297 | pass
  2567. 298 | return ret
  2568. |
  2569.  
  2570. tests/test_iterutils.py:328:13: E722 Do not use bare `except`
  2571. |
  2572. 326 | new_parent.update(base_obj)
  2573. 327 | base_obj['id'] += 1
  2574. 328 | except:
  2575. | ^^^^^^ E722
  2576. 329 | pass
  2577. 330 | return new_parent, new_items
  2578. |
  2579.  
  2580.  
  2581. _________________________________ test session _________________________________
  2582. File would be reformatted
  2583. ----------------------------- Captured stdout call -----------------------------
  2584. Would reformat: tests/test_iterutils.py
  2585. _________________________________ test session _________________________________
  2586. File would be reformatted
  2587. ----------------------------- Captured stdout call -----------------------------
  2588. Would reformat: tests/test_jsonutils.py
  2589. _________________________________ test session _________________________________
  2590. tests/test_listutils.py:1:8: F401 [*] `sys` imported but unused
  2591. |
  2592. 1 | import sys
  2593. | ^^^ F401
  2594. 2 |
  2595. 3 | from boltons.listutils import SplayList, BarrelList
  2596. |
  2597. = help: Remove unused import: `sys`
  2598.  
  2599. tests/test_listutils.py:121:25: F841 [*] Local variable `e` is assigned to but never used
  2600. |
  2601. 119 | try:
  2602. 120 | tune() # main()
  2603. 121 | except Exception as e:
  2604. | ^ F841
  2605. 122 | import pdb;pdb.post_mortem()
  2606. 123 | raise
  2607. |
  2608. = help: Remove assignment to unused variable `e`
  2609.  
  2610. tests/test_listutils.py:122:19: E702 Multiple statements on one line (semicolon)
  2611. |
  2612. 120 | tune() # main()
  2613. 121 | except Exception as e:
  2614. 122 | import pdb;pdb.post_mortem()
  2615. | ^ E702
  2616. 123 | raise
  2617. |
  2618.  
  2619.  
  2620. _________________________________ test session _________________________________
  2621. File would be reformatted
  2622. ----------------------------- Captured stdout call -----------------------------
  2623. Would reformat: tests/test_listutils.py
  2624. _________________________________ test session _________________________________
  2625. File would be reformatted
  2626. ----------------------------- Captured stdout call -----------------------------
  2627. Would reformat: tests/test_mathutils.py
  2628. _________________________________ test session _________________________________
  2629. File would be reformatted
  2630. ----------------------------- Captured stdout call -----------------------------
  2631. Would reformat: tests/test_namedutils.py
  2632. _________________________________ test session _________________________________
  2633. File would be reformatted
  2634. ----------------------------- Captured stdout call -----------------------------
  2635. Would reformat: tests/test_queueutils.py
  2636. _________________________________ test session _________________________________
  2637. tests/test_setutils.py:137:37: E701 Multiple statements on one line (colon)
  2638. |
  2639. 135 | cab.add(complement(frozenset())) # frozen complement can be a member of complement set
  2640. 136 | assert len({complement(frozenset()): 1, complement(frozenset()): 2}) == 1 # hash works
  2641. 137 | with raises(NotImplementedError): cab.pop()
  2642. | ^ E701
  2643. 138 | with raises(NotImplementedError): len(cab)
  2644. 139 | with raises(NotImplementedError): iter(cab)
  2645. |
  2646.  
  2647. tests/test_setutils.py:138:37: E701 Multiple statements on one line (colon)
  2648. |
  2649. 136 | assert len({complement(frozenset()): 1, complement(frozenset()): 2}) == 1 # hash works
  2650. 137 | with raises(NotImplementedError): cab.pop()
  2651. 138 | with raises(NotImplementedError): len(cab)
  2652. | ^ E701
  2653. 139 | with raises(NotImplementedError): iter(cab)
  2654. 140 | ~cab
  2655. |
  2656.  
  2657. tests/test_setutils.py:139:37: E701 Multiple statements on one line (colon)
  2658. |
  2659. 137 | with raises(NotImplementedError): cab.pop()
  2660. 138 | with raises(NotImplementedError): len(cab)
  2661. 139 | with raises(NotImplementedError): iter(cab)
  2662. | ^ E701
  2663. 140 | ~cab
  2664. 141 | cab.complement()
  2665. |
  2666.  
  2667. tests/test_setutils.py:153:15: E702 Multiple statements on one line (semicolon)
  2668. |
  2669. 151 | ops = OpOverloader()
  2670. 152 | def opsmash(a, b):
  2671. 153 | a &= b; a |= b; a -= b; a ^= b
  2672. | ^ E702
  2673. 154 | a > b; a >= b; a < b; a <= b
  2674. 155 | return (((a & b) | b) - b) ^ b
  2675. |
  2676.  
  2677. tests/test_setutils.py:153:23: E702 Multiple statements on one line (semicolon)
  2678. |
  2679. 151 | ops = OpOverloader()
  2680. 152 | def opsmash(a, b):
  2681. 153 | a &= b; a |= b; a -= b; a ^= b
  2682. | ^ E702
  2683. 154 | a > b; a >= b; a < b; a <= b
  2684. 155 | return (((a & b) | b) - b) ^ b
  2685. |
  2686.  
  2687. tests/test_setutils.py:153:31: E702 Multiple statements on one line (semicolon)
  2688. |
  2689. 151 | ops = OpOverloader()
  2690. 152 | def opsmash(a, b):
  2691. 153 | a &= b; a |= b; a -= b; a ^= b
  2692. | ^ E702
  2693. 154 | a > b; a >= b; a < b; a <= b
  2694. 155 | return (((a & b) | b) - b) ^ b
  2695. |
  2696.  
  2697. tests/test_setutils.py:154:14: E702 Multiple statements on one line (semicolon)
  2698. |
  2699. 152 | def opsmash(a, b):
  2700. 153 | a &= b; a |= b; a -= b; a ^= b
  2701. 154 | a > b; a >= b; a < b; a <= b
  2702. | ^ E702
  2703. 155 | return (((a & b) | b) - b) ^ b
  2704. |
  2705.  
  2706. tests/test_setutils.py:154:22: E702 Multiple statements on one line (semicolon)
  2707. |
  2708. 152 | def opsmash(a, b):
  2709. 153 | a &= b; a |= b; a -= b; a ^= b
  2710. 154 | a > b; a >= b; a < b; a <= b
  2711. | ^ E702
  2712. 155 | return (((a & b) | b) - b) ^ b
  2713. |
  2714.  
  2715. tests/test_setutils.py:154:29: E702 Multiple statements on one line (semicolon)
  2716. |
  2717. 152 | def opsmash(a, b):
  2718. 153 | a &= b; a |= b; a -= b; a ^= b
  2719. 154 | a > b; a >= b; a < b; a <= b
  2720. | ^ E702
  2721. 155 | return (((a & b) | b) - b) ^ b
  2722. |
  2723.  
  2724. tests/test_setutils.py:157:27: E701 Multiple statements on one line (colon)
  2725. |
  2726. 155 | return (((a & b) | b) - b) ^ b
  2727. 156 |
  2728. 157 | with raises(TypeError): opsmash(cab, object())
  2729. | ^ E701
  2730. 158 | assert opsmash(ops, cab) == ops
  2731. 159 | assert opsmash(cab, ops) == ops
  2732. |
  2733.  
  2734.  
  2735. _________________________________ test session _________________________________
  2736. File would be reformatted
  2737. ----------------------------- Captured stdout call -----------------------------
  2738. Would reformat: tests/test_setutils.py
  2739. _________________________________ test session _________________________________
  2740. tests/test_socketutils.py:282:5: E731 Do not assign a `lambda` expression, use a `def`
  2741. |
  2742. 280 | server_socket.listen(100)
  2743. 281 | ip, port = server_socket.getsockname()
  2744. 282 | start_server = lambda: netstring_server(server_socket)
  2745. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2746. 283 | threading.Thread(target=start_server).start()
  2747. |
  2748. = help: Rewrite `start_server` as a `def`
  2749.  
  2750. tests/test_socketutils.py:409:5: E731 Do not assign a `lambda` expression, use a `def`
  2751. |
  2752. 407 | server_socket.listen(100)
  2753. 408 | ip, port = server_socket.getsockname()
  2754. 409 | start_server = lambda: netstring_server_timeout_override(server_socket)
  2755. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
  2756. 410 | threading.Thread(target=start_server).start()
  2757. |
  2758. = help: Rewrite `start_server` as a `def`
  2759.  
  2760.  
  2761. _________________________________ test session _________________________________
  2762. File would be reformatted
  2763. ----------------------------- Captured stdout call -----------------------------
  2764. Would reformat: tests/test_socketutils.py
  2765. ___________________________ tests/test_statsutils.py ___________________________
  2766. 16: error: Cannot find implementation or library stub for module named "statsutils" [import-not-found]
  2767. _________________________________ test session _________________________________
  2768. File would be reformatted
  2769. ----------------------------- Captured stdout call -----------------------------
  2770. Would reformat: tests/test_statsutils.py
  2771. ______________________ tests/test_statsutils_histogram.py ______________________
  2772. 27: error: Need type annotation for "EMPTY_DATA" (hint: "EMPTY_DATA: list[<type>] = ...") [var-annotated]
  2773. _________________________________ test session _________________________________
  2774. File would be reformatted
  2775. ----------------------------- Captured stdout call -----------------------------
  2776. Would reformat: tests/test_statsutils_histogram.py
  2777. _________________________________ test session _________________________________
  2778. tests/test_strutils.py:54:12: E712 Avoid equality comparisons to `True`; use `if strutils.is_uuid(uuid.uuid4()):` for truth checks
  2779. |
  2780. 53 | def test_is_uuid():
  2781. 54 | assert strutils.is_uuid(uuid.uuid4()) == True
  2782. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  2783. 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
  2784. 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
  2785. |
  2786. = help: Replace with `strutils.is_uuid(uuid.uuid4())`
  2787.  
  2788. tests/test_strutils.py:55:12: E712 Avoid equality comparisons to `False`; use `if not strutils.is_uuid(uuid.uuid4(), version=1):` for false checks
  2789. |
  2790. 53 | def test_is_uuid():
  2791. 54 | assert strutils.is_uuid(uuid.uuid4()) == True
  2792. 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
  2793. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  2794. 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
  2795. 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
  2796. |
  2797. = help: Replace with `not strutils.is_uuid(uuid.uuid4(), version=1)`
  2798.  
  2799. tests/test_strutils.py:56:12: E712 Avoid equality comparisons to `True`; use `if strutils.is_uuid(str(uuid.uuid4())):` for truth checks
  2800. |
  2801. 54 | assert strutils.is_uuid(uuid.uuid4()) == True
  2802. 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
  2803. 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
  2804. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  2805. 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
  2806. 58 | assert strutils.is_uuid(set('garbage')) == False
  2807. |
  2808. = help: Replace with `strutils.is_uuid(str(uuid.uuid4()))`
  2809.  
  2810. tests/test_strutils.py:57:12: E712 Avoid equality comparisons to `False`; use `if not strutils.is_uuid(str(uuid.uuid4()), version=1):` for false checks
  2811. |
  2812. 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
  2813. 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
  2814. 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
  2815. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  2816. 58 | assert strutils.is_uuid(set('garbage')) == False
  2817. |
  2818. = help: Replace with `not strutils.is_uuid(str(uuid.uuid4()), version=1)`
  2819.  
  2820. tests/test_strutils.py:58:12: E712 Avoid equality comparisons to `False`; use `if not strutils.is_uuid(set('garbage')):` for false checks
  2821. |
  2822. 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
  2823. 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
  2824. 58 | assert strutils.is_uuid(set('garbage')) == False
  2825. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  2826. |
  2827. = help: Replace with `not strutils.is_uuid(set('garbage'))`
  2828.  
  2829.  
  2830. _________________________________ test session _________________________________
  2831. File would be reformatted
  2832. ----------------------------- Captured stdout call -----------------------------
  2833. Would reformat: tests/test_strutils.py
  2834. _________________________________ test session _________________________________
  2835. File would be reformatted
  2836. ----------------------------- Captured stdout call -----------------------------
  2837. Would reformat: tests/test_tableutils.py
  2838. _________________________________ test session _________________________________
  2839. tests/test_tbutils.py:29:5: E722 Do not use bare `except`
  2840. |
  2841. 27 | try:
  2842. 28 | test()
  2843. 29 | except:
  2844. | ^^^^^^ E722
  2845. 30 | exc, _, exc_traceback = sys.exc_info()
  2846. 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
  2847. |
  2848.  
  2849. tests/test_tbutils.py:32:9: F841 Local variable `exc_info` is assigned to but never used
  2850. |
  2851. 30 | exc, _, exc_traceback = sys.exc_info()
  2852. 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
  2853. 32 | exc_info = ExceptionInfo.from_exc_info(*sys.exc_info())
  2854. | ^^^^^^^^ F841
  2855. 33 | exc_info2 = ExceptionInfo.from_current()
  2856. 34 | tbi_str = str(tbi)
  2857. |
  2858. = help: Remove assignment to unused variable `exc_info`
  2859.  
  2860. tests/test_tbutils.py:33:9: F841 Local variable `exc_info2` is assigned to but never used
  2861. |
  2862. 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
  2863. 32 | exc_info = ExceptionInfo.from_exc_info(*sys.exc_info())
  2864. 33 | exc_info2 = ExceptionInfo.from_current()
  2865. | ^^^^^^^^^ F841
  2866. 34 | tbi_str = str(tbi)
  2867. 35 | print_exception(*sys.exc_info(), file=fake_stderr2)
  2868. |
  2869. = help: Remove assignment to unused variable `exc_info2`
  2870.  
  2871. tests/test_tbutils.py:66:9: F841 Local variable `x` is assigned to but never used
  2872. |
  2873. 64 | return func2()
  2874. 65 | def func2():
  2875. 66 | x = 5
  2876. | ^ F841
  2877. 67 | return func3()
  2878. 68 | def func3():
  2879. |
  2880. = help: Remove assignment to unused variable `x`
  2881.  
  2882. tests/test_tbutils.py:84:9: F841 Local variable `a` is assigned to but never used
  2883. |
  2884. 83 | def func_a():
  2885. 84 | a = 1
  2886. | ^ F841
  2887. 85 | raise Exception('func_a exception')
  2888. 86 | def func_b():
  2889. |
  2890. = help: Remove assignment to unused variable `a`
  2891.  
  2892. tests/test_tbutils.py:87:9: F841 Local variable `b` is assigned to but never used
  2893. |
  2894. 85 | raise Exception('func_a exception')
  2895. 86 | def func_b():
  2896. 87 | b = 2
  2897. | ^ F841
  2898. 88 | return func_a()
  2899. 89 | def func_c():
  2900. |
  2901. = help: Remove assignment to unused variable `b`
  2902.  
  2903. tests/test_tbutils.py:90:9: F841 Local variable `c` is assigned to but never used
  2904. |
  2905. 88 | return func_a()
  2906. 89 | def func_c():
  2907. 90 | c = 3
  2908. | ^ F841
  2909. 91 | return func_b()
  2910. |
  2911. = help: Remove assignment to unused variable `c`
  2912.  
  2913. tests/test_tbutils.py:95:25: F841 [*] Local variable `e` is assigned to but never used
  2914. |
  2915. 93 | try:
  2916. 94 | func_c()
  2917. 95 | except Exception as e:
  2918. | ^ F841
  2919. 96 | ctx_ei = ContextualExceptionInfo.from_current()
  2920. 97 | ctx_ei_str = ctx_ei.get_formatted()
  2921. |
  2922. = help: Remove assignment to unused variable `e`
  2923.  
  2924.  
  2925. _________________________________ test session _________________________________
  2926. File would be reformatted
  2927. ----------------------------- Captured stdout call -----------------------------
  2928. Would reformat: tests/test_tbutils.py
  2929. _________________________________ test session _________________________________
  2930. File would be reformatted
  2931. ----------------------------- Captured stdout call -----------------------------
  2932. Would reformat: tests/test_tbutils_parsed_exc.py
  2933. _________________________________ test session _________________________________
  2934. File would be reformatted
  2935. ----------------------------- Captured stdout call -----------------------------
  2936. Would reformat: tests/test_timeutils.py
  2937. _________________________________ test session _________________________________
  2938. File would be reformatted
  2939. ----------------------------- Captured stdout call -----------------------------
  2940. Would reformat: tests/test_typeutils.py
  2941. _________________________________ test session _________________________________
  2942. File would be reformatted
  2943. ----------------------------- Captured stdout call -----------------------------
  2944. Would reformat: tests/test_urlutils.py
  2945. =============================== warnings summary ===============================
  2946. tests/conftest.py:8
  2947. /home/usernameedited/.cache/yay/python-boltons/src/boltons/tests/conftest.py:8: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path)
  2948. see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
  2949. def pytest_ignore_collect(path, config):
  2950.  
  2951. -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
  2952.  
  2953. ---------- coverage: platform linux, python 3.13.1-final-0 -----------
  2954. Name Stmts Miss Cover
  2955. --------------------------------------------------------
  2956. boltons/__init__.py 0 0 100%
  2957. boltons/cacheutils.py 410 42 90%
  2958. boltons/debugutils.py 147 39 73%
  2959. boltons/dictutils.py 553 127 77%
  2960. boltons/ecoutils.py 186 71 62%
  2961. boltons/fileutils.py 358 217 39%
  2962. boltons/formatutils.py 150 25 83%
  2963. boltons/funcutils.py 360 89 75%
  2964. boltons/gcutils.py 33 5 85%
  2965. boltons/ioutils.py 330 24 93%
  2966. boltons/iterutils.py 545 208 62%
  2967. boltons/jsonutils.py 136 64 53%
  2968. boltons/listutils.py 212 74 65%
  2969. boltons/mathutils.py 113 17 85%
  2970. boltons/namedutils.py 104 22 79%
  2971. boltons/queueutils.py 86 17 80%
  2972. boltons/setutils.py 591 224 62%
  2973. boltons/socketutils.py 313 49 84%
  2974. boltons/statsutils.py 280 103 63%
  2975. boltons/strutils.py 382 187 51%
  2976. boltons/tableutils.py 285 78 73%
  2977. boltons/tbutils.py 360 85 76%
  2978. boltons/timeutils.py 178 85 52%
  2979. boltons/typeutils.py 52 23 56%
  2980. boltons/urlutils.py 708 287 59%
  2981. tests/__init__.py 0 0 100%
  2982. tests/conftest.py 15 1 93%
  2983. tests/test_cacheutils.py 308 9 97%
  2984. tests/test_debugutils_trace.py 55 0 100%
  2985. tests/test_dictutils.py 381 4 99%
  2986. tests/test_ecoutils.py 8 0 100%
  2987. tests/test_fileutils.py 62 0 100%
  2988. tests/test_formatutils.py 43 0 100%
  2989. tests/test_funcutils.py 55 0 100%
  2990. tests/test_funcutils_fb.py 191 19 90%
  2991. tests/test_funcutils_fb_py3.py 156 13 92%
  2992. tests/test_gcutils.py 21 0 100%
  2993. tests/test_ioutils.py 325 6 98%
  2994. tests/test_iterutils.py 366 1 99%
  2995. tests/test_jsonutils.py 26 0 100%
  2996. tests/test_listutils.py 72 28 61%
  2997. tests/test_mathutils.py 73 0 100%
  2998. tests/test_namedutils.py 17 0 100%
  2999. tests/test_queueutils.py 38 1 97%
  3000. tests/test_setutils.py 160 14 91%
  3001. tests/test_socketutils.py 301 24 92%
  3002. tests/test_statsutils.py 19 9 53%
  3003. tests/test_statsutils_histogram.py 34 2 94%
  3004. tests/test_strutils.py 68 0 100%
  3005. tests/test_tableutils.py 26 0 100%
  3006. tests/test_tbutils.py 74 3 96%
  3007. tests/test_tbutils_parsed_exc.py 26 0 100%
  3008. tests/test_timeutils.py 39 0 100%
  3009. tests/test_typeutils.py 12 0 100%
  3010. tests/test_urlutils.py 214 5 98%
  3011. --------------------------------------------------------
  3012. TOTAL 10057 2301 77%
  3013.  
  3014. ===================================== mypy =====================================
  3015. Found 34 errors in 16 files (checked 64 source files)
  3016. =========================== short test summary info ============================
  3017. FAILED boltons/__init__.py::mypy-status
  3018. FAILED boltons/cacheutils.py::mypy
  3019. FAILED boltons/cacheutils.py::ruff::format
  3020. FAILED boltons/debugutils.py::ruff
  3021. FAILED boltons/debugutils.py::ruff::format
  3022. FAILED boltons/deprutils.py::ruff::format
  3023. FAILED boltons/dictutils.py::mypy
  3024. FAILED boltons/dictutils.py::ruff
  3025. FAILED boltons/dictutils.py::ruff::format
  3026. FAILED boltons/easterutils.py::ruff::format
  3027. FAILED boltons/ecoutils.py::mypy
  3028. FAILED boltons/ecoutils.py::ruff
  3029. FAILED boltons/ecoutils.py::ruff::format
  3030. FAILED boltons/excutils.py::ruff
  3031. FAILED boltons/excutils.py::ruff::format
  3032. FAILED boltons/fileutils.py::mypy
  3033. FAILED boltons/fileutils.py::ruff::format
  3034. FAILED boltons/formatutils.py::ruff::format
  3035. FAILED boltons/funcutils.py::ruff
  3036. FAILED boltons/funcutils.py::ruff::format
  3037. FAILED boltons/gcutils.py::ruff::format
  3038. FAILED boltons/ioutils.py::ruff::format
  3039. FAILED boltons/iterutils.py::mypy
  3040. FAILED boltons/iterutils.py::ruff
  3041. FAILED boltons/iterutils.py::ruff::format
  3042. FAILED boltons/jsonutils.py::ruff::format
  3043. FAILED boltons/listutils.py::ruff
  3044. FAILED boltons/listutils.py::ruff::format
  3045. FAILED boltons/mathutils.py::ruff::format
  3046. FAILED boltons/mboxutils.py::ruff::format
  3047. FAILED boltons/namedutils.py::ruff::format
  3048. FAILED boltons/pathutils.py::ruff::format
  3049. FAILED boltons/queueutils.py::mypy
  3050. FAILED boltons/queueutils.py::ruff::format
  3051. FAILED boltons/setutils.py::ruff
  3052. FAILED boltons/setutils.py::ruff::format
  3053. FAILED boltons/socketutils.py::mypy
  3054. FAILED boltons/socketutils.py::ruff::format
  3055. FAILED boltons/statsutils.py::ruff
  3056. FAILED boltons/statsutils.py::ruff::format
  3057. FAILED boltons/strutils.py::ruff
  3058. FAILED boltons/strutils.py::ruff::format
  3059. FAILED boltons/tableutils.py::ruff::format
  3060. FAILED boltons/tbutils.py::ruff
  3061. FAILED boltons/tbutils.py::ruff::format
  3062. FAILED boltons/timeutils.py::mypy
  3063. FAILED boltons/timeutils.py::ruff
  3064. FAILED boltons/timeutils.py::ruff::format
  3065. FAILED boltons/typeutils.py::ruff::format
  3066. FAILED boltons/urlutils.py::mypy
  3067. FAILED boltons/urlutils.py::ruff
  3068. FAILED boltons/urlutils.py::ruff::format
  3069. FAILED docs/conf.py::mypy
  3070. FAILED docs/conf.py::ruff
  3071. FAILED docs/conf.py::ruff::format
  3072. FAILED misc/bench_omd.py::mypy
  3073. FAILED misc/bench_omd.py::ruff
  3074. FAILED misc/bench_omd.py::ruff::format
  3075. FAILED misc/linkify_changelog.py::ruff::format
  3076. FAILED misc/table_html_app.py::mypy
  3077. FAILED misc/table_html_app.py::ruff
  3078. FAILED misc/table_html_app.py::ruff::format
  3079. FAILED tests/conftest.py::ruff::format
  3080. FAILED tests/test_cacheutils.py::ruff
  3081. FAILED tests/test_cacheutils.py::ruff::format
  3082. FAILED tests/test_debugutils_trace.py::ruff::format
  3083. FAILED tests/test_dictutils.py::ruff
  3084. FAILED tests/test_dictutils.py::ruff::format
  3085. FAILED tests/test_ecoutils.py::ruff::format
  3086. FAILED tests/test_fileutils.py::ruff::format
  3087. FAILED tests/test_formatutils.py::mypy
  3088. FAILED tests/test_formatutils.py::ruff
  3089. FAILED tests/test_formatutils.py::ruff::format
  3090. FAILED tests/test_funcutils.py::ruff::format
  3091. FAILED tests/test_funcutils_fb.py::ruff::format
  3092. FAILED tests/test_funcutils_fb_py3.py::mypy
  3093. FAILED tests/test_funcutils_fb_py3.py::ruff
  3094. FAILED tests/test_funcutils_fb_py3.py::ruff::format
  3095. FAILED tests/test_gcutils.py::ruff
  3096. FAILED tests/test_gcutils.py::ruff::format
  3097. FAILED tests/test_ioutils.py::ruff::format
  3098. FAILED tests/test_iterutils.py::ruff
  3099. FAILED tests/test_iterutils.py::ruff::format
  3100. FAILED tests/test_jsonutils.py::ruff::format
  3101. FAILED tests/test_listutils.py::ruff
  3102. FAILED tests/test_listutils.py::ruff::format
  3103. FAILED tests/test_mathutils.py::ruff::format
  3104. FAILED tests/test_namedutils.py::ruff::format
  3105. FAILED tests/test_queueutils.py::ruff::format
  3106. FAILED tests/test_setutils.py::ruff
  3107. FAILED tests/test_setutils.py::ruff::format
  3108. FAILED tests/test_socketutils.py::ruff
  3109. FAILED tests/test_socketutils.py::ruff::format
  3110. FAILED tests/test_statsutils.py::mypy
  3111. FAILED tests/test_statsutils.py::ruff::format
  3112. FAILED tests/test_statsutils_histogram.py::mypy
  3113. FAILED tests/test_statsutils_histogram.py::ruff::format
  3114. FAILED tests/test_strutils.py::ruff
  3115. FAILED tests/test_strutils.py::ruff::format
  3116. FAILED tests/test_tableutils.py::ruff::format
  3117. FAILED tests/test_tbutils.py::ruff
  3118. FAILED tests/test_tbutils.py::ruff::format
  3119. FAILED tests/test_tbutils_parsed_exc.py::ruff::format
  3120. FAILED tests/test_timeutils.py::ruff::format
  3121. FAILED tests/test_typeutils.py::ruff::format
  3122. FAILED tests/test_urlutils.py::ruff::format
  3123. ============ 106 failed, 510 passed, 1 warning in 99.54s (0:01:39) =============
  3124.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement