lintro 0.11.0__py3-none-any.whl → 0.12.0__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.
Potentially problematic release.
This version of lintro might be problematic. Click here for more details.
- lintro/__init__.py +1 -1
- lintro/cli_utils/commands/format.py +2 -2
- lintro/parsers/prettier/prettier_parser.py +1 -1
- lintro/tools/__init__.py +1 -1
- lintro/utils/tool_executor.py +1 -1
- lintro/utils/tool_utils.py +1 -1
- {lintro-0.11.0.dist-info → lintro-0.12.0.dist-info}/METADATA +1 -1
- {lintro-0.11.0.dist-info → lintro-0.12.0.dist-info}/RECORD +12 -12
- {lintro-0.11.0.dist-info → lintro-0.12.0.dist-info}/WHEEL +0 -0
- {lintro-0.11.0.dist-info → lintro-0.12.0.dist-info}/entry_points.txt +0 -0
- {lintro-0.11.0.dist-info → lintro-0.12.0.dist-info}/licenses/LICENSE +0 -0
- {lintro-0.11.0.dist-info → lintro-0.12.0.dist-info}/top_level.txt +0 -0
lintro/__init__.py
CHANGED
|
@@ -140,7 +140,7 @@ def format_code_legacy(
|
|
|
140
140
|
None: This function does not return a value.
|
|
141
141
|
|
|
142
142
|
Raises:
|
|
143
|
-
|
|
143
|
+
RuntimeError: If format fails for any reason.
|
|
144
144
|
"""
|
|
145
145
|
args: list[str] = []
|
|
146
146
|
if paths:
|
|
@@ -163,5 +163,5 @@ def format_code_legacy(
|
|
|
163
163
|
runner = CliRunner()
|
|
164
164
|
result = runner.invoke(format_code, args)
|
|
165
165
|
if result.exit_code != DEFAULT_EXIT_CODE:
|
|
166
|
-
raise
|
|
166
|
+
raise RuntimeError(f"Format failed: {result.output}")
|
|
167
167
|
return None
|
lintro/tools/__init__.py
CHANGED
|
@@ -21,7 +21,7 @@ tool_manager = ToolManager()
|
|
|
21
21
|
AVAILABLE_TOOLS = {tool_enum: tool_enum.value for tool_enum in ToolEnum}
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
for
|
|
24
|
+
for _tool_enum, tool_class in AVAILABLE_TOOLS.items():
|
|
25
25
|
tool_manager.register_tool(tool_class)
|
|
26
26
|
|
|
27
27
|
# Consolidated exports
|
lintro/utils/tool_executor.py
CHANGED
lintro/utils/tool_utils.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
lintro/__init__.py,sha256=
|
|
1
|
+
lintro/__init__.py,sha256=iX9j8aLdM9NH7fnTl3CpovFq7eZzGZmXOXRSSaXN3UQ,111
|
|
2
2
|
lintro/__main__.py,sha256=McxM6wEcEeCLBHZs0F8xzT1PxVqJYkjtaPq1_-Nug-0,106
|
|
3
3
|
lintro/cli.py,sha256=0apxBcqVxBZdCeXGMyaSdJYSntMIiCFwPwan1jUmPzM,2520
|
|
4
4
|
lintro/ascii-art/fail.txt,sha256=gshKngSrz5FvJdP6g7lPygpLsLsZZh4etBU_wR7PXOw,56396
|
|
@@ -6,7 +6,7 @@ lintro/ascii-art/success.txt,sha256=xhteIXcBvl_1QcFKMIS9CkjjCY8czdf9znP9AiB8oPU,
|
|
|
6
6
|
lintro/cli_utils/__init__.py,sha256=F5P_fY_s-gwNZrnV1bzUOgHGb73QeZG1i-K_kfyJ8Yg,250
|
|
7
7
|
lintro/cli_utils/commands/__init__.py,sha256=GGT-uG0gQLlHAqkrwfwqfCkD6DUMP4Tq1rgDgaYe5Ng,239
|
|
8
8
|
lintro/cli_utils/commands/check.py,sha256=YnpuiX8-kTADnwxS_mZUPf_SkmqdyqTZFJLTDf7QSQ8,6229
|
|
9
|
-
lintro/cli_utils/commands/format.py,sha256=
|
|
9
|
+
lintro/cli_utils/commands/format.py,sha256=scRuwm2xUzz0AA6QECJRrX8GX1L7fZfX8FGq-7cycTo,5181
|
|
10
10
|
lintro/cli_utils/commands/list_tools.py,sha256=zGs5m3Dehk6HhS5WbBGTe_-GFrE-OsaAFQLZcm0MwMw,3495
|
|
11
11
|
lintro/enums/__init__.py,sha256=ZwCDematwfGNPdZJN9j-yoGE5SkkoddRhoHz3F9pLMY,61
|
|
12
12
|
lintro/enums/action.py,sha256=3gln8HUNpZzAyAAjQH-cOyW1nKCx9MT6S4rFDAVirdc,597
|
|
@@ -58,14 +58,14 @@ lintro/parsers/hadolint/hadolint_issue.py,sha256=VlTzTPHcluFZihFL-Tkg7UuXp1fQcD0
|
|
|
58
58
|
lintro/parsers/hadolint/hadolint_parser.py,sha256=Q7Hf6sL45s38O3C9dbBYzOpDlb0KGFj0U3Yry_ixdK8,1810
|
|
59
59
|
lintro/parsers/prettier/__init__.py,sha256=jH8yEsh_X6TpwJs1V1cN1AmbDuQwQ9qWA-_dk0R9jOA,55
|
|
60
60
|
lintro/parsers/prettier/prettier_issue.py,sha256=DKxV9LXxAB-CxvOsbWVEAmfpXQJvd4ikHKGyMrg1Y60,569
|
|
61
|
-
lintro/parsers/prettier/prettier_parser.py,sha256=
|
|
61
|
+
lintro/parsers/prettier/prettier_parser.py,sha256=TDD0KRF3NMUL24Qjo4TwSOklkwZT-KmwRbTWKTJt434,2044
|
|
62
62
|
lintro/parsers/ruff/__init__.py,sha256=1oT00c82qKfveRqa4FnSedAEQjQVrb9BspJEUQJn-Kk,26
|
|
63
63
|
lintro/parsers/ruff/ruff_issue.py,sha256=96ht6YWImOBiRTo0ATlM1PvVhgIwFiuN8810emm9nXo,1142
|
|
64
64
|
lintro/parsers/ruff/ruff_parser.py,sha256=DRGzpf55OnNJCTO01RSFK4GXr6Lav-_JzACdqDesuj0,4722
|
|
65
65
|
lintro/parsers/yamllint/__init__.py,sha256=ZZtw7Ref1EAbY-IwSz2UxJauGak6sKO10pfYsdE_sV8,55
|
|
66
66
|
lintro/parsers/yamllint/yamllint_issue.py,sha256=jWawdGUiTI1HADbhg8yEdZfC6yHcmk9FDzpr3PBUPBg,608
|
|
67
67
|
lintro/parsers/yamllint/yamllint_parser.py,sha256=ol44xhJcspnGIsEta8vVv1xi-sIbpB12CovmT94QFmQ,1947
|
|
68
|
-
lintro/tools/__init__.py,sha256=
|
|
68
|
+
lintro/tools/__init__.py,sha256=7uVo7qfdr9I_OOdF--0l16Gip6XhAG1QxPsuEWgHMko,1411
|
|
69
69
|
lintro/tools/tool_enum.py,sha256=RkJcfEpM_lFWp2y1rFqZdr3qOzYVcSoVBt3XVbtO4Sg,926
|
|
70
70
|
lintro/tools/core/__init__.py,sha256=eUbc-DlpOcFaG_gKzy-veaOQAOkC5-OuItxI--p6I9c,59
|
|
71
71
|
lintro/tools/core/tool_base.py,sha256=yOEvReleksIV_t_aB4PZv6-PgXZTrHTnz4SDPSr_MSk,13480
|
|
@@ -86,11 +86,11 @@ lintro/utils/console_logger.py,sha256=N0n5LomG6MDqu4tSPbmhBsIB6lzpRl5M53tZx6EoF4
|
|
|
86
86
|
lintro/utils/formatting.py,sha256=khC9hYBva5xqBV1IqNcivRH9gRdvWw6u6mh2TZLTy7E,5346
|
|
87
87
|
lintro/utils/output_manager.py,sha256=oIE0g8LNVQcWSQOb1MbDVqGYPrOjBGuUZ4R80M1RevQ,10213
|
|
88
88
|
lintro/utils/path_utils.py,sha256=NJP3vjVDcRBgUHtYNrpL0tRa0Sc3oQhGX3_2WWzdZE4,1395
|
|
89
|
-
lintro/utils/tool_executor.py,sha256=
|
|
90
|
-
lintro/utils/tool_utils.py,sha256=
|
|
91
|
-
lintro-0.
|
|
92
|
-
lintro-0.
|
|
93
|
-
lintro-0.
|
|
94
|
-
lintro-0.
|
|
95
|
-
lintro-0.
|
|
96
|
-
lintro-0.
|
|
89
|
+
lintro/utils/tool_executor.py,sha256=7PQFWZTdNf6qh7RycyOAn7U14NzG2M67eJ6aW0M-LsE,26214
|
|
90
|
+
lintro/utils/tool_utils.py,sha256=WbigILZNCxDhABjErS2Br2Bo5Sy4YJqKWeJG9jCS2k8,15756
|
|
91
|
+
lintro-0.12.0.dist-info/licenses/LICENSE,sha256=CwaAnyD2psonDBBJjbqFUz00W8nQw-FGDlEGZReUV6A,1069
|
|
92
|
+
lintro-0.12.0.dist-info/METADATA,sha256=CcaWmqiEVASmMcDDx1qM-1b1m1-i_n9uhtN8bKrdQV4,16030
|
|
93
|
+
lintro-0.12.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
94
|
+
lintro-0.12.0.dist-info/entry_points.txt,sha256=SYSk35jFyNLEHyrofSJsRv4qFN9NsT4VWSbvnTS9ov0,43
|
|
95
|
+
lintro-0.12.0.dist-info/top_level.txt,sha256=_D-7eyV6gNBOoIwHuf_h60wN_RWiw8GxB430Il9VKhU,7
|
|
96
|
+
lintro-0.12.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|