Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AUR Dependency (2): python-conda-libmamba-solver-24.11.1-1, python-boltons-25.0.0-1
- AUR Explicit (1): python-conda-25.1.1-1
- :: [1mPKGBUILD up to date, skipping download: python-conda[0m
- :: [1mPKGBUILD up to date, skipping download: python-conda-libmamba-solver[0m
- :: [1mPKGBUILD up to date, skipping download: python-boltons[0m
- 3 python-conda-libmamba-solver (Build Files Exist)
- 2 python-boltons (Build Files Exist)
- 1 python-conda (Build Files Exist)
- ==> Packages to cleanBuild?
- ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
- ==> :: [1mDeleting (1/3): /home/usernameedited/.cache/yay/python-conda-libmamba-solver[0m
- HEAD is now at 5109096 v24.11.1 (#59)
- Removing python-conda-libmamba-solver-24.11.1.tar.gz
- Removing src/
- :: [1mDeleting (2/3): /home/usernameedited/.cache/yay/python-boltons[0m
- HEAD is now at cdae599 Update makedepends and bump to 25.0.0
- Removing boltons/
- Removing pkg/
- Skipping repository src/boltons
- :: [1mDeleting (3/3): /home/usernameedited/.cache/yay/python-conda[0m
- HEAD is now at cec9a29 build: release v25.1.1-1
- Removing conda-25.1.1.tar.gz
- Removing src/
- 3 python-conda (Build Files Exist)
- 2 python-conda-libmamba-solver (Build Files Exist)
- 1 python-boltons (Build Files Exist)
- ==> Diffs to show?
- ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
- ==> [1m[32m==>[m[1m Making package: python-boltons 25.0.0-1 (Sat 08 Feb 2025 07:11:19 PM CET)[m
- [1m[32m==>[m[1m Retrieving sources...[m
- [1m[32m==>[m[1m Making package: python-conda-libmamba-solver 24.11.1-1 (Sat 08 Feb 2025 07:11:19 PM CET)[m
- [1m[32m==>[m[1m Retrieving sources...[m
- [1m[34m ->[m[1m Cloning boltons git repo...[m
- [1m[32m==>[m[1m Making package: python-conda 25.1.1-1 (Sat 08 Feb 2025 07:11:19 PM CET)[m
- [1m[32m==>[m[1m Retrieving sources...[m
- [1m[34m ->[m[1m Downloading python-conda-libmamba-solver-24.11.1.tar.gz...[m
- [1m[34m ->[m[1m Downloading conda-25.1.1.tar.gz...[m
- [1m[32m==>[m[1m Validating source files with sha256sums...[m
- [1m[32m==>[m[1m Validating source files with sha512sums...[m
- [1m[34m ->[m[1m Found py-3.13-logging.patch[m
- [1m[32m==>[m[1m Validating source files with sha256sums...[m
- :: [1m(1/3) Parsing SRCINFO: python-conda[0m
- :: [1m(2/3) Parsing SRCINFO: python-conda-libmamba-solver[0m
- :: [1m(3/3) Parsing SRCINFO: python-boltons[0m
- [1m[32m==>[m[1m Making package: python-boltons 25.0.0-1 (Sat 08 Feb 2025 07:11:25 PM CET)[m
- [1m[32m==>[m[1m Checking runtime dependencies...[m
- [1m[32m==>[m[1m Checking buildtime dependencies...[m
- [1m[32m==>[m[1m Retrieving sources...[m
- [1m[34m ->[m[1m Updating boltons git repo...[m
- [1m[32m==>[m[1m Validating source files with sha512sums...[m
- [1m[32m==>[m[1m Removing existing $srcdir/ directory...[m
- [1m[32m==>[m[1m Extracting sources...[m
- [1m[34m ->[m[1m Creating working copy of boltons git repo...[m
- [1m[32m==>[m[1m Sources are ready.[m
- [1m[32m==>[m[1m Making package: python-boltons 25.0.0-1 (Sat 08 Feb 2025 07:11:28 PM CET)[m
- [1m[32m==>[m[1m Checking runtime dependencies...[m
- [1m[32m==>[m[1m Checking buildtime dependencies...[m
- [1m[32m==>[m[1m Starting build()...[m
- )0[1;67r[m[4l[?7h[67;1H
- [1m[32m==>[m[1m Starting check()...[m
- ============================= test session starts ==============================
- platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0
- rootdir: /home/usernameedited/.cache/yay/python-boltons/src/boltons
- configfile: pyproject.toml
- 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
- collected 616 items
- boltons/__init__.py .F.. [ 0%]
- boltons/cacheutils.py F.F [ 1%]
- boltons/debugutils.py .FF [ 1%]
- boltons/deprutils.py ..F [ 2%]
- boltons/dictutils.py FFF [ 2%]
- boltons/easterutils.py ..F [ 3%]
- boltons/ecoutils.py FFF [ 3%]
- boltons/excutils.py .FF [ 4%]
- boltons/fileutils.py F.F [ 4%]
- boltons/formatutils.py ..F [ 5%]
- boltons/funcutils.py .FF [ 5%]
- boltons/gcutils.py ..F [ 6%]
- boltons/ioutils.py ..F [ 6%]
- boltons/iterutils.py FFF [ 6%]
- boltons/jsonutils.py ..F [ 7%]
- boltons/listutils.py .FF [ 7%]
- boltons/mathutils.py ..F [ 8%]
- boltons/mboxutils.py ..F [ 8%]
- boltons/namedutils.py ..F [ 9%]
- boltons/pathutils.py ..F [ 9%]
- boltons/queueutils.py F.F [ 10%]
- boltons/setutils.py .FF [ 10%]
- boltons/socketutils.py F.F [ 11%]
- boltons/statsutils.py .FF [ 11%]
- boltons/strutils.py .FF [ 12%]
- boltons/tableutils.py ..F [ 12%]
- boltons/tbutils.py .FF [ 13%]
- boltons/timeutils.py FFF [ 13%]
- boltons/typeutils.py ..F [ 14%]
- boltons/urlutils.py FFF [ 14%]
- docs/conf.py FFF [ 15%]
- misc/bench_omd.py FFF [ 15%]
- misc/linkify_changelog.py ..F [ 16%]
- misc/table_html_app.py FFF [ 16%]
- tests/__init__.py ... [ 17%]
- tests/conftest.py ..F [ 17%]
- tests/test_cacheutils.py .FF.................. [ 21%]
- tests/test_debugutils_trace.py ..F...... [ 22%]
- tests/test_dictutils.py .FF........................... [ 27%]
- tests/test_ecoutils.py ..F.. [ 28%]
- tests/test_fileutils.py ..F...... [ 29%]
- tests/test_formatutils.py FFF..... [ 31%]
- tests/test_funcutils.py ..F..... [ 32%]
- tests/test_funcutils_fb.py ..F............... [ 35%]
- tests/test_funcutils_fb_py3.py FFF...................... [ 39%]
- tests/test_gcutils.py .FF.. [ 40%]
- tests/test_ioutils.py ..F............................................... [ 48%]
- ................................... [ 53%]
- tests/test_iterutils.py .FF......................................... [ 61%]
- tests/test_jsonutils.py ..F.. [ 61%]
- tests/test_listutils.py .FF.. [ 62%]
- tests/test_mathutils.py ..F........... [ 64%]
- tests/test_namedutils.py ..F... [ 65%]
- tests/test_queueutils.py ..F.. [ 66%]
- tests/test_setutils.py .FF..... [ 68%]
- tests/test_socketutils.py .FF........... [ 70%]
- tests/test_statsutils.py F.F. [ 70%]
- tests/test_statsutils_histogram.py F.F.. [ 71%]
- tests/test_strutils.py .FF.............. [ 74%]
- tests/test_tableutils.py ..F... [ 75%]
- tests/test_tbutils.py .FF.. [ 76%]
- tests/test_tbutils_parsed_exc.py ..F... [ 77%]
- tests/test_timeutils.py ..F.... [ 78%]
- tests/test_typeutils.py ..F... [ 79%]
- tests/test_urlutils.py ..F.............................................. [ 87%]
- ........................................................................ [ 99%]
- ...... [100%]
- =================================== FAILURES ===================================
- _________________________________ test session _________________________________
- mypy exited with status 1.
- ____________________________ boltons/cacheutils.py _____________________________
- 74: error: Name "RLock" already defined (possibly by an import) [no-redef]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/cacheutils.py
- _________________________________ test session _________________________________
- boltons/debugutils.py:175:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 174 | if isinstance(which, str):
- 175 | which_func = lambda attr_name, attr_val: attr_name == which
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 176 | elif callable(getattr(which, '__contains__', None)):
- 177 | which_func = lambda attr_name, attr_val: attr_name in which
- |
- = help: Rewrite `which_func` as a `def`
- boltons/debugutils.py:177:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 175 | which_func = lambda attr_name, attr_val: attr_name == which
- 176 | elif callable(getattr(which, '__contains__', None)):
- 177 | which_func = lambda attr_name, attr_val: attr_name in which
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 178 | elif which is None or callable(which):
- 179 | which_func = which
- |
- = help: Rewrite `which_func` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/debugutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/deprutils.py
- _____________________________ boltons/dictutils.py _____________________________
- 370: error: Signatures of "__ior__" and "__or__" are incompatible [misc]
- 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]
- 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]
- 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]
- 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]
- _________________________________ test session _________________________________
- boltons/dictutils.py:1013:16: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
- |
- 1012 | def __eq__(self, other):
- 1013 | return type(self) == type(other) and self.data == other.data
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ E721
- 1014 |
- 1015 | def __repr__(self):
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/dictutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/easterutils.py
- _____________________________ boltons/ecoutils.py ______________________________
- 174: error: Incompatible types in assignment (expression has type "Callable[[int], int]", variable has type "Callable[[Arg(int, 'k')], int]") [assignment]
- _________________________________ test session _________________________________
- boltons/ecoutils.py:185:12: F401 [*] `readline` imported but unused
- |
- 184 | try:
- 185 | import readline
- | ^^^^^^^^ F401
- 186 | except Exception:
- 187 | HAVE_READLINE = False
- |
- = help: Remove unused import: `readline`
- boltons/ecoutils.py:238:12: F401 [*] `threading` imported but unused
- |
- 237 | try:
- 238 | import threading
- | ^^^^^^^^^ F401
- 239 | HAVE_THREADING = True
- 240 | except Exception:
- |
- = help: Remove unused import: `threading`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/ecoutils.py
- _________________________________ test session _________________________________
- boltons/excutils.py:286:19: E702 Multiple statements on one line (semicolon)
- |
- 284 | main()
- 285 | except Exception:
- 286 | import pdb;pdb.post_mortem()
- | ^ E702
- 287 | raise
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/excutils.py
- _____________________________ boltons/fileutils.py _____________________________
- 276: error: Module has no attribute "windll" [attr-defined]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/fileutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/formatutils.py
- _________________________________ test session _________________________________
- boltons/funcutils.py:228:34: E701 Multiple statements on one line (colon)
- |
- 226 | def __eq__(self, other): return self >= other and self <= other
- 227 |
- 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
- | ^ E701
- 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
- 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
- |
- boltons/funcutils.py:229:34: E701 Multiple statements on one line (colon)
- |
- 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
- 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
- | ^ E701
- 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
- |
- boltons/funcutils.py:230:34: E701 Multiple statements on one line (colon)
- |
- 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
- 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
- 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
- | ^ E701
- 231 |
- 232 | return cls
- |
- boltons/funcutils.py:390:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 389 | if opt_key is None:
- 390 | opt_key = lambda v: v is None
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 391 | assert callable(opt_key)
- |
- = help: Rewrite `opt_key` as a `def`
- boltons/funcutils.py:441:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 440 | if opt_key is None:
- 441 | opt_key = lambda v: v is None
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 442 | assert callable(opt_key)
- |
- = help: Rewrite `opt_key` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/funcutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/gcutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/ioutils.py
- _____________________________ boltons/iterutils.py _____________________________
- 346: error: All conditional function variants must have identical signatures [misc]
- 346: note: Original:
- 346: note: def postprocess(chk: Any) -> Any
- 346: note: Redefinition:
- 346: note: def postprocess(chk: Any, _sep: Any = ...) -> Any
- _________________________________ test session _________________________________
- boltons/iterutils.py:45:8: F401 [*] `codecs` imported but unused
- |
- 43 | import math
- 44 | import time
- 45 | import codecs
- | ^^^^^^ F401
- 46 | import random
- 47 | import itertools
- |
- = help: Remove unused import: `codecs`
- boltons/iterutils.py:1317:33: F841 [*] Local variable `exc` is assigned to but never used
- |
- 1315 | except (KeyError, IndexError) as exc:
- 1316 | raise PathAccessError(exc, seg, path)
- 1317 | except TypeError as exc:
- | ^^^ F841
- 1318 | # either string index in a list, or a parent that
- 1319 | # doesn't support indexing
- |
- = help: Remove assignment to unused variable `exc`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/iterutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/jsonutils.py
- _________________________________ test session _________________________________
- boltons/listutils.py:124:19: F841 Local variable `len_self` is assigned to but never used
- |
- 122 | if list_idx < 0:
- 123 | list_idx += len(self.lists)
- 124 | cur_list, len_self = self.lists[list_idx], len(self)
- | ^^^^^^^^ F841
- 125 | size_limit = self._cur_size_limit
- 126 | if len(cur_list) > size_limit:
- |
- = help: Remove assignment to unused variable `len_self`
- boltons/listutils.py:227:52: E741 Ambiguous variable name: `l`
- |
- 226 | def __reversed__(self):
- 227 | return chain.from_iterable(reversed(l) for l in reversed(self.lists))
- | ^ E741
- 228 |
- 229 | def __len__(self):
- |
- boltons/listutils.py:230:32: E741 Ambiguous variable name: `l`
- |
- 229 | def __len__(self):
- 230 | return sum([len(l) for l in self.lists])
- | ^ E741
- 231 |
- 232 | def __contains__(self, item):
- |
- boltons/listutils.py:267:13: F841 Local variable `start` is assigned to but never used
- |
- 265 | def __setitem__(self, index, item):
- 266 | try:
- 267 | start, stop, step = index.start, index.stop, index.step
- | ^^^^^ F841
- 268 | except AttributeError:
- 269 | index = operator.index(index)
- |
- = help: Remove assignment to unused variable `start`
- boltons/listutils.py:267:20: F841 Local variable `stop` is assigned to but never used
- |
- 265 | def __setitem__(self, index, item):
- 266 | try:
- 267 | start, stop, step = index.start, index.stop, index.step
- | ^^^^ F841
- 268 | except AttributeError:
- 269 | index = operator.index(index)
- |
- = help: Remove assignment to unused variable `stop`
- boltons/listutils.py:267:26: F841 Local variable `step` is assigned to but never used
- |
- 265 | def __setitem__(self, index, item):
- 266 | try:
- 267 | start, stop, step = index.start, index.stop, index.step
- | ^^^^ F841
- 268 | except AttributeError:
- 269 | index = operator.index(index)
- |
- = help: Remove assignment to unused variable `step`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/listutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/mathutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/mboxutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/namedutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/pathutils.py
- ____________________________ boltons/queueutils.py _____________________________
- 80: error: Cannot assign multiple types to name "BList" without an explicit "Type[...]" annotation [misc]
- 80: error: Incompatible types in assignment (expression has type "type[list[Any]]", variable has type "type[BarrelList]") [assignment]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/queueutils.py
- _________________________________ test session _________________________________
- boltons/setutils.py:616:24: E713 [*] Test for membership should be `not in`
- |
- 614 | def __contains__(self, item):
- 615 | if self._included is None:
- 616 | return not item in self._excluded
- | ^^^^^^^^^^^^^^^^^^^^^^ E713
- 617 | return item in self._included
- |
- = help: Convert to `not in`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/setutils.py
- ____________________________ boltons/socketutils.py ____________________________
- 73: error: Name "RLock" already defined (possibly by an import) [no-redef]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/socketutils.py
- _________________________________ test session _________________________________
- boltons/statsutils.py:319:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 317 | """
- 318 | sorted_data = self._get_sorted_data()
- 319 | gq = lambda q: self._get_quantile(sorted_data, q)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 320 | return (gq(0.25) + (2 * gq(0.5)) + gq(0.75)) / 4.0
- 321 | trimean = _StatsProperty('trimean', _calc_trimean)
- |
- = help: Rewrite `gq` as a `def`
- boltons/statsutils.py:785:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 783 | lines = []
- 784 | if not format_bin:
- 785 | format_bin = lambda v: v
- | ^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 786 | if not width:
- 787 | try:
- |
- = help: Rewrite `format_bin` as a `def`
- boltons/statsutils.py:798:34: E741 Ambiguous variable name: `l`
- |
- 797 | labels = ['%s' % format_bin(b) for b in bins]
- 798 | label_cols = max([len(l) for l in labels])
- | ^ E741
- 799 | tmp_line = '{}: {} #'.format('x' * label_cols, count_max)
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/statsutils.py
- _________________________________ test session _________________________________
- boltons/strutils.py:38:8: F401 [*] `builtins` imported but unused
- |
- 38 | import builtins
- | ^^^^^^^^ F401
- 39 | import re
- 40 | import sys
- |
- = help: Remove unused import: `builtins`
- boltons/strutils.py:285:52: F601 Dictionary key literal `'formula'` repeated
- |
- 283 | 'embargo': 'embargoes', 'emphasis': 'emphases', 'erratum': 'errata',
- 284 | 'fireman': 'firemen', 'fish': 'fish', 'focus': 'foci',
- 285 | 'foot': 'feet', 'formula': 'formulae', 'formula': 'formulas',
- | ^^^^^^^^^ F601
- 286 | 'fungus': 'fungi', 'genus': 'genera', 'goose': 'geese',
- 287 | 'half': 'halves', 'hero': 'heroes', 'hippopotamus': 'hippopotami',
- |
- = help: Remove repeated key literal `'formula'`
- boltons/strutils.py:402:24: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
- |
- 401 | # Transform back the result to the same bytearray type provided by the user.
- 402 | if target_type and target_type != type(cleaned):
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E721
- 403 | cleaned = target_type(cleaned, 'utf-8')
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/strutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/tableutils.py
- _________________________________ test session _________________________________
- boltons/tbutils.py:525:29: E741 Ambiguous variable name: `l`
- |
- 523 | start_line = self.lineno - len(self.pre_lines)
- 524 | pre_lines = [{'lineno': start_line + i, 'line': str(l)}
- 525 | for i, l in enumerate(self.pre_lines)]
- | ^ E741
- 526 | # trim off leading empty lines
- 527 | for i, item in enumerate(pre_lines):
- |
- boltons/tbutils.py:536:30: E741 Ambiguous variable name: `l`
- |
- 534 | # now post_lines
- 535 | post_lines = [{'lineno': self.lineno + i, 'line': str(l)}
- 536 | for i, l in enumerate(self.post_lines)]
- | ^ E741
- 537 | _last = 0
- 538 | for i, item in enumerate(post_lines):
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/tbutils.py
- _____________________________ boltons/timeutils.py _____________________________
- 131: error: List comprehension has incompatible type List[tuple[timedelta, timedelta, str]]; expected List[tuple[int, timedelta, str]] [misc]
- _________________________________ test session _________________________________
- boltons/timeutils.py:370:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 369 | if stop is None:
- 370 | finished = lambda now, stop: False
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 371 | elif start <= stop:
- 372 | finished = operator.gt if inclusive else operator.ge
- |
- = help: Rewrite `finished` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/timeutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/typeutils.py
- _____________________________ boltons/urlutils.py ______________________________
- 826: error: Module has no attribute "windll" [attr-defined]
- 827: error: Module has no attribute "windll" [attr-defined]
- 829: error: All conditional function variants must have identical signatures [misc]
- 829: note: Original:
- 829: note: def inet_pton(int, str, /) -> bytes
- 829: note: Redefinition:
- 829: note: def inet_pton(address_family: Any, ip_string: Any) -> Any
- 1276: error: Signatures of "__ior__" and "__or__" are incompatible [misc]
- 1553: error: Incompatible import of "OrderedMultiDict" (imported name has type "type[boltons.dictutils.OrderedMultiDict]", local name has type "type[boltons.urlutils.OrderedMultiDict]") [assignment]
- _________________________________ test session _________________________________
- boltons/urlutils.py:979:1: E402 Module level import not at top of file
- |
- 977 | """
- 978 |
- 979 | from collections.abc import KeysView, ValuesView, ItemsView
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E402
- 980 | from itertools import zip_longest
- |
- boltons/urlutils.py:980:1: E402 Module level import not at top of file
- |
- 979 | from collections.abc import KeysView, ValuesView, ItemsView
- 980 | from itertools import zip_longest
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E402
- 981 |
- 982 | try:
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/urlutils.py
- _________________________________ docs/conf.py _________________________________
- 126: error: Skipping analyzing "sphinx_rtd_theme": module is installed, but missing library stubs or py.typed marker [import-untyped]
- 126: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- 231: error: Need type annotation for "latex_elements" (hint: "latex_elements: dict[<type>, <type>] = ...") [var-annotated]
- _________________________________ test session _________________________________
- docs/conf.py:39:5: E731 Do not assign a `lambda` expression, use a `def`
- |
- 37 | tot_type_count = 0
- 38 | tot_func_count = 0
- 39 | ignore = lambda attr_name: attr_name.startswith('_')
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 40 | for _, mod_name, _ in pkgutil.iter_modules([PACKAGE_PATH]):
- 41 | if not mod_name.endswith('utils'):
- |
- = help: Rewrite `ignore` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: docs/conf.py
- ______________________________ misc/bench_omd.py _______________________________
- 6: error: Cannot find implementation or library stub for module named "lithoxyl" [import-not-found]
- 9: error: Cannot find implementation or library stub for module named "dictutils" [import-not-found]
- 19: error: No overload variant of "range" matches argument type "float" [call-overload]
- 19: note: Possible overload variants:
- 19: note: def __new__(cls, SupportsIndex, /) -> range
- 19: note: def __new__(cls, SupportsIndex, SupportsIndex, SupportsIndex = ..., /) -> range
- 32: error: Incompatible types in assignment (expression has type "tuple[Any, Any, Any, type[MultiDict[Any, Any]]]", variable has type "tuple[Any, Any]") [assignment]
- _________________________________ test session _________________________________
- misc/bench_omd.py:5:8: F401 [*] `time` imported but unused
- |
- 3 | sys.path.append('/home/mahmoud/projects/lithoxyl/')
- 4 |
- 5 | import time
- | ^^^^ F401
- 6 | import lithoxyl
- 7 | from lithoxyl import sinks, logger
- |
- = help: Remove unused import: `time`
- misc/bench_omd.py:7:22: F401 [*] `lithoxyl.sinks` imported but unused
- |
- 5 | import time
- 6 | import lithoxyl
- 7 | from lithoxyl import sinks, logger
- | ^^^^^ F401
- 8 |
- 9 | from dictutils import OMD, FastIterOrderedMultiDict
- |
- = help: Remove unused import
- misc/bench_omd.py:7:29: F401 [*] `lithoxyl.logger` imported but unused
- |
- 5 | import time
- 6 | import lithoxyl
- 7 | from lithoxyl import sinks, logger
- | ^^^^^^ F401
- 8 |
- 9 | from dictutils import OMD, FastIterOrderedMultiDict
- |
- = help: Remove unused import
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: misc/bench_omd.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: misc/linkify_changelog.py
- ____________________________ misc/table_html_app.py ____________________________
- 4: error: Cannot find implementation or library stub for module named "clastic" [import-not-found]
- 6: error: Cannot find implementation or library stub for module named "clastic.render" [import-not-found]
- 7: error: Cannot find implementation or library stub for module named "clastic.middleware" [import-not-found]
- 9: error: Cannot find implementation or library stub for module named "clastic.sinter" [import-not-found]
- 22: error: Cannot find implementation or library stub for module named "urllib2" [import-not-found]
- _________________________________ test session _________________________________
- misc/table_html_app.py:44:9: E722 Do not use bare `except`
- |
- 42 | try:
- 43 | func_name = route.endpoint.func_name
- 44 | except:
- | ^^^^^^ E722
- 45 | func_name = repr(route.endpoint)
- 46 | args, _, _, _ = getargspec(route.endpoint)
- |
- misc/table_html_app.py:156:5: F841 Local variable `atr` is assigned to but never used
- |
- 154 | rsc = {'data': _DATA}
- 155 | gpm = GetParamMiddleware('url')
- 156 | atr = AutoTableRenderer(max_depth=5)
- | ^^^ F841
- 157 | render_basic = BasicRender()
- 158 | app = Application([('/', ident_ep, render_basic),
- |
- = help: Remove assignment to unused variable `atr`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: misc/table_html_app.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/conftest.py
- _________________________________ test session _________________________________
- tests/test_cacheutils.py:2:8: F401 [*] `sys` imported but unused
- |
- 1 | import string
- 2 | import sys
- | ^^^ F401
- 3 | from abc import abstractmethod, ABCMeta
- |
- = help: Remove unused import: `sys`
- tests/test_cacheutils.py:279:5: E731 Do not assign a `lambda` expression, use a `def`
- |
- 277 | def test_callable_cached_dec():
- 278 | lru = LRU()
- 279 | get_lru = lambda: lru
- | ^^^^^^^^^^^^^^^^^^^^^ E731
- 280 |
- 281 | inner_func = CountingCallable()
- |
- = help: Rewrite `get_lru` as a `def`
- tests/test_cacheutils.py:426:12: F811 [*] Redefinition of unused `sys` from line 2
- |
- 425 | def test_min_id_map():
- 426 | import sys
- | ^^^ F811
- 427 | if '__pypy__' in sys.builtin_module_names:
- 428 | return # TODO: pypy still needs some work
- |
- = help: Remove definition: `sys`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_cacheutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_debugutils_trace.py
- _________________________________ test session _________________________________
- tests/test_dictutils.py:311:1: E402 Module level import not at top of file
- |
- 309 | ## END OMD TESTS
- 310 |
- 311 | import string
- | ^^^^^^^^^^^^^ E402
- 312 |
- 313 | def test_subdict():
- |
- tests/test_dictutils.py:540:20: E712 Avoid equality comparisons to `False`; use `if not attrname:` for false checks
- |
- 539 | if getattr(FrozenDict, attrname) == getattr(dict, attrname, None) and attrname not in through_methods:
- 540 | assert attrname == False
- | ^^^^^^^^^^^^^^^^^ E712
- 541 | ret.append(attrname)
- |
- = help: Replace with `not attrname`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_dictutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_ecoutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_fileutils.py
- __________________________ tests/test_formatutils.py ___________________________
- 11: error: First argument to namedtuple() should be "PFAT", not "PositionalFormatArgTest" [name-match]
- _________________________________ test session _________________________________
- tests/test_formatutils.py:35:5: F841 Local variable `results` is assigned to but never used
- |
- 34 | def test_get_fstr_args():
- 35 | results = []
- | ^^^^^^^ F841
- 36 | for t in _TEST_TMPLS:
- 37 | inferred_t = infer_positional_format_args(t)
- |
- = help: Remove assignment to unused variable `results`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_formatutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_funcutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_funcutils_fb.py
- ________________________ tests/test_funcutils_fb_py3.py ________________________
- 34: error: Incompatible default for argument "c" (default has type "tuple[()]", argument has type "defaultdict[Any, Any]") [assignment]
- 35: error: Incompatible return value type (got "tuple[int, float, defaultdict[Any, Any]]", expected "defaultdict[Any, Any]") [return-value]
- _________________________________ test session _________________________________
- tests/test_funcutils_fb_py3.py:62:5: E731 Do not assign a `lambda` expression, use a `def`
- |
- 60 | def test_copy_function_kw_defaults_py3():
- 61 | # test that the copy works with keyword-only defaults
- 62 | f = lambda x, *, y=2: x * y
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 63 | f_copy = copy_function(f)
- 64 | assert f(21) == f_copy(21) == 42
- |
- = help: Rewrite `f` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_funcutils_fb_py3.py
- _________________________________ test session _________________________________
- tests/test_gcutils.py:14:9: F841 Local variable `tt` is assigned to but never used
- |
- 12 | pass
- 13 |
- 14 | tt = TestType()
- | ^^ F841
- 15 |
- 16 | assert len(get_all(TestType)) == 1
- |
- = help: Remove assignment to unused variable `tt`
- tests/test_gcutils.py:29:9: F841 Local variable `x` is assigned to but never used
- |
- 28 | start = time.time()
- 29 | x = [{} for x in range(COUNT)]
- | ^ F841
- 30 | with_gc_time = time.time() - start
- |
- = help: Remove assignment to unused variable `x`
- tests/test_gcutils.py:32:9: F841 Local variable `time_diff` is assigned to but never used
- |
- 30 | with_gc_time = time.time() - start
- 31 |
- 32 | time_diff = no_gc_time < with_gc_time
- | ^^^^^^^^^ F841
- |
- = help: Remove assignment to unused variable `time_diff`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_gcutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_ioutils.py
- _________________________________ test session _________________________________
- tests/test_iterutils.py:20:1: E731 Do not assign a `lambda` expression, use a `def`
- |
- 18 | CUR_PATH = os.path.abspath(__file__)
- 19 |
- 20 | isbool = lambda x: isinstance(x, bool)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 21 | isint = lambda x: isinstance(x, int)
- 22 | odd = lambda x: isint(x) and x % 2 != 0
- |
- = help: Rewrite `isbool` as a `def`
- tests/test_iterutils.py:21:1: E731 Do not assign a `lambda` expression, use a `def`
- |
- 20 | isbool = lambda x: isinstance(x, bool)
- 21 | isint = lambda x: isinstance(x, int)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 22 | odd = lambda x: isint(x) and x % 2 != 0
- 23 | even = lambda x: isint(x) and x % 2 == 0
- |
- = help: Rewrite `isint` as a `def`
- tests/test_iterutils.py:22:1: E731 Do not assign a `lambda` expression, use a `def`
- |
- 20 | isbool = lambda x: isinstance(x, bool)
- 21 | isint = lambda x: isinstance(x, int)
- 22 | odd = lambda x: isint(x) and x % 2 != 0
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 23 | even = lambda x: isint(x) and x % 2 == 0
- 24 | is_meaning_of_life = lambda x: x == 42
- |
- = help: Rewrite `odd` as a `def`
- tests/test_iterutils.py:23:1: E731 Do not assign a `lambda` expression, use a `def`
- |
- 21 | isint = lambda x: isinstance(x, int)
- 22 | odd = lambda x: isint(x) and x % 2 != 0
- 23 | even = lambda x: isint(x) and x % 2 == 0
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 24 | is_meaning_of_life = lambda x: x == 42
- |
- = help: Rewrite `even` as a `def`
- tests/test_iterutils.py:24:1: E731 Do not assign a `lambda` expression, use a `def`
- |
- 22 | odd = lambda x: isint(x) and x % 2 != 0
- 23 | even = lambda x: isint(x) and x % 2 == 0
- 24 | is_meaning_of_life = lambda x: x == 42
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- |
- = help: Rewrite `is_meaning_of_life` as a `def`
- tests/test_iterutils.py:33:9: E741 Ambiguous variable name: `l`
- |
- 31 | """
- 32 | s = set()
- 33 | l = []
- | ^ E741
- 34 | assert first(s) is None
- 35 | assert first(l) is None
- |
- tests/test_iterutils.py:42:9: E741 Ambiguous variable name: `l`
- |
- 40 | """
- 41 | s = set()
- 42 | l = []
- | ^ E741
- 43 | assert first(s, default=42) == 42
- 44 | assert first(l, default=3.14) == 3.14
- |
- tests/test_iterutils.py:46:9: E741 Ambiguous variable name: `l`
- |
- 44 | assert first(l, default=3.14) == 3.14
- 45 |
- 46 | l = [0, False, []]
- | ^ E741
- 47 | assert first(l, default=3.14) == 3.14
- |
- tests/test_iterutils.py:53:9: E741 Ambiguous variable name: `l`
- |
- 51 | Success cases with and without a key function.
- 52 | """
- 53 | l = [(), 0, False, 3, []]
- | ^ E741
- 54 |
- 55 | assert first(l, default=42) == 3
- |
- tests/test_iterutils.py:200:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 198 | def test_reraise_visit(self):
- 199 | root = {'A': 'b', 1: 2}
- 200 | key_to_lower = lambda p, k, v: (k.lower(), v)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 201 | with pytest.raises(AttributeError):
- 202 | remap(root, key_to_lower)
- |
- = help: Rewrite `key_to_lower` as a `def`
- tests/test_iterutils.py:211:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 209 | orig = {'a': 1, 'b': None, 'c': [3, None, 4, None]}
- 210 | ref = {'a': 1, 'c': [3, 4]}
- 211 | drop_none = lambda p, k, v: v is not None
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 212 | remapped = remap(orig, visit=drop_none)
- 213 | assert remapped == ref
- |
- = help: Rewrite `drop_none` as a `def`
- tests/test_iterutils.py:272:13: E722 Do not use bare `except`
- |
- 270 | try:
- 271 | all_interests.update(value['interests'])
- 272 | except:
- | ^^^^^^ E722
- 273 | pass
- 274 | return default_enter(path, key, value)
- |
- tests/test_iterutils.py:296:13: E722 Do not use bare `except`
- |
- 294 | try:
- 295 | ret['review_length'] = len(ret['review'])
- 296 | except:
- | ^^^^^^ E722
- 297 | pass
- 298 | return ret
- |
- tests/test_iterutils.py:328:13: E722 Do not use bare `except`
- |
- 326 | new_parent.update(base_obj)
- 327 | base_obj['id'] += 1
- 328 | except:
- | ^^^^^^ E722
- 329 | pass
- 330 | return new_parent, new_items
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_iterutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_jsonutils.py
- _________________________________ test session _________________________________
- tests/test_listutils.py:1:8: F401 [*] `sys` imported but unused
- |
- 1 | import sys
- | ^^^ F401
- 2 |
- 3 | from boltons.listutils import SplayList, BarrelList
- |
- = help: Remove unused import: `sys`
- tests/test_listutils.py:121:25: F841 [*] Local variable `e` is assigned to but never used
- |
- 119 | try:
- 120 | tune() # main()
- 121 | except Exception as e:
- | ^ F841
- 122 | import pdb;pdb.post_mortem()
- 123 | raise
- |
- = help: Remove assignment to unused variable `e`
- tests/test_listutils.py:122:19: E702 Multiple statements on one line (semicolon)
- |
- 120 | tune() # main()
- 121 | except Exception as e:
- 122 | import pdb;pdb.post_mortem()
- | ^ E702
- 123 | raise
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_listutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_mathutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_namedutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_queueutils.py
- _________________________________ test session _________________________________
- tests/test_setutils.py:137:37: E701 Multiple statements on one line (colon)
- |
- 135 | cab.add(complement(frozenset())) # frozen complement can be a member of complement set
- 136 | assert len({complement(frozenset()): 1, complement(frozenset()): 2}) == 1 # hash works
- 137 | with raises(NotImplementedError): cab.pop()
- | ^ E701
- 138 | with raises(NotImplementedError): len(cab)
- 139 | with raises(NotImplementedError): iter(cab)
- |
- tests/test_setutils.py:138:37: E701 Multiple statements on one line (colon)
- |
- 136 | assert len({complement(frozenset()): 1, complement(frozenset()): 2}) == 1 # hash works
- 137 | with raises(NotImplementedError): cab.pop()
- 138 | with raises(NotImplementedError): len(cab)
- | ^ E701
- 139 | with raises(NotImplementedError): iter(cab)
- 140 | ~cab
- |
- tests/test_setutils.py:139:37: E701 Multiple statements on one line (colon)
- |
- 137 | with raises(NotImplementedError): cab.pop()
- 138 | with raises(NotImplementedError): len(cab)
- 139 | with raises(NotImplementedError): iter(cab)
- | ^ E701
- 140 | ~cab
- 141 | cab.complement()
- |
- tests/test_setutils.py:153:15: E702 Multiple statements on one line (semicolon)
- |
- 151 | ops = OpOverloader()
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- | ^ E702
- 154 | a > b; a >= b; a < b; a <= b
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:153:23: E702 Multiple statements on one line (semicolon)
- |
- 151 | ops = OpOverloader()
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- | ^ E702
- 154 | a > b; a >= b; a < b; a <= b
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:153:31: E702 Multiple statements on one line (semicolon)
- |
- 151 | ops = OpOverloader()
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- | ^ E702
- 154 | a > b; a >= b; a < b; a <= b
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:154:14: E702 Multiple statements on one line (semicolon)
- |
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- 154 | a > b; a >= b; a < b; a <= b
- | ^ E702
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:154:22: E702 Multiple statements on one line (semicolon)
- |
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- 154 | a > b; a >= b; a < b; a <= b
- | ^ E702
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:154:29: E702 Multiple statements on one line (semicolon)
- |
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- 154 | a > b; a >= b; a < b; a <= b
- | ^ E702
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:157:27: E701 Multiple statements on one line (colon)
- |
- 155 | return (((a & b) | b) - b) ^ b
- 156 |
- 157 | with raises(TypeError): opsmash(cab, object())
- | ^ E701
- 158 | assert opsmash(ops, cab) == ops
- 159 | assert opsmash(cab, ops) == ops
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_setutils.py
- _________________________________ test session _________________________________
- tests/test_socketutils.py:282:5: E731 Do not assign a `lambda` expression, use a `def`
- |
- 280 | server_socket.listen(100)
- 281 | ip, port = server_socket.getsockname()
- 282 | start_server = lambda: netstring_server(server_socket)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 283 | threading.Thread(target=start_server).start()
- |
- = help: Rewrite `start_server` as a `def`
- tests/test_socketutils.py:409:5: E731 Do not assign a `lambda` expression, use a `def`
- |
- 407 | server_socket.listen(100)
- 408 | ip, port = server_socket.getsockname()
- 409 | start_server = lambda: netstring_server_timeout_override(server_socket)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 410 | threading.Thread(target=start_server).start()
- |
- = help: Rewrite `start_server` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_socketutils.py
- ___________________________ tests/test_statsutils.py ___________________________
- 16: error: Cannot find implementation or library stub for module named "statsutils" [import-not-found]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_statsutils.py
- ______________________ tests/test_statsutils_histogram.py ______________________
- 27: error: Need type annotation for "EMPTY_DATA" (hint: "EMPTY_DATA: list[<type>] = ...") [var-annotated]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_statsutils_histogram.py
- _________________________________ test session _________________________________
- tests/test_strutils.py:54:12: E712 Avoid equality comparisons to `True`; use `if strutils.is_uuid(uuid.uuid4()):` for truth checks
- |
- 53 | def test_is_uuid():
- 54 | assert strutils.is_uuid(uuid.uuid4()) == True
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
- 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
- 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
- |
- = help: Replace with `strutils.is_uuid(uuid.uuid4())`
- 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
- |
- 53 | def test_is_uuid():
- 54 | assert strutils.is_uuid(uuid.uuid4()) == True
- 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
- 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
- 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
- |
- = help: Replace with `not strutils.is_uuid(uuid.uuid4(), version=1)`
- tests/test_strutils.py:56:12: E712 Avoid equality comparisons to `True`; use `if strutils.is_uuid(str(uuid.uuid4())):` for truth checks
- |
- 54 | assert strutils.is_uuid(uuid.uuid4()) == True
- 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
- 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
- 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
- 58 | assert strutils.is_uuid(set('garbage')) == False
- |
- = help: Replace with `strutils.is_uuid(str(uuid.uuid4()))`
- 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
- |
- 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
- 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
- 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
- 58 | assert strutils.is_uuid(set('garbage')) == False
- |
- = help: Replace with `not strutils.is_uuid(str(uuid.uuid4()), version=1)`
- tests/test_strutils.py:58:12: E712 Avoid equality comparisons to `False`; use `if not strutils.is_uuid(set('garbage')):` for false checks
- |
- 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
- 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
- 58 | assert strutils.is_uuid(set('garbage')) == False
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
- |
- = help: Replace with `not strutils.is_uuid(set('garbage'))`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_strutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_tableutils.py
- _________________________________ test session _________________________________
- tests/test_tbutils.py:29:5: E722 Do not use bare `except`
- |
- 27 | try:
- 28 | test()
- 29 | except:
- | ^^^^^^ E722
- 30 | exc, _, exc_traceback = sys.exc_info()
- 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
- |
- tests/test_tbutils.py:32:9: F841 Local variable `exc_info` is assigned to but never used
- |
- 30 | exc, _, exc_traceback = sys.exc_info()
- 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
- 32 | exc_info = ExceptionInfo.from_exc_info(*sys.exc_info())
- | ^^^^^^^^ F841
- 33 | exc_info2 = ExceptionInfo.from_current()
- 34 | tbi_str = str(tbi)
- |
- = help: Remove assignment to unused variable `exc_info`
- tests/test_tbutils.py:33:9: F841 Local variable `exc_info2` is assigned to but never used
- |
- 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
- 32 | exc_info = ExceptionInfo.from_exc_info(*sys.exc_info())
- 33 | exc_info2 = ExceptionInfo.from_current()
- | ^^^^^^^^^ F841
- 34 | tbi_str = str(tbi)
- 35 | print_exception(*sys.exc_info(), file=fake_stderr2)
- |
- = help: Remove assignment to unused variable `exc_info2`
- tests/test_tbutils.py:66:9: F841 Local variable `x` is assigned to but never used
- |
- 64 | return func2()
- 65 | def func2():
- 66 | x = 5
- | ^ F841
- 67 | return func3()
- 68 | def func3():
- |
- = help: Remove assignment to unused variable `x`
- tests/test_tbutils.py:84:9: F841 Local variable `a` is assigned to but never used
- |
- 83 | def func_a():
- 84 | a = 1
- | ^ F841
- 85 | raise Exception('func_a exception')
- 86 | def func_b():
- |
- = help: Remove assignment to unused variable `a`
- tests/test_tbutils.py:87:9: F841 Local variable `b` is assigned to but never used
- |
- 85 | raise Exception('func_a exception')
- 86 | def func_b():
- 87 | b = 2
- | ^ F841
- 88 | return func_a()
- 89 | def func_c():
- |
- = help: Remove assignment to unused variable `b`
- tests/test_tbutils.py:90:9: F841 Local variable `c` is assigned to but never used
- |
- 88 | return func_a()
- 89 | def func_c():
- 90 | c = 3
- | ^ F841
- 91 | return func_b()
- |
- = help: Remove assignment to unused variable `c`
- tests/test_tbutils.py:95:25: F841 [*] Local variable `e` is assigned to but never used
- |
- 93 | try:
- 94 | func_c()
- 95 | except Exception as e:
- | ^ F841
- 96 | ctx_ei = ContextualExceptionInfo.from_current()
- 97 | ctx_ei_str = ctx_ei.get_formatted()
- |
- = help: Remove assignment to unused variable `e`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_tbutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_tbutils_parsed_exc.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_timeutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_typeutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_urlutils.py
- =============================== warnings summary ===============================
- tests/conftest.py:8
- /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)
- see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
- def pytest_ignore_collect(path, config):
- -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- ---------- coverage: platform linux, python 3.13.1-final-0 -----------
- Name Stmts Miss Cover
- --------------------------------------------------------
- boltons/__init__.py 0 0 100%
- boltons/cacheutils.py 410 42 90%
- boltons/debugutils.py 147 39 73%
- boltons/dictutils.py 553 127 77%
- boltons/ecoutils.py 186 71 62%
- boltons/fileutils.py 358 217 39%
- boltons/formatutils.py 150 25 83%
- boltons/funcutils.py 360 89 75%
- boltons/gcutils.py 33 5 85%
- boltons/ioutils.py 330 24 93%
- boltons/iterutils.py 545 208 62%
- boltons/jsonutils.py 136 64 53%
- boltons/listutils.py 212 74 65%
- boltons/mathutils.py 113 17 85%
- boltons/namedutils.py 104 22 79%
- boltons/queueutils.py 86 17 80%
- boltons/setutils.py 591 224 62%
- boltons/socketutils.py 313 49 84%
- boltons/statsutils.py 280 103 63%
- boltons/strutils.py 382 187 51%
- boltons/tableutils.py 285 78 73%
- boltons/tbutils.py 360 85 76%
- boltons/timeutils.py 178 85 52%
- boltons/typeutils.py 52 23 56%
- boltons/urlutils.py 708 287 59%
- tests/__init__.py 0 0 100%
- tests/conftest.py 15 1 93%
- tests/test_cacheutils.py 308 9 97%
- tests/test_debugutils_trace.py 55 0 100%
- tests/test_dictutils.py 381 4 99%
- tests/test_ecoutils.py 8 0 100%
- tests/test_fileutils.py 62 0 100%
- tests/test_formatutils.py 43 0 100%
- tests/test_funcutils.py 55 0 100%
- tests/test_funcutils_fb.py 191 19 90%
- tests/test_funcutils_fb_py3.py 156 13 92%
- tests/test_gcutils.py 21 0 100%
- tests/test_ioutils.py 325 6 98%
- tests/test_iterutils.py 366 1 99%
- tests/test_jsonutils.py 26 0 100%
- tests/test_listutils.py 72 28 61%
- tests/test_mathutils.py 73 0 100%
- tests/test_namedutils.py 17 0 100%
- tests/test_queueutils.py 38 1 97%
- tests/test_setutils.py 160 14 91%
- tests/test_socketutils.py 301 24 92%
- tests/test_statsutils.py 19 9 53%
- tests/test_statsutils_histogram.py 34 2 94%
- tests/test_strutils.py 68 0 100%
- tests/test_tableutils.py 26 0 100%
- tests/test_tbutils.py 74 3 96%
- tests/test_tbutils_parsed_exc.py 26 0 100%
- tests/test_timeutils.py 39 0 100%
- tests/test_typeutils.py 12 0 100%
- tests/test_urlutils.py 214 5 98%
- --------------------------------------------------------
- TOTAL 10057 2301 77%
- ===================================== mypy =====================================
- Found 34 errors in 16 files (checked 64 source files)
- =========================== short test summary info ============================
- FAILED boltons/__init__.py::mypy-status
- FAILED boltons/cacheutils.py::mypy
- FAILED boltons/cacheutils.py::ruff::format
- FAILED boltons/debugutils.py::ruff
- FAILED boltons/debugutils.py::ruff::format
- FAILED boltons/deprutils.py::ruff::format
- FAILED boltons/dictutils.py::mypy
- FAILED boltons/dictutils.py::ruff
- FAILED boltons/dictutils.py::ruff::format
- FAILED boltons/easterutils.py::ruff::format
- FAILED boltons/ecoutils.py::mypy
- FAILED boltons/ecoutils.py::ruff
- FAILED boltons/ecoutils.py::ruff::format
- FAILED boltons/excutils.py::ruff
- FAILED boltons/excutils.py::ruff::format
- FAILED boltons/fileutils.py::mypy
- FAILED boltons/fileutils.py::ruff::format
- FAILED boltons/formatutils.py::ruff::format
- FAILED boltons/funcutils.py::ruff
- FAILED boltons/funcutils.py::ruff::format
- FAILED boltons/gcutils.py::ruff::format
- FAILED boltons/ioutils.py::ruff::format
- FAILED boltons/iterutils.py::mypy
- FAILED boltons/iterutils.py::ruff
- FAILED boltons/iterutils.py::ruff::format
- FAILED boltons/jsonutils.py::ruff::format
- FAILED boltons/listutils.py::ruff
- FAILED boltons/listutils.py::ruff::format
- FAILED boltons/mathutils.py::ruff::format
- FAILED boltons/mboxutils.py::ruff::format
- FAILED boltons/namedutils.py::ruff::format
- FAILED boltons/pathutils.py::ruff::format
- FAILED boltons/queueutils.py::mypy
- FAILED boltons/queueutils.py::ruff::format
- FAILED boltons/setutils.py::ruff
- FAILED boltons/setutils.py::ruff::format
- FAILED boltons/socketutils.py::mypy
- FAILED boltons/socketutils.py::ruff::format
- FAILED boltons/statsutils.py::ruff
- FAILED boltons/statsutils.py::ruff::format
- FAILED boltons/strutils.py::ruff
- FAILED boltons/strutils.py::ruff::format
- FAILED boltons/tableutils.py::ruff::format
- FAILED boltons/tbutils.py::ruff
- FAILED boltons/tbutils.py::ruff::format
- FAILED boltons/timeutils.py::mypy
- FAILED boltons/timeutils.py::ruff
- FAILED boltons/timeutils.py::ruff::format
- FAILED boltons/typeutils.py::ruff::format
- FAILED boltons/urlutils.py::mypy
- FAILED boltons/urlutils.py::ruff
- FAILED boltons/urlutils.py::ruff::format
- FAILED docs/conf.py::mypy
- FAILED docs/conf.py::ruff
- FAILED docs/conf.py::ruff::format
- FAILED misc/bench_omd.py::mypy
- FAILED misc/bench_omd.py::ruff
- FAILED misc/bench_omd.py::ruff::format
- FAILED misc/linkify_changelog.py::ruff::format
- FAILED misc/table_html_app.py::mypy
- FAILED misc/table_html_app.py::ruff
- FAILED misc/table_html_app.py::ruff::format
- FAILED tests/conftest.py::ruff::format
- FAILED tests/test_cacheutils.py::ruff
- FAILED tests/test_cacheutils.py::ruff::format
- FAILED tests/test_debugutils_trace.py::ruff::format
- FAILED tests/test_dictutils.py::ruff
- FAILED tests/test_dictutils.py::ruff::format
- FAILED tests/test_ecoutils.py::ruff::format
- FAILED tests/test_fileutils.py::ruff::format
- FAILED tests/test_formatutils.py::mypy
- FAILED tests/test_formatutils.py::ruff
- FAILED tests/test_formatutils.py::ruff::format
- FAILED tests/test_funcutils.py::ruff::format
- FAILED tests/test_funcutils_fb.py::ruff::format
- FAILED tests/test_funcutils_fb_py3.py::mypy
- FAILED tests/test_funcutils_fb_py3.py::ruff
- FAILED tests/test_funcutils_fb_py3.py::ruff::format
- FAILED tests/test_gcutils.py::ruff
- FAILED tests/test_gcutils.py::ruff::format
- FAILED tests/test_ioutils.py::ruff::format
- FAILED tests/test_iterutils.py::ruff
- FAILED tests/test_iterutils.py::ruff::format
- FAILED tests/test_jsonutils.py::ruff::format
- FAILED tests/test_listutils.py::ruff
- FAILED tests/test_listutils.py::ruff::format
- FAILED tests/test_mathutils.py::ruff::format
- FAILED tests/test_namedutils.py::ruff::format
- FAILED tests/test_queueutils.py::ruff::format
- FAILED tests/test_setutils.py::ruff
- FAILED tests/test_setutils.py::ruff::format
- FAILED tests/test_socketutils.py::ruff
- FAILED tests/test_socketutils.py::ruff::format
- FAILED tests/test_statsutils.py::mypy
- FAILED tests/test_statsutils.py::ruff::format
- FAILED tests/test_statsutils_histogram.py::mypy
- FAILED tests/test_statsutils_histogram.py::ruff::format
- FAILED tests/test_strutils.py::ruff
- FAILED tests/test_strutils.py::ruff::format
- FAILED tests/test_tableutils.py::ruff::format
- FAILED tests/test_tbutils.py::ruff
- FAILED tests/test_tbutils.py::ruff::format
- FAILED tests/test_tbutils_parsed_exc.py::ruff::format
- FAILED tests/test_timeutils.py::ruff::format
- FAILED tests/test_typeutils.py::ruff::format
- FAILED tests/test_urlutils.py::ruff::format
- ============ 106 failed, 510 passed, 1 warning in 99.70s (0:01:39) =============
- -> Failed to install layer, rolling up to next layer.error:error making: python-boltons - exit status 4
- [1m[32m==>[m[1m Making package: python-conda-libmamba-solver 24.11.1-1 (Sat 08 Feb 2025 07:13:13 PM CET)[m
- [1m[32m==>[m[1m Checking runtime dependencies...[m
- [1m[32m==>[m[1m Missing dependencies:[m
- [1m[34m ->[m[1m python-boltons[m
- [1m[32m==>[m[1m Checking buildtime dependencies...[m
- -> Failed to install layer, rolling up to next layer.error:error making: python-conda-libmamba-solver - exit status 8
- [1m[32m==>[m[1m Making package: python-conda 25.1.1-1 (Sat 08 Feb 2025 07:13:14 PM CET)[m
- [1m[32m==>[m[1m Checking runtime dependencies...[m
- [1m[32m==>[m[1m Missing dependencies:[m
- [1m[34m ->[m[1m python-boltons[m
- [1m[34m ->[m[1m python-conda-libmamba-solver[m
- [1m[32m==>[m[1m Checking buildtime dependencies...[m
- [1m[32m==>[m[1m Making package: python-conda-libmamba-solver 24.11.1-1 (Sat 08 Feb 2025 07:13:15 PM CET)[m
- [1m[32m==>[m[1m Checking runtime dependencies...[m
- [1m[32m==>[m[1m Missing dependencies:[m
- [1m[34m ->[m[1m python-boltons[m
- [1m[32m==>[m[1m Checking buildtime dependencies...[m
- [1m[32m==>[m[1m Making package: python-boltons 25.0.0-1 (Sat 08 Feb 2025 07:13:16 PM CET)[m
- [1m[32m==>[m[1m Checking runtime dependencies...[m
- [1m[32m==>[m[1m Checking buildtime dependencies...[m
- [1m[32m==>[m[1m Retrieving sources...[m
- [1m[34m ->[m[1m Updating boltons git repo...[m
- [1m[32m==>[m[1m Validating source files with sha512sums...[m
- [1m[32m==>[m[1m Removing existing $srcdir/ directory...[m
- [1m[32m==>[m[1m Extracting sources...[m
- [1m[34m ->[m[1m Creating working copy of boltons git repo...[m
- [1m[32m==>[m[1m Sources are ready.[m
- [1m[32m==>[m[1m Making package: python-boltons 25.0.0-1 (Sat 08 Feb 2025 07:13:18 PM CET)[m
- [1m[32m==>[m[1m Checking runtime dependencies...[m
- [1m[32m==>[m[1m Checking buildtime dependencies...[m
- [1m[32m==>[m[1m Removing existing $pkgdir/ directory...[m
- [1m[32m==>[m[1m Starting build()...[m
- )0[1;67r[m[4l[?7h[67;1H
- [1m[32m==>[m[1m Starting check()...[m
- ============================= test session starts ==============================
- platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0
- rootdir: /home/usernameedited/.cache/yay/python-boltons/src/boltons
- configfile: pyproject.toml
- 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
- collected 616 items
- boltons/__init__.py .F.. [ 0%]
- boltons/cacheutils.py F.F [ 1%]
- boltons/debugutils.py .FF [ 1%]
- boltons/deprutils.py ..F [ 2%]
- boltons/dictutils.py FFF [ 2%]
- boltons/easterutils.py ..F [ 3%]
- boltons/ecoutils.py FFF [ 3%]
- boltons/excutils.py .FF [ 4%]
- boltons/fileutils.py F.F [ 4%]
- boltons/formatutils.py ..F [ 5%]
- boltons/funcutils.py .FF [ 5%]
- boltons/gcutils.py ..F [ 6%]
- boltons/ioutils.py ..F [ 6%]
- boltons/iterutils.py FFF [ 6%]
- boltons/jsonutils.py ..F [ 7%]
- boltons/listutils.py .FF [ 7%]
- boltons/mathutils.py ..F [ 8%]
- boltons/mboxutils.py ..F [ 8%]
- boltons/namedutils.py ..F [ 9%]
- boltons/pathutils.py ..F [ 9%]
- boltons/queueutils.py F.F [ 10%]
- boltons/setutils.py .FF [ 10%]
- boltons/socketutils.py F.F [ 11%]
- boltons/statsutils.py .FF [ 11%]
- boltons/strutils.py .FF [ 12%]
- boltons/tableutils.py ..F [ 12%]
- boltons/tbutils.py .FF [ 13%]
- boltons/timeutils.py FFF [ 13%]
- boltons/typeutils.py ..F [ 14%]
- boltons/urlutils.py FFF [ 14%]
- docs/conf.py FFF [ 15%]
- misc/bench_omd.py FFF [ 15%]
- misc/linkify_changelog.py ..F [ 16%]
- misc/table_html_app.py FFF [ 16%]
- tests/__init__.py ... [ 17%]
- tests/conftest.py ..F [ 17%]
- tests/test_cacheutils.py .FF.................. [ 21%]
- tests/test_debugutils_trace.py ..F...... [ 22%]
- tests/test_dictutils.py .FF........................... [ 27%]
- tests/test_ecoutils.py ..F.. [ 28%]
- tests/test_fileutils.py ..F...... [ 29%]
- tests/test_formatutils.py FFF..... [ 31%]
- tests/test_funcutils.py ..F..... [ 32%]
- tests/test_funcutils_fb.py ..F............... [ 35%]
- tests/test_funcutils_fb_py3.py FFF...................... [ 39%]
- tests/test_gcutils.py .FF.. [ 40%]
- tests/test_ioutils.py ..F............................................... [ 48%]
- ................................... [ 53%]
- tests/test_iterutils.py .FF......................................... [ 61%]
- tests/test_jsonutils.py ..F.. [ 61%]
- tests/test_listutils.py .FF.. [ 62%]
- tests/test_mathutils.py ..F........... [ 64%]
- tests/test_namedutils.py ..F... [ 65%]
- tests/test_queueutils.py ..F.. [ 66%]
- tests/test_setutils.py .FF..... [ 68%]
- tests/test_socketutils.py .FF........... [ 70%]
- tests/test_statsutils.py F.F. [ 70%]
- tests/test_statsutils_histogram.py F.F.. [ 71%]
- tests/test_strutils.py .FF.............. [ 74%]
- tests/test_tableutils.py ..F... [ 75%]
- tests/test_tbutils.py .FF.. [ 76%]
- tests/test_tbutils_parsed_exc.py ..F... [ 77%]
- tests/test_timeutils.py ..F.... [ 78%]
- tests/test_typeutils.py ..F... [ 79%]
- tests/test_urlutils.py ..F.............................................. [ 87%]
- ........................................................................ [ 99%]
- ...... [100%]
- =================================== FAILURES ===================================
- _________________________________ test session _________________________________
- mypy exited with status 1.
- ____________________________ boltons/cacheutils.py _____________________________
- 74: error: Name "RLock" already defined (possibly by an import) [no-redef]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/cacheutils.py
- _________________________________ test session _________________________________
- boltons/debugutils.py:175:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 174 | if isinstance(which, str):
- 175 | which_func = lambda attr_name, attr_val: attr_name == which
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 176 | elif callable(getattr(which, '__contains__', None)):
- 177 | which_func = lambda attr_name, attr_val: attr_name in which
- |
- = help: Rewrite `which_func` as a `def`
- boltons/debugutils.py:177:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 175 | which_func = lambda attr_name, attr_val: attr_name == which
- 176 | elif callable(getattr(which, '__contains__', None)):
- 177 | which_func = lambda attr_name, attr_val: attr_name in which
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 178 | elif which is None or callable(which):
- 179 | which_func = which
- |
- = help: Rewrite `which_func` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/debugutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/deprutils.py
- _____________________________ boltons/dictutils.py _____________________________
- 370: error: Signatures of "__ior__" and "__or__" are incompatible [misc]
- 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]
- 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]
- 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]
- 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]
- _________________________________ test session _________________________________
- boltons/dictutils.py:1013:16: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
- |
- 1012 | def __eq__(self, other):
- 1013 | return type(self) == type(other) and self.data == other.data
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ E721
- 1014 |
- 1015 | def __repr__(self):
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/dictutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/easterutils.py
- _____________________________ boltons/ecoutils.py ______________________________
- 174: error: Incompatible types in assignment (expression has type "Callable[[int], int]", variable has type "Callable[[Arg(int, 'k')], int]") [assignment]
- _________________________________ test session _________________________________
- boltons/ecoutils.py:185:12: F401 [*] `readline` imported but unused
- |
- 184 | try:
- 185 | import readline
- | ^^^^^^^^ F401
- 186 | except Exception:
- 187 | HAVE_READLINE = False
- |
- = help: Remove unused import: `readline`
- boltons/ecoutils.py:238:12: F401 [*] `threading` imported but unused
- |
- 237 | try:
- 238 | import threading
- | ^^^^^^^^^ F401
- 239 | HAVE_THREADING = True
- 240 | except Exception:
- |
- = help: Remove unused import: `threading`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/ecoutils.py
- _________________________________ test session _________________________________
- boltons/excutils.py:286:19: E702 Multiple statements on one line (semicolon)
- |
- 284 | main()
- 285 | except Exception:
- 286 | import pdb;pdb.post_mortem()
- | ^ E702
- 287 | raise
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/excutils.py
- _____________________________ boltons/fileutils.py _____________________________
- 276: error: Module has no attribute "windll" [attr-defined]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/fileutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/formatutils.py
- _________________________________ test session _________________________________
- boltons/funcutils.py:228:34: E701 Multiple statements on one line (colon)
- |
- 226 | def __eq__(self, other): return self >= other and self <= other
- 227 |
- 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
- | ^ E701
- 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
- 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
- |
- boltons/funcutils.py:229:34: E701 Multiple statements on one line (colon)
- |
- 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
- 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
- | ^ E701
- 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
- |
- boltons/funcutils.py:230:34: E701 Multiple statements on one line (colon)
- |
- 228 | if not hasattr(cls, '__lt__'): cls.__lt__ = __lt__
- 229 | if not hasattr(cls, '__gt__'): cls.__gt__ = __gt__
- 230 | if not hasattr(cls, '__eq__'): cls.__eq__ = __eq__
- | ^ E701
- 231 |
- 232 | return cls
- |
- boltons/funcutils.py:390:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 389 | if opt_key is None:
- 390 | opt_key = lambda v: v is None
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 391 | assert callable(opt_key)
- |
- = help: Rewrite `opt_key` as a `def`
- boltons/funcutils.py:441:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 440 | if opt_key is None:
- 441 | opt_key = lambda v: v is None
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 442 | assert callable(opt_key)
- |
- = help: Rewrite `opt_key` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/funcutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/gcutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/ioutils.py
- _____________________________ boltons/iterutils.py _____________________________
- 346: error: All conditional function variants must have identical signatures [misc]
- 346: note: Original:
- 346: note: def postprocess(chk: Any) -> Any
- 346: note: Redefinition:
- 346: note: def postprocess(chk: Any, _sep: Any = ...) -> Any
- _________________________________ test session _________________________________
- boltons/iterutils.py:45:8: F401 [*] `codecs` imported but unused
- |
- 43 | import math
- 44 | import time
- 45 | import codecs
- | ^^^^^^ F401
- 46 | import random
- 47 | import itertools
- |
- = help: Remove unused import: `codecs`
- boltons/iterutils.py:1317:33: F841 [*] Local variable `exc` is assigned to but never used
- |
- 1315 | except (KeyError, IndexError) as exc:
- 1316 | raise PathAccessError(exc, seg, path)
- 1317 | except TypeError as exc:
- | ^^^ F841
- 1318 | # either string index in a list, or a parent that
- 1319 | # doesn't support indexing
- |
- = help: Remove assignment to unused variable `exc`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/iterutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/jsonutils.py
- _________________________________ test session _________________________________
- boltons/listutils.py:124:19: F841 Local variable `len_self` is assigned to but never used
- |
- 122 | if list_idx < 0:
- 123 | list_idx += len(self.lists)
- 124 | cur_list, len_self = self.lists[list_idx], len(self)
- | ^^^^^^^^ F841
- 125 | size_limit = self._cur_size_limit
- 126 | if len(cur_list) > size_limit:
- |
- = help: Remove assignment to unused variable `len_self`
- boltons/listutils.py:227:52: E741 Ambiguous variable name: `l`
- |
- 226 | def __reversed__(self):
- 227 | return chain.from_iterable(reversed(l) for l in reversed(self.lists))
- | ^ E741
- 228 |
- 229 | def __len__(self):
- |
- boltons/listutils.py:230:32: E741 Ambiguous variable name: `l`
- |
- 229 | def __len__(self):
- 230 | return sum([len(l) for l in self.lists])
- | ^ E741
- 231 |
- 232 | def __contains__(self, item):
- |
- boltons/listutils.py:267:13: F841 Local variable `start` is assigned to but never used
- |
- 265 | def __setitem__(self, index, item):
- 266 | try:
- 267 | start, stop, step = index.start, index.stop, index.step
- | ^^^^^ F841
- 268 | except AttributeError:
- 269 | index = operator.index(index)
- |
- = help: Remove assignment to unused variable `start`
- boltons/listutils.py:267:20: F841 Local variable `stop` is assigned to but never used
- |
- 265 | def __setitem__(self, index, item):
- 266 | try:
- 267 | start, stop, step = index.start, index.stop, index.step
- | ^^^^ F841
- 268 | except AttributeError:
- 269 | index = operator.index(index)
- |
- = help: Remove assignment to unused variable `stop`
- boltons/listutils.py:267:26: F841 Local variable `step` is assigned to but never used
- |
- 265 | def __setitem__(self, index, item):
- 266 | try:
- 267 | start, stop, step = index.start, index.stop, index.step
- | ^^^^ F841
- 268 | except AttributeError:
- 269 | index = operator.index(index)
- |
- = help: Remove assignment to unused variable `step`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/listutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/mathutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/mboxutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/namedutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/pathutils.py
- ____________________________ boltons/queueutils.py _____________________________
- 80: error: Cannot assign multiple types to name "BList" without an explicit "Type[...]" annotation [misc]
- 80: error: Incompatible types in assignment (expression has type "type[list[Any]]", variable has type "type[BarrelList]") [assignment]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/queueutils.py
- _________________________________ test session _________________________________
- boltons/setutils.py:616:24: E713 [*] Test for membership should be `not in`
- |
- 614 | def __contains__(self, item):
- 615 | if self._included is None:
- 616 | return not item in self._excluded
- | ^^^^^^^^^^^^^^^^^^^^^^ E713
- 617 | return item in self._included
- |
- = help: Convert to `not in`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/setutils.py
- ____________________________ boltons/socketutils.py ____________________________
- 73: error: Name "RLock" already defined (possibly by an import) [no-redef]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/socketutils.py
- _________________________________ test session _________________________________
- boltons/statsutils.py:319:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 317 | """
- 318 | sorted_data = self._get_sorted_data()
- 319 | gq = lambda q: self._get_quantile(sorted_data, q)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 320 | return (gq(0.25) + (2 * gq(0.5)) + gq(0.75)) / 4.0
- 321 | trimean = _StatsProperty('trimean', _calc_trimean)
- |
- = help: Rewrite `gq` as a `def`
- boltons/statsutils.py:785:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 783 | lines = []
- 784 | if not format_bin:
- 785 | format_bin = lambda v: v
- | ^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 786 | if not width:
- 787 | try:
- |
- = help: Rewrite `format_bin` as a `def`
- boltons/statsutils.py:798:34: E741 Ambiguous variable name: `l`
- |
- 797 | labels = ['%s' % format_bin(b) for b in bins]
- 798 | label_cols = max([len(l) for l in labels])
- | ^ E741
- 799 | tmp_line = '{}: {} #'.format('x' * label_cols, count_max)
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/statsutils.py
- _________________________________ test session _________________________________
- boltons/strutils.py:38:8: F401 [*] `builtins` imported but unused
- |
- 38 | import builtins
- | ^^^^^^^^ F401
- 39 | import re
- 40 | import sys
- |
- = help: Remove unused import: `builtins`
- boltons/strutils.py:285:52: F601 Dictionary key literal `'formula'` repeated
- |
- 283 | 'embargo': 'embargoes', 'emphasis': 'emphases', 'erratum': 'errata',
- 284 | 'fireman': 'firemen', 'fish': 'fish', 'focus': 'foci',
- 285 | 'foot': 'feet', 'formula': 'formulae', 'formula': 'formulas',
- | ^^^^^^^^^ F601
- 286 | 'fungus': 'fungi', 'genus': 'genera', 'goose': 'geese',
- 287 | 'half': 'halves', 'hero': 'heroes', 'hippopotamus': 'hippopotami',
- |
- = help: Remove repeated key literal `'formula'`
- boltons/strutils.py:402:24: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
- |
- 401 | # Transform back the result to the same bytearray type provided by the user.
- 402 | if target_type and target_type != type(cleaned):
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E721
- 403 | cleaned = target_type(cleaned, 'utf-8')
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/strutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/tableutils.py
- _________________________________ test session _________________________________
- boltons/tbutils.py:525:29: E741 Ambiguous variable name: `l`
- |
- 523 | start_line = self.lineno - len(self.pre_lines)
- 524 | pre_lines = [{'lineno': start_line + i, 'line': str(l)}
- 525 | for i, l in enumerate(self.pre_lines)]
- | ^ E741
- 526 | # trim off leading empty lines
- 527 | for i, item in enumerate(pre_lines):
- |
- boltons/tbutils.py:536:30: E741 Ambiguous variable name: `l`
- |
- 534 | # now post_lines
- 535 | post_lines = [{'lineno': self.lineno + i, 'line': str(l)}
- 536 | for i, l in enumerate(self.post_lines)]
- | ^ E741
- 537 | _last = 0
- 538 | for i, item in enumerate(post_lines):
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/tbutils.py
- _____________________________ boltons/timeutils.py _____________________________
- 131: error: List comprehension has incompatible type List[tuple[timedelta, timedelta, str]]; expected List[tuple[int, timedelta, str]] [misc]
- _________________________________ test session _________________________________
- boltons/timeutils.py:370:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 369 | if stop is None:
- 370 | finished = lambda now, stop: False
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 371 | elif start <= stop:
- 372 | finished = operator.gt if inclusive else operator.ge
- |
- = help: Rewrite `finished` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/timeutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/typeutils.py
- _____________________________ boltons/urlutils.py ______________________________
- 826: error: Module has no attribute "windll" [attr-defined]
- 827: error: Module has no attribute "windll" [attr-defined]
- 829: error: All conditional function variants must have identical signatures [misc]
- 829: note: Original:
- 829: note: def inet_pton(int, str, /) -> bytes
- 829: note: Redefinition:
- 829: note: def inet_pton(address_family: Any, ip_string: Any) -> Any
- 1276: error: Signatures of "__ior__" and "__or__" are incompatible [misc]
- 1553: error: Incompatible import of "OrderedMultiDict" (imported name has type "type[boltons.dictutils.OrderedMultiDict]", local name has type "type[boltons.urlutils.OrderedMultiDict]") [assignment]
- _________________________________ test session _________________________________
- boltons/urlutils.py:979:1: E402 Module level import not at top of file
- |
- 977 | """
- 978 |
- 979 | from collections.abc import KeysView, ValuesView, ItemsView
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E402
- 980 | from itertools import zip_longest
- |
- boltons/urlutils.py:980:1: E402 Module level import not at top of file
- |
- 979 | from collections.abc import KeysView, ValuesView, ItemsView
- 980 | from itertools import zip_longest
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E402
- 981 |
- 982 | try:
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: boltons/urlutils.py
- _________________________________ docs/conf.py _________________________________
- 126: error: Skipping analyzing "sphinx_rtd_theme": module is installed, but missing library stubs or py.typed marker [import-untyped]
- 126: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- 231: error: Need type annotation for "latex_elements" (hint: "latex_elements: dict[<type>, <type>] = ...") [var-annotated]
- _________________________________ test session _________________________________
- docs/conf.py:39:5: E731 Do not assign a `lambda` expression, use a `def`
- |
- 37 | tot_type_count = 0
- 38 | tot_func_count = 0
- 39 | ignore = lambda attr_name: attr_name.startswith('_')
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 40 | for _, mod_name, _ in pkgutil.iter_modules([PACKAGE_PATH]):
- 41 | if not mod_name.endswith('utils'):
- |
- = help: Rewrite `ignore` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: docs/conf.py
- ______________________________ misc/bench_omd.py _______________________________
- 6: error: Cannot find implementation or library stub for module named "lithoxyl" [import-not-found]
- 9: error: Cannot find implementation or library stub for module named "dictutils" [import-not-found]
- 19: error: No overload variant of "range" matches argument type "float" [call-overload]
- 19: note: Possible overload variants:
- 19: note: def __new__(cls, SupportsIndex, /) -> range
- 19: note: def __new__(cls, SupportsIndex, SupportsIndex, SupportsIndex = ..., /) -> range
- 32: error: Incompatible types in assignment (expression has type "tuple[Any, Any, Any, type[MultiDict[Any, Any]]]", variable has type "tuple[Any, Any]") [assignment]
- _________________________________ test session _________________________________
- misc/bench_omd.py:5:8: F401 [*] `time` imported but unused
- |
- 3 | sys.path.append('/home/mahmoud/projects/lithoxyl/')
- 4 |
- 5 | import time
- | ^^^^ F401
- 6 | import lithoxyl
- 7 | from lithoxyl import sinks, logger
- |
- = help: Remove unused import: `time`
- misc/bench_omd.py:7:22: F401 [*] `lithoxyl.sinks` imported but unused
- |
- 5 | import time
- 6 | import lithoxyl
- 7 | from lithoxyl import sinks, logger
- | ^^^^^ F401
- 8 |
- 9 | from dictutils import OMD, FastIterOrderedMultiDict
- |
- = help: Remove unused import
- misc/bench_omd.py:7:29: F401 [*] `lithoxyl.logger` imported but unused
- |
- 5 | import time
- 6 | import lithoxyl
- 7 | from lithoxyl import sinks, logger
- | ^^^^^^ F401
- 8 |
- 9 | from dictutils import OMD, FastIterOrderedMultiDict
- |
- = help: Remove unused import
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: misc/bench_omd.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: misc/linkify_changelog.py
- ____________________________ misc/table_html_app.py ____________________________
- 4: error: Cannot find implementation or library stub for module named "clastic" [import-not-found]
- 6: error: Cannot find implementation or library stub for module named "clastic.render" [import-not-found]
- 7: error: Cannot find implementation or library stub for module named "clastic.middleware" [import-not-found]
- 9: error: Cannot find implementation or library stub for module named "clastic.sinter" [import-not-found]
- 22: error: Cannot find implementation or library stub for module named "urllib2" [import-not-found]
- _________________________________ test session _________________________________
- misc/table_html_app.py:44:9: E722 Do not use bare `except`
- |
- 42 | try:
- 43 | func_name = route.endpoint.func_name
- 44 | except:
- | ^^^^^^ E722
- 45 | func_name = repr(route.endpoint)
- 46 | args, _, _, _ = getargspec(route.endpoint)
- |
- misc/table_html_app.py:156:5: F841 Local variable `atr` is assigned to but never used
- |
- 154 | rsc = {'data': _DATA}
- 155 | gpm = GetParamMiddleware('url')
- 156 | atr = AutoTableRenderer(max_depth=5)
- | ^^^ F841
- 157 | render_basic = BasicRender()
- 158 | app = Application([('/', ident_ep, render_basic),
- |
- = help: Remove assignment to unused variable `atr`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: misc/table_html_app.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/conftest.py
- _________________________________ test session _________________________________
- tests/test_cacheutils.py:2:8: F401 [*] `sys` imported but unused
- |
- 1 | import string
- 2 | import sys
- | ^^^ F401
- 3 | from abc import abstractmethod, ABCMeta
- |
- = help: Remove unused import: `sys`
- tests/test_cacheutils.py:279:5: E731 Do not assign a `lambda` expression, use a `def`
- |
- 277 | def test_callable_cached_dec():
- 278 | lru = LRU()
- 279 | get_lru = lambda: lru
- | ^^^^^^^^^^^^^^^^^^^^^ E731
- 280 |
- 281 | inner_func = CountingCallable()
- |
- = help: Rewrite `get_lru` as a `def`
- tests/test_cacheutils.py:426:12: F811 [*] Redefinition of unused `sys` from line 2
- |
- 425 | def test_min_id_map():
- 426 | import sys
- | ^^^ F811
- 427 | if '__pypy__' in sys.builtin_module_names:
- 428 | return # TODO: pypy still needs some work
- |
- = help: Remove definition: `sys`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_cacheutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_debugutils_trace.py
- _________________________________ test session _________________________________
- tests/test_dictutils.py:311:1: E402 Module level import not at top of file
- |
- 309 | ## END OMD TESTS
- 310 |
- 311 | import string
- | ^^^^^^^^^^^^^ E402
- 312 |
- 313 | def test_subdict():
- |
- tests/test_dictutils.py:540:20: E712 Avoid equality comparisons to `False`; use `if not attrname:` for false checks
- |
- 539 | if getattr(FrozenDict, attrname) == getattr(dict, attrname, None) and attrname not in through_methods:
- 540 | assert attrname == False
- | ^^^^^^^^^^^^^^^^^ E712
- 541 | ret.append(attrname)
- |
- = help: Replace with `not attrname`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_dictutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_ecoutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_fileutils.py
- __________________________ tests/test_formatutils.py ___________________________
- 11: error: First argument to namedtuple() should be "PFAT", not "PositionalFormatArgTest" [name-match]
- _________________________________ test session _________________________________
- tests/test_formatutils.py:35:5: F841 Local variable `results` is assigned to but never used
- |
- 34 | def test_get_fstr_args():
- 35 | results = []
- | ^^^^^^^ F841
- 36 | for t in _TEST_TMPLS:
- 37 | inferred_t = infer_positional_format_args(t)
- |
- = help: Remove assignment to unused variable `results`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_formatutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_funcutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_funcutils_fb.py
- ________________________ tests/test_funcutils_fb_py3.py ________________________
- 34: error: Incompatible default for argument "c" (default has type "tuple[()]", argument has type "defaultdict[Any, Any]") [assignment]
- 35: error: Incompatible return value type (got "tuple[int, float, defaultdict[Any, Any]]", expected "defaultdict[Any, Any]") [return-value]
- _________________________________ test session _________________________________
- tests/test_funcutils_fb_py3.py:62:5: E731 Do not assign a `lambda` expression, use a `def`
- |
- 60 | def test_copy_function_kw_defaults_py3():
- 61 | # test that the copy works with keyword-only defaults
- 62 | f = lambda x, *, y=2: x * y
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 63 | f_copy = copy_function(f)
- 64 | assert f(21) == f_copy(21) == 42
- |
- = help: Rewrite `f` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_funcutils_fb_py3.py
- _________________________________ test session _________________________________
- tests/test_gcutils.py:14:9: F841 Local variable `tt` is assigned to but never used
- |
- 12 | pass
- 13 |
- 14 | tt = TestType()
- | ^^ F841
- 15 |
- 16 | assert len(get_all(TestType)) == 1
- |
- = help: Remove assignment to unused variable `tt`
- tests/test_gcutils.py:29:9: F841 Local variable `x` is assigned to but never used
- |
- 28 | start = time.time()
- 29 | x = [{} for x in range(COUNT)]
- | ^ F841
- 30 | with_gc_time = time.time() - start
- |
- = help: Remove assignment to unused variable `x`
- tests/test_gcutils.py:32:9: F841 Local variable `time_diff` is assigned to but never used
- |
- 30 | with_gc_time = time.time() - start
- 31 |
- 32 | time_diff = no_gc_time < with_gc_time
- | ^^^^^^^^^ F841
- |
- = help: Remove assignment to unused variable `time_diff`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_gcutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_ioutils.py
- _________________________________ test session _________________________________
- tests/test_iterutils.py:20:1: E731 Do not assign a `lambda` expression, use a `def`
- |
- 18 | CUR_PATH = os.path.abspath(__file__)
- 19 |
- 20 | isbool = lambda x: isinstance(x, bool)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 21 | isint = lambda x: isinstance(x, int)
- 22 | odd = lambda x: isint(x) and x % 2 != 0
- |
- = help: Rewrite `isbool` as a `def`
- tests/test_iterutils.py:21:1: E731 Do not assign a `lambda` expression, use a `def`
- |
- 20 | isbool = lambda x: isinstance(x, bool)
- 21 | isint = lambda x: isinstance(x, int)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 22 | odd = lambda x: isint(x) and x % 2 != 0
- 23 | even = lambda x: isint(x) and x % 2 == 0
- |
- = help: Rewrite `isint` as a `def`
- tests/test_iterutils.py:22:1: E731 Do not assign a `lambda` expression, use a `def`
- |
- 20 | isbool = lambda x: isinstance(x, bool)
- 21 | isint = lambda x: isinstance(x, int)
- 22 | odd = lambda x: isint(x) and x % 2 != 0
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 23 | even = lambda x: isint(x) and x % 2 == 0
- 24 | is_meaning_of_life = lambda x: x == 42
- |
- = help: Rewrite `odd` as a `def`
- tests/test_iterutils.py:23:1: E731 Do not assign a `lambda` expression, use a `def`
- |
- 21 | isint = lambda x: isinstance(x, int)
- 22 | odd = lambda x: isint(x) and x % 2 != 0
- 23 | even = lambda x: isint(x) and x % 2 == 0
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 24 | is_meaning_of_life = lambda x: x == 42
- |
- = help: Rewrite `even` as a `def`
- tests/test_iterutils.py:24:1: E731 Do not assign a `lambda` expression, use a `def`
- |
- 22 | odd = lambda x: isint(x) and x % 2 != 0
- 23 | even = lambda x: isint(x) and x % 2 == 0
- 24 | is_meaning_of_life = lambda x: x == 42
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- |
- = help: Rewrite `is_meaning_of_life` as a `def`
- tests/test_iterutils.py:33:9: E741 Ambiguous variable name: `l`
- |
- 31 | """
- 32 | s = set()
- 33 | l = []
- | ^ E741
- 34 | assert first(s) is None
- 35 | assert first(l) is None
- |
- tests/test_iterutils.py:42:9: E741 Ambiguous variable name: `l`
- |
- 40 | """
- 41 | s = set()
- 42 | l = []
- | ^ E741
- 43 | assert first(s, default=42) == 42
- 44 | assert first(l, default=3.14) == 3.14
- |
- tests/test_iterutils.py:46:9: E741 Ambiguous variable name: `l`
- |
- 44 | assert first(l, default=3.14) == 3.14
- 45 |
- 46 | l = [0, False, []]
- | ^ E741
- 47 | assert first(l, default=3.14) == 3.14
- |
- tests/test_iterutils.py:53:9: E741 Ambiguous variable name: `l`
- |
- 51 | Success cases with and without a key function.
- 52 | """
- 53 | l = [(), 0, False, 3, []]
- | ^ E741
- 54 |
- 55 | assert first(l, default=42) == 3
- |
- tests/test_iterutils.py:200:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 198 | def test_reraise_visit(self):
- 199 | root = {'A': 'b', 1: 2}
- 200 | key_to_lower = lambda p, k, v: (k.lower(), v)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 201 | with pytest.raises(AttributeError):
- 202 | remap(root, key_to_lower)
- |
- = help: Rewrite `key_to_lower` as a `def`
- tests/test_iterutils.py:211:9: E731 Do not assign a `lambda` expression, use a `def`
- |
- 209 | orig = {'a': 1, 'b': None, 'c': [3, None, 4, None]}
- 210 | ref = {'a': 1, 'c': [3, 4]}
- 211 | drop_none = lambda p, k, v: v is not None
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 212 | remapped = remap(orig, visit=drop_none)
- 213 | assert remapped == ref
- |
- = help: Rewrite `drop_none` as a `def`
- tests/test_iterutils.py:272:13: E722 Do not use bare `except`
- |
- 270 | try:
- 271 | all_interests.update(value['interests'])
- 272 | except:
- | ^^^^^^ E722
- 273 | pass
- 274 | return default_enter(path, key, value)
- |
- tests/test_iterutils.py:296:13: E722 Do not use bare `except`
- |
- 294 | try:
- 295 | ret['review_length'] = len(ret['review'])
- 296 | except:
- | ^^^^^^ E722
- 297 | pass
- 298 | return ret
- |
- tests/test_iterutils.py:328:13: E722 Do not use bare `except`
- |
- 326 | new_parent.update(base_obj)
- 327 | base_obj['id'] += 1
- 328 | except:
- | ^^^^^^ E722
- 329 | pass
- 330 | return new_parent, new_items
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_iterutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_jsonutils.py
- _________________________________ test session _________________________________
- tests/test_listutils.py:1:8: F401 [*] `sys` imported but unused
- |
- 1 | import sys
- | ^^^ F401
- 2 |
- 3 | from boltons.listutils import SplayList, BarrelList
- |
- = help: Remove unused import: `sys`
- tests/test_listutils.py:121:25: F841 [*] Local variable `e` is assigned to but never used
- |
- 119 | try:
- 120 | tune() # main()
- 121 | except Exception as e:
- | ^ F841
- 122 | import pdb;pdb.post_mortem()
- 123 | raise
- |
- = help: Remove assignment to unused variable `e`
- tests/test_listutils.py:122:19: E702 Multiple statements on one line (semicolon)
- |
- 120 | tune() # main()
- 121 | except Exception as e:
- 122 | import pdb;pdb.post_mortem()
- | ^ E702
- 123 | raise
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_listutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_mathutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_namedutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_queueutils.py
- _________________________________ test session _________________________________
- tests/test_setutils.py:137:37: E701 Multiple statements on one line (colon)
- |
- 135 | cab.add(complement(frozenset())) # frozen complement can be a member of complement set
- 136 | assert len({complement(frozenset()): 1, complement(frozenset()): 2}) == 1 # hash works
- 137 | with raises(NotImplementedError): cab.pop()
- | ^ E701
- 138 | with raises(NotImplementedError): len(cab)
- 139 | with raises(NotImplementedError): iter(cab)
- |
- tests/test_setutils.py:138:37: E701 Multiple statements on one line (colon)
- |
- 136 | assert len({complement(frozenset()): 1, complement(frozenset()): 2}) == 1 # hash works
- 137 | with raises(NotImplementedError): cab.pop()
- 138 | with raises(NotImplementedError): len(cab)
- | ^ E701
- 139 | with raises(NotImplementedError): iter(cab)
- 140 | ~cab
- |
- tests/test_setutils.py:139:37: E701 Multiple statements on one line (colon)
- |
- 137 | with raises(NotImplementedError): cab.pop()
- 138 | with raises(NotImplementedError): len(cab)
- 139 | with raises(NotImplementedError): iter(cab)
- | ^ E701
- 140 | ~cab
- 141 | cab.complement()
- |
- tests/test_setutils.py:153:15: E702 Multiple statements on one line (semicolon)
- |
- 151 | ops = OpOverloader()
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- | ^ E702
- 154 | a > b; a >= b; a < b; a <= b
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:153:23: E702 Multiple statements on one line (semicolon)
- |
- 151 | ops = OpOverloader()
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- | ^ E702
- 154 | a > b; a >= b; a < b; a <= b
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:153:31: E702 Multiple statements on one line (semicolon)
- |
- 151 | ops = OpOverloader()
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- | ^ E702
- 154 | a > b; a >= b; a < b; a <= b
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:154:14: E702 Multiple statements on one line (semicolon)
- |
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- 154 | a > b; a >= b; a < b; a <= b
- | ^ E702
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:154:22: E702 Multiple statements on one line (semicolon)
- |
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- 154 | a > b; a >= b; a < b; a <= b
- | ^ E702
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:154:29: E702 Multiple statements on one line (semicolon)
- |
- 152 | def opsmash(a, b):
- 153 | a &= b; a |= b; a -= b; a ^= b
- 154 | a > b; a >= b; a < b; a <= b
- | ^ E702
- 155 | return (((a & b) | b) - b) ^ b
- |
- tests/test_setutils.py:157:27: E701 Multiple statements on one line (colon)
- |
- 155 | return (((a & b) | b) - b) ^ b
- 156 |
- 157 | with raises(TypeError): opsmash(cab, object())
- | ^ E701
- 158 | assert opsmash(ops, cab) == ops
- 159 | assert opsmash(cab, ops) == ops
- |
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_setutils.py
- _________________________________ test session _________________________________
- tests/test_socketutils.py:282:5: E731 Do not assign a `lambda` expression, use a `def`
- |
- 280 | server_socket.listen(100)
- 281 | ip, port = server_socket.getsockname()
- 282 | start_server = lambda: netstring_server(server_socket)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 283 | threading.Thread(target=start_server).start()
- |
- = help: Rewrite `start_server` as a `def`
- tests/test_socketutils.py:409:5: E731 Do not assign a `lambda` expression, use a `def`
- |
- 407 | server_socket.listen(100)
- 408 | ip, port = server_socket.getsockname()
- 409 | start_server = lambda: netstring_server_timeout_override(server_socket)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E731
- 410 | threading.Thread(target=start_server).start()
- |
- = help: Rewrite `start_server` as a `def`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_socketutils.py
- ___________________________ tests/test_statsutils.py ___________________________
- 16: error: Cannot find implementation or library stub for module named "statsutils" [import-not-found]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_statsutils.py
- ______________________ tests/test_statsutils_histogram.py ______________________
- 27: error: Need type annotation for "EMPTY_DATA" (hint: "EMPTY_DATA: list[<type>] = ...") [var-annotated]
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_statsutils_histogram.py
- _________________________________ test session _________________________________
- tests/test_strutils.py:54:12: E712 Avoid equality comparisons to `True`; use `if strutils.is_uuid(uuid.uuid4()):` for truth checks
- |
- 53 | def test_is_uuid():
- 54 | assert strutils.is_uuid(uuid.uuid4()) == True
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
- 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
- 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
- |
- = help: Replace with `strutils.is_uuid(uuid.uuid4())`
- 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
- |
- 53 | def test_is_uuid():
- 54 | assert strutils.is_uuid(uuid.uuid4()) == True
- 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
- 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
- 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
- |
- = help: Replace with `not strutils.is_uuid(uuid.uuid4(), version=1)`
- tests/test_strutils.py:56:12: E712 Avoid equality comparisons to `True`; use `if strutils.is_uuid(str(uuid.uuid4())):` for truth checks
- |
- 54 | assert strutils.is_uuid(uuid.uuid4()) == True
- 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
- 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
- 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
- 58 | assert strutils.is_uuid(set('garbage')) == False
- |
- = help: Replace with `strutils.is_uuid(str(uuid.uuid4()))`
- 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
- |
- 55 | assert strutils.is_uuid(uuid.uuid4(), version=1) == False
- 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
- 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
- 58 | assert strutils.is_uuid(set('garbage')) == False
- |
- = help: Replace with `not strutils.is_uuid(str(uuid.uuid4()), version=1)`
- tests/test_strutils.py:58:12: E712 Avoid equality comparisons to `False`; use `if not strutils.is_uuid(set('garbage')):` for false checks
- |
- 56 | assert strutils.is_uuid(str(uuid.uuid4())) == True
- 57 | assert strutils.is_uuid(str(uuid.uuid4()), version=1) == False
- 58 | assert strutils.is_uuid(set('garbage')) == False
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
- |
- = help: Replace with `not strutils.is_uuid(set('garbage'))`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_strutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_tableutils.py
- _________________________________ test session _________________________________
- tests/test_tbutils.py:29:5: E722 Do not use bare `except`
- |
- 27 | try:
- 28 | test()
- 29 | except:
- | ^^^^^^ E722
- 30 | exc, _, exc_traceback = sys.exc_info()
- 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
- |
- tests/test_tbutils.py:32:9: F841 Local variable `exc_info` is assigned to but never used
- |
- 30 | exc, _, exc_traceback = sys.exc_info()
- 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
- 32 | exc_info = ExceptionInfo.from_exc_info(*sys.exc_info())
- | ^^^^^^^^ F841
- 33 | exc_info2 = ExceptionInfo.from_current()
- 34 | tbi_str = str(tbi)
- |
- = help: Remove assignment to unused variable `exc_info`
- tests/test_tbutils.py:33:9: F841 Local variable `exc_info2` is assigned to but never used
- |
- 31 | tbi = TracebackInfo.from_traceback(exc_traceback)
- 32 | exc_info = ExceptionInfo.from_exc_info(*sys.exc_info())
- 33 | exc_info2 = ExceptionInfo.from_current()
- | ^^^^^^^^^ F841
- 34 | tbi_str = str(tbi)
- 35 | print_exception(*sys.exc_info(), file=fake_stderr2)
- |
- = help: Remove assignment to unused variable `exc_info2`
- tests/test_tbutils.py:66:9: F841 Local variable `x` is assigned to but never used
- |
- 64 | return func2()
- 65 | def func2():
- 66 | x = 5
- | ^ F841
- 67 | return func3()
- 68 | def func3():
- |
- = help: Remove assignment to unused variable `x`
- tests/test_tbutils.py:84:9: F841 Local variable `a` is assigned to but never used
- |
- 83 | def func_a():
- 84 | a = 1
- | ^ F841
- 85 | raise Exception('func_a exception')
- 86 | def func_b():
- |
- = help: Remove assignment to unused variable `a`
- tests/test_tbutils.py:87:9: F841 Local variable `b` is assigned to but never used
- |
- 85 | raise Exception('func_a exception')
- 86 | def func_b():
- 87 | b = 2
- | ^ F841
- 88 | return func_a()
- 89 | def func_c():
- |
- = help: Remove assignment to unused variable `b`
- tests/test_tbutils.py:90:9: F841 Local variable `c` is assigned to but never used
- |
- 88 | return func_a()
- 89 | def func_c():
- 90 | c = 3
- | ^ F841
- 91 | return func_b()
- |
- = help: Remove assignment to unused variable `c`
- tests/test_tbutils.py:95:25: F841 [*] Local variable `e` is assigned to but never used
- |
- 93 | try:
- 94 | func_c()
- 95 | except Exception as e:
- | ^ F841
- 96 | ctx_ei = ContextualExceptionInfo.from_current()
- 97 | ctx_ei_str = ctx_ei.get_formatted()
- |
- = help: Remove assignment to unused variable `e`
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_tbutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_tbutils_parsed_exc.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_timeutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_typeutils.py
- _________________________________ test session _________________________________
- File would be reformatted
- ----------------------------- Captured stdout call -----------------------------
- Would reformat: tests/test_urlutils.py
- =============================== warnings summary ===============================
- tests/conftest.py:8
- /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)
- see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
- def pytest_ignore_collect(path, config):
- -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- ---------- coverage: platform linux, python 3.13.1-final-0 -----------
- Name Stmts Miss Cover
- --------------------------------------------------------
- boltons/__init__.py 0 0 100%
- boltons/cacheutils.py 410 42 90%
- boltons/debugutils.py 147 39 73%
- boltons/dictutils.py 553 127 77%
- boltons/ecoutils.py 186 71 62%
- boltons/fileutils.py 358 217 39%
- boltons/formatutils.py 150 25 83%
- boltons/funcutils.py 360 89 75%
- boltons/gcutils.py 33 5 85%
- boltons/ioutils.py 330 24 93%
- boltons/iterutils.py 545 208 62%
- boltons/jsonutils.py 136 64 53%
- boltons/listutils.py 212 74 65%
- boltons/mathutils.py 113 17 85%
- boltons/namedutils.py 104 22 79%
- boltons/queueutils.py 86 17 80%
- boltons/setutils.py 591 224 62%
- boltons/socketutils.py 313 49 84%
- boltons/statsutils.py 280 103 63%
- boltons/strutils.py 382 187 51%
- boltons/tableutils.py 285 78 73%
- boltons/tbutils.py 360 85 76%
- boltons/timeutils.py 178 85 52%
- boltons/typeutils.py 52 23 56%
- boltons/urlutils.py 708 287 59%
- tests/__init__.py 0 0 100%
- tests/conftest.py 15 1 93%
- tests/test_cacheutils.py 308 9 97%
- tests/test_debugutils_trace.py 55 0 100%
- tests/test_dictutils.py 381 4 99%
- tests/test_ecoutils.py 8 0 100%
- tests/test_fileutils.py 62 0 100%
- tests/test_formatutils.py 43 0 100%
- tests/test_funcutils.py 55 0 100%
- tests/test_funcutils_fb.py 191 19 90%
- tests/test_funcutils_fb_py3.py 156 13 92%
- tests/test_gcutils.py 21 0 100%
- tests/test_ioutils.py 325 6 98%
- tests/test_iterutils.py 366 1 99%
- tests/test_jsonutils.py 26 0 100%
- tests/test_listutils.py 72 28 61%
- tests/test_mathutils.py 73 0 100%
- tests/test_namedutils.py 17 0 100%
- tests/test_queueutils.py 38 1 97%
- tests/test_setutils.py 160 14 91%
- tests/test_socketutils.py 301 24 92%
- tests/test_statsutils.py 19 9 53%
- tests/test_statsutils_histogram.py 34 2 94%
- tests/test_strutils.py 68 0 100%
- tests/test_tableutils.py 26 0 100%
- tests/test_tbutils.py 74 3 96%
- tests/test_tbutils_parsed_exc.py 26 0 100%
- tests/test_timeutils.py 39 0 100%
- tests/test_typeutils.py 12 0 100%
- tests/test_urlutils.py 214 5 98%
- --------------------------------------------------------
- TOTAL 10057 2301 77%
- ===================================== mypy =====================================
- Found 34 errors in 16 files (checked 64 source files)
- =========================== short test summary info ============================
- FAILED boltons/__init__.py::mypy-status
- FAILED boltons/cacheutils.py::mypy
- FAILED boltons/cacheutils.py::ruff::format
- FAILED boltons/debugutils.py::ruff
- FAILED boltons/debugutils.py::ruff::format
- FAILED boltons/deprutils.py::ruff::format
- FAILED boltons/dictutils.py::mypy
- FAILED boltons/dictutils.py::ruff
- FAILED boltons/dictutils.py::ruff::format
- FAILED boltons/easterutils.py::ruff::format
- FAILED boltons/ecoutils.py::mypy
- FAILED boltons/ecoutils.py::ruff
- FAILED boltons/ecoutils.py::ruff::format
- FAILED boltons/excutils.py::ruff
- FAILED boltons/excutils.py::ruff::format
- FAILED boltons/fileutils.py::mypy
- FAILED boltons/fileutils.py::ruff::format
- FAILED boltons/formatutils.py::ruff::format
- FAILED boltons/funcutils.py::ruff
- FAILED boltons/funcutils.py::ruff::format
- FAILED boltons/gcutils.py::ruff::format
- FAILED boltons/ioutils.py::ruff::format
- FAILED boltons/iterutils.py::mypy
- FAILED boltons/iterutils.py::ruff
- FAILED boltons/iterutils.py::ruff::format
- FAILED boltons/jsonutils.py::ruff::format
- FAILED boltons/listutils.py::ruff
- FAILED boltons/listutils.py::ruff::format
- FAILED boltons/mathutils.py::ruff::format
- FAILED boltons/mboxutils.py::ruff::format
- FAILED boltons/namedutils.py::ruff::format
- FAILED boltons/pathutils.py::ruff::format
- FAILED boltons/queueutils.py::mypy
- FAILED boltons/queueutils.py::ruff::format
- FAILED boltons/setutils.py::ruff
- FAILED boltons/setutils.py::ruff::format
- FAILED boltons/socketutils.py::mypy
- FAILED boltons/socketutils.py::ruff::format
- FAILED boltons/statsutils.py::ruff
- FAILED boltons/statsutils.py::ruff::format
- FAILED boltons/strutils.py::ruff
- FAILED boltons/strutils.py::ruff::format
- FAILED boltons/tableutils.py::ruff::format
- FAILED boltons/tbutils.py::ruff
- FAILED boltons/tbutils.py::ruff::format
- FAILED boltons/timeutils.py::mypy
- FAILED boltons/timeutils.py::ruff
- FAILED boltons/timeutils.py::ruff::format
- FAILED boltons/typeutils.py::ruff::format
- FAILED boltons/urlutils.py::mypy
- FAILED boltons/urlutils.py::ruff
- FAILED boltons/urlutils.py::ruff::format
- FAILED docs/conf.py::mypy
- FAILED docs/conf.py::ruff
- FAILED docs/conf.py::ruff::format
- FAILED misc/bench_omd.py::mypy
- FAILED misc/bench_omd.py::ruff
- FAILED misc/bench_omd.py::ruff::format
- FAILED misc/linkify_changelog.py::ruff::format
- FAILED misc/table_html_app.py::mypy
- FAILED misc/table_html_app.py::ruff
- FAILED misc/table_html_app.py::ruff::format
- FAILED tests/conftest.py::ruff::format
- FAILED tests/test_cacheutils.py::ruff
- FAILED tests/test_cacheutils.py::ruff::format
- FAILED tests/test_debugutils_trace.py::ruff::format
- FAILED tests/test_dictutils.py::ruff
- FAILED tests/test_dictutils.py::ruff::format
- FAILED tests/test_ecoutils.py::ruff::format
- FAILED tests/test_fileutils.py::ruff::format
- FAILED tests/test_formatutils.py::mypy
- FAILED tests/test_formatutils.py::ruff
- FAILED tests/test_formatutils.py::ruff::format
- FAILED tests/test_funcutils.py::ruff::format
- FAILED tests/test_funcutils_fb.py::ruff::format
- FAILED tests/test_funcutils_fb_py3.py::mypy
- FAILED tests/test_funcutils_fb_py3.py::ruff
- FAILED tests/test_funcutils_fb_py3.py::ruff::format
- FAILED tests/test_gcutils.py::ruff
- FAILED tests/test_gcutils.py::ruff::format
- FAILED tests/test_ioutils.py::ruff::format
- FAILED tests/test_iterutils.py::ruff
- FAILED tests/test_iterutils.py::ruff::format
- FAILED tests/test_jsonutils.py::ruff::format
- FAILED tests/test_listutils.py::ruff
- FAILED tests/test_listutils.py::ruff::format
- FAILED tests/test_mathutils.py::ruff::format
- FAILED tests/test_namedutils.py::ruff::format
- FAILED tests/test_queueutils.py::ruff::format
- FAILED tests/test_setutils.py::ruff
- FAILED tests/test_setutils.py::ruff::format
- FAILED tests/test_socketutils.py::ruff
- FAILED tests/test_socketutils.py::ruff::format
- FAILED tests/test_statsutils.py::mypy
- FAILED tests/test_statsutils.py::ruff::format
- FAILED tests/test_statsutils_histogram.py::mypy
- FAILED tests/test_statsutils_histogram.py::ruff::format
- FAILED tests/test_strutils.py::ruff
- FAILED tests/test_strutils.py::ruff::format
- FAILED tests/test_tableutils.py::ruff::format
- FAILED tests/test_tbutils.py::ruff
- FAILED tests/test_tbutils.py::ruff::format
- FAILED tests/test_tbutils_parsed_exc.py::ruff::format
- FAILED tests/test_timeutils.py::ruff::format
- FAILED tests/test_typeutils.py::ruff::format
- FAILED tests/test_urlutils.py::ruff::format
- ============ 106 failed, 510 passed, 1 warning in 99.54s (0:01:39) =============
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement