prospector 1.13.0__py3-none-any.whl → 1.13.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,7 +43,6 @@ class RuffTool(ToolBase):
43
43
  self.ruff_args.append(f"--{key}={value}")
44
44
 
45
45
  def run(self, found_files: FileFinder) -> list[Message]:
46
- print([self.ruff_bin, *self.ruff_args])
47
46
  messages = []
48
47
  completed_process = subprocess.run( # noqa: S603
49
48
  [self.ruff_bin, *self.ruff_args, *found_files.python_modules], capture_output=True
prospector/tools/utils.py CHANGED
@@ -20,8 +20,8 @@ class CaptureStream(TextIOWrapper):
20
20
 
21
21
  class CaptureOutput:
22
22
  _prev_streams = None
23
- stdout: Optional[TextIOWrapper] = None
24
- stderr: Optional[TextIOWrapper] = None
23
+ stdout: Optional[CaptureStream] = None
24
+ stderr: Optional[CaptureStream] = None
25
25
 
26
26
  def __init__(self, hide: bool) -> None:
27
27
  self.hide = hide
@@ -41,12 +41,10 @@ class CaptureOutput:
41
41
  return self
42
42
 
43
43
  def get_hidden_stdout(self) -> str:
44
- assert isinstance(self.stdout, CaptureStream)
45
- return self.stdout.contents
44
+ return "" if self.stdout is None else self.stdout.contents
46
45
 
47
46
  def get_hidden_stderr(self) -> str:
48
- assert isinstance(self.stderr, CaptureStream)
49
- return self.stderr.contents
47
+ return "" if self.stderr is None else self.stderr.contents
50
48
 
51
49
  def __exit__(self, exc_type: type, exc_val: Exception, exc_tb: type) -> None:
52
50
  if self.hide:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prospector
3
- Version: 1.13.0
3
+ Version: 1.13.1
4
4
  Summary: Prospector is a tool to analyse Python code by aggregating the result of other tools.
5
5
  Home-page: http://prospector.readthedocs.io
6
6
  License: GPLv2+
@@ -61,11 +61,11 @@ prospector/tools/pylint/collector.py,sha256=_PEV_8nV77_87m8rA2Td4WOqO9F2UaIQ4Bb_
61
61
  prospector/tools/pylint/linter.py,sha256=YQ9SOna4WjbbauqSgUio6Ss8zN08PCr3aKdK9rMi7Ag,2143
62
62
  prospector/tools/pyright/__init__.py,sha256=USqauZofh-8ZSKGwXRXoaM2ItzfSFo2nGwPtLGEWICU,3346
63
63
  prospector/tools/pyroma/__init__.py,sha256=GPQRJZfbs_SI0RBTyySz-4SIuM__YoLfXAm7uYVXAS8,3151
64
- prospector/tools/ruff/__init__.py,sha256=XldxEGSpF4Eo-D97xLMZZ2PjG1EoXVuDcCrXv3ictBQ,3026
65
- prospector/tools/utils.py,sha256=nO0O7S0xZ8g5njTodJZT_ApYbBBm2MotLR0PUcScYjo,1631
64
+ prospector/tools/ruff/__init__.py,sha256=rvjkGDTjRXOMqQnGCfDbbKmMkXN6m1Um8bq0UFkzSkU,2978
65
+ prospector/tools/utils.py,sha256=4wj7Lz-mYs6QIdvP-kCLlXs-ZRSkrwLpSKn9xHvDpgw,1585
66
66
  prospector/tools/vulture/__init__.py,sha256=eaTh4X5onNlBMuz1x0rmcRn7x5XDVDgqftjIEd47eWI,3583
67
- prospector-1.13.0.dist-info/entry_points.txt,sha256=SxvCGt8MJTEZefHAvwnUc6jDetgCaaYY1Zpifuk8tqU,50
68
- prospector-1.13.0.dist-info/LICENSE,sha256=WoTRadDy8VbcIKoVzl5Q1QipuD_cexAf3ul4MaVLttc,18044
69
- prospector-1.13.0.dist-info/WHEEL,sha256=gSF7fibx4crkLz_A-IKR6kcuq0jJ64KNCkG8_bcaEao,88
70
- prospector-1.13.0.dist-info/METADATA,sha256=gJEYn5V1GdG1q-agNorENkbleorqhEmrUw5meFmpY-M,9962
71
- prospector-1.13.0.dist-info/RECORD,,
67
+ prospector-1.13.1.dist-info/entry_points.txt,sha256=SxvCGt8MJTEZefHAvwnUc6jDetgCaaYY1Zpifuk8tqU,50
68
+ prospector-1.13.1.dist-info/LICENSE,sha256=WoTRadDy8VbcIKoVzl5Q1QipuD_cexAf3ul4MaVLttc,18044
69
+ prospector-1.13.1.dist-info/WHEEL,sha256=gSF7fibx4crkLz_A-IKR6kcuq0jJ64KNCkG8_bcaEao,88
70
+ prospector-1.13.1.dist-info/METADATA,sha256=_2kLunjpAQK6LUUep2TZiZ9DMjJgdcWE_W2dm8Peduo,9962
71
+ prospector-1.13.1.dist-info/RECORD,,