lintro 0.10.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 CHANGED
@@ -1,3 +1,3 @@
1
1
  """Lintro - A unified CLI core for code formatting, linting, and quality assurance."""
2
2
 
3
- __version__ = "0.10.0"
3
+ __version__ = "0.12.0"
@@ -140,7 +140,7 @@ def format_code_legacy(
140
140
  None: This function does not return a value.
141
141
 
142
142
  Raises:
143
- Exception: If format fails for any reason.
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 Exception(f"Format failed: {result.output}")
166
+ raise RuntimeError(f"Format failed: {result.output}")
167
167
  return None
@@ -36,7 +36,7 @@ def parse_prettier_output(output: str) -> list[PrettierIssue]:
36
36
 
37
37
  lines = normalized_output.splitlines()
38
38
 
39
- for i, line in enumerate(lines):
39
+ for _i, line in enumerate(lines):
40
40
  line = line.strip()
41
41
  if not line:
42
42
  continue
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 tool_enum, tool_class in AVAILABLE_TOOLS.items():
24
+ for _tool_enum, tool_class in AVAILABLE_TOOLS.items():
25
25
  tool_manager.register_tool(tool_class)
26
26
 
27
27
  # Consolidated exports
@@ -65,7 +65,7 @@ def _get_tools_to_run(
65
65
  available_names: list[str] = [e.name.lower() for e in ToolEnum]
66
66
  raise ValueError(
67
67
  f"Unknown tool '{name.lower()}'. Available tools: {available_names}",
68
- )
68
+ ) from None
69
69
 
70
70
  return tools_to_run
71
71
 
@@ -104,7 +104,7 @@ def parse_tool_list(tools_str: str | None) -> list[str]:
104
104
  try:
105
105
  result.append(ToolEnum[t.upper()])
106
106
  except KeyError:
107
- raise ValueError(f"Unknown core: {t}")
107
+ raise ValueError(f"Unknown core: {t}") from None
108
108
  return result
109
109
 
110
110
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lintro
3
- Version: 0.10.0
3
+ Version: 0.12.0
4
4
  Summary: A unified CLI tool for code formatting, linting, and quality assurance
5
5
  Author-email: TurboCoder13 <turbocoder13@gmail.com>
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- lintro/__init__.py,sha256=fs1x8RDrrcJF4Rf7apK4lLBPi4sH7J_C7Ht18VIM100,111
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=nEU0Hv28O0RCIp6l-pFcKSzzyLE6fajQCiUYpRyHfzU,5175
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=lH50rhFHbWWLH50CiTlyIvjgbx9vz1hiIdtxEXi7uJw,2043
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=S-L_x7Hzp-Ja-QezupEUwF6-uhRl4ZXSIpRx59jvsaA,1410
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=8-m7nQKLRlKHBTvzT7iLmaHYZ3-2s0t4zUbC-py8-H8,26204
90
- lintro/utils/tool_utils.py,sha256=DIdebZxdUBhomuBKSezfojNOmEZyP7KtGifz1EX1qZo,15746
91
- lintro-0.10.0.dist-info/licenses/LICENSE,sha256=CwaAnyD2psonDBBJjbqFUz00W8nQw-FGDlEGZReUV6A,1069
92
- lintro-0.10.0.dist-info/METADATA,sha256=CCKmcOVTeXfykfzhBF3vxbtId5jwBpW5arhkSYF1zXM,16030
93
- lintro-0.10.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
94
- lintro-0.10.0.dist-info/entry_points.txt,sha256=SYSk35jFyNLEHyrofSJsRv4qFN9NsT4VWSbvnTS9ov0,43
95
- lintro-0.10.0.dist-info/top_level.txt,sha256=_D-7eyV6gNBOoIwHuf_h60wN_RWiw8GxB430Il9VKhU,7
96
- lintro-0.10.0.dist-info/RECORD,,
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,,