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.
- prospector/tools/ruff/__init__.py +0 -1
- prospector/tools/utils.py +4 -6
- {prospector-1.13.0.dist-info → prospector-1.13.1.dist-info}/METADATA +1 -1
- {prospector-1.13.0.dist-info → prospector-1.13.1.dist-info}/RECORD +7 -7
- {prospector-1.13.0.dist-info → prospector-1.13.1.dist-info}/LICENSE +0 -0
- {prospector-1.13.0.dist-info → prospector-1.13.1.dist-info}/WHEEL +0 -0
- {prospector-1.13.0.dist-info → prospector-1.13.1.dist-info}/entry_points.txt +0 -0
|
@@ -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[
|
|
24
|
-
stderr: Optional[
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
@@ -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=
|
|
65
|
-
prospector/tools/utils.py,sha256=
|
|
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.
|
|
68
|
-
prospector-1.13.
|
|
69
|
-
prospector-1.13.
|
|
70
|
-
prospector-1.13.
|
|
71
|
-
prospector-1.13.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|