smelt-cli 0.2.0__py3-none-win_amd64.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.
Files changed (133) hide show
  1. smelt/__init__.py +6 -0
  2. smelt/__main__.py +5 -0
  3. smelt/analysis/__init__.py +45 -0
  4. smelt/analysis/annotations.py +105 -0
  5. smelt/analysis/cache.py +168 -0
  6. smelt/analysis/context.py +147 -0
  7. smelt/analysis/contracts.py +210 -0
  8. smelt/analysis/coverage.py +377 -0
  9. smelt/analysis/definition_blocks.py +569 -0
  10. smelt/analysis/enum_values.py +217 -0
  11. smelt/analysis/errors.py +11 -0
  12. smelt/analysis/exports.py +166 -0
  13. smelt/analysis/files.py +279 -0
  14. smelt/analysis/function_usage.py +123 -0
  15. smelt/analysis/graphs.py +77 -0
  16. smelt/analysis/identity.py +64 -0
  17. smelt/analysis/import_cache.py +98 -0
  18. smelt/analysis/imports.py +452 -0
  19. smelt/analysis/literals.py +17 -0
  20. smelt/analysis/member_state.py +108 -0
  21. smelt/analysis/members.py +975 -0
  22. smelt/analysis/ordering.py +399 -0
  23. smelt/analysis/ordering_rewrite.py +232 -0
  24. smelt/analysis/package_exports.py +58 -0
  25. smelt/analysis/parsing.py +126 -0
  26. smelt/analysis/python_version.py +164 -0
  27. smelt/analysis/retained.py +84 -0
  28. smelt/analysis/syntax.py +109 -0
  29. smelt/analysis/test_awaits.py +91 -0
  30. smelt/analysis/test_cases.py +84 -0
  31. smelt/analysis/test_deadlines.py +90 -0
  32. smelt/analysis/test_outcomes.py +71 -0
  33. smelt/analysis/test_subprocesses.py +107 -0
  34. smelt/analysis/test_syntax.py +1425 -0
  35. smelt/analysis/test_timing.py +76 -0
  36. smelt/analysis/type_dispatch.py +193 -0
  37. smelt/analysis/workspace.py +146 -0
  38. smelt/cli/__init__.py +3 -0
  39. smelt/cli/app.py +300 -0
  40. smelt/cli/commands/__init__.py +62 -0
  41. smelt/cli/commands/adopt.py +274 -0
  42. smelt/cli/commands/check.py +151 -0
  43. smelt/cli/commands/discover.py +51 -0
  44. smelt/cli/commands/info.py +112 -0
  45. smelt/cli/session.py +163 -0
  46. smelt/cli/session_slots.py +43 -0
  47. smelt/cli/support.py +90 -0
  48. smelt/config/__init__.py +36 -0
  49. smelt/config/discovery.py +93 -0
  50. smelt/config/errors.py +51 -0
  51. smelt/config/loader.py +282 -0
  52. smelt/config/models.py +717 -0
  53. smelt/config/patterns.py +47 -0
  54. smelt/config/schema.py +23 -0
  55. smelt/config/source.py +56 -0
  56. smelt/config/validation.py +180 -0
  57. smelt/diagnostics/__init__.py +0 -0
  58. smelt/diagnostics/debt.py +226 -0
  59. smelt/diagnostics/dedupe.py +41 -0
  60. smelt/diagnostics/groups.py +109 -0
  61. smelt/diagnostics/render/__init__.py +0 -0
  62. smelt/diagnostics/render/machine.py +237 -0
  63. smelt/diagnostics/render/text.py +321 -0
  64. smelt/diagnostics/report.py +104 -0
  65. smelt/diagnostics/suppressions.py +80 -0
  66. smelt/diagnostics/violation.py +120 -0
  67. smelt/docs.py +98 -0
  68. smelt/engine/__init__.py +0 -0
  69. smelt/engine/briefing.py +630 -0
  70. smelt/engine/cache.py +65 -0
  71. smelt/engine/changes.py +260 -0
  72. smelt/engine/check.py +724 -0
  73. smelt/engine/coverage.py +151 -0
  74. smelt/engine/evaluation.py +291 -0
  75. smelt/engine/file_checks.py +94 -0
  76. smelt/engine/git_source.py +140 -0
  77. smelt/engine/inference.py +854 -0
  78. smelt/engine/mirror_inference.py +95 -0
  79. smelt/engine/native_git.py +190 -0
  80. smelt/engine/ordering_fixes.py +132 -0
  81. smelt/engine/paths.py +163 -0
  82. smelt/engine/result_cache.py +208 -0
  83. smelt/engine/rule_settings.py +164 -0
  84. smelt/engine/schema.py +58 -0
  85. smelt/engine/staged.py +75 -0
  86. smelt/engine/workspace.py +5 -0
  87. smelt/model/__init__.py +9 -0
  88. smelt/model/architecture.py +234 -0
  89. smelt/py.typed +0 -0
  90. smelt/rules/__init__.py +0 -0
  91. smelt/rules/activation.py +129 -0
  92. smelt/rules/base.py +131 -0
  93. smelt/rules/catalog.json +600 -0
  94. smelt/rules/common.py +164 -0
  95. smelt/rules/dependencies/__init__.py +0 -0
  96. smelt/rules/dependencies/composition_root.py +86 -0
  97. smelt/rules/dependencies/cycles.py +329 -0
  98. smelt/rules/dependencies/fanout.py +81 -0
  99. smelt/rules/dependencies/features.py +165 -0
  100. smelt/rules/dependencies/interfaces.py +84 -0
  101. smelt/rules/dependencies/layers.py +138 -0
  102. smelt/rules/dependencies/third_party.py +132 -0
  103. smelt/rules/member_names.py +13 -0
  104. smelt/rules/meta.py +74 -0
  105. smelt/rules/registry.py +132 -0
  106. smelt/rules/structure/__init__.py +0 -0
  107. smelt/rules/structure/assignments.py +114 -0
  108. smelt/rules/structure/contracts.py +71 -0
  109. smelt/rules/structure/coverage.py +100 -0
  110. smelt/rules/structure/enum_values.py +50 -0
  111. smelt/rules/structure/headers.py +143 -0
  112. smelt/rules/structure/import_style.py +145 -0
  113. smelt/rules/structure/layout.py +202 -0
  114. smelt/rules/structure/members.py +116 -0
  115. smelt/rules/structure/naming.py +132 -0
  116. smelt/rules/structure/ordering.py +83 -0
  117. smelt/rules/structure/package_imports.py +117 -0
  118. smelt/rules/structure/type_dispatch.py +79 -0
  119. smelt/rules/testing/__init__.py +0 -0
  120. smelt/rules/testing/awaits.py +46 -0
  121. smelt/rules/testing/cases.py +47 -0
  122. smelt/rules/testing/location.py +537 -0
  123. smelt/rules/testing/mocking.py +140 -0
  124. smelt/rules/testing/outcomes.py +119 -0
  125. smelt/rules/testing/private_access.py +93 -0
  126. smelt/rules/testing/public_attributes.py +62 -0
  127. smelt/rules/testing/public_functions.py +52 -0
  128. smelt/rules/testing/timing.py +62 -0
  129. smelt_cli-0.2.0.data/scripts/smelt.exe +0 -0
  130. smelt_cli-0.2.0.dist-info/METADATA +103 -0
  131. smelt_cli-0.2.0.dist-info/RECORD +133 -0
  132. smelt_cli-0.2.0.dist-info/WHEEL +4 -0
  133. smelt_cli-0.2.0.dist-info/sboms/smelt-cli.cyclonedx.json +5462 -0
@@ -0,0 +1,119 @@
1
+ from __future__ import annotations
2
+
3
+ import ast
4
+ from typing import TYPE_CHECKING
5
+
6
+ from smelt.analysis.context import AnalysisContext, Index
7
+ from smelt.analysis.test_outcomes import vacuous_outcomes
8
+ from smelt.diagnostics.violation import Category, Severity, Violation
9
+ from smelt.rules.base import BaseRule, RuleDoc
10
+
11
+ if TYPE_CHECKING:
12
+ from collections.abc import Iterator
13
+
14
+
15
+ class TestWithoutOutcomeCheck(BaseRule):
16
+ test_local = True
17
+ scope = "test"
18
+ code = "SMT424"
19
+ name = "test-without-outcome-check"
20
+ category = Category.TESTS
21
+ default_severity = Severity.WARNING
22
+ requires = frozenset({Index.TESTS})
23
+ doc = RuleDoc(
24
+ summary="A collected test has no recognized explicit outcome assertion.",
25
+ rationale=(
26
+ "A test that merely calls production code can pass when its result is wrong. This opt-in syntactic check accepts assert (except literal assert True), pytest.raises/warns/deprecated_call, unittest.TestCase assertions, known Mock/AsyncMock interaction assertion methods, awaited typed Event.wait observations bounded by wait_for or timeout contexts that raise on expiry, and configured qualified helpers. A move_on_after scope or a configured timeout helper alone does not establish outcome evidence. Mock receivers come from recognized constructors, aliases, patch results or explicit fixture annotations, never arbitrary assert_* method names. Nested functions and fixture bodies do not supply evidence to callers. It neither proves assertions execute nor judges their strength; a frozen scheduler clock can also defeat a timeout. Positive validation/smoke tests can be intentional exceptions."
27
+ " Checked inline Python subprocesses using an unshadowed sys.executable and literal or locally bound script text can provide direct top-level assert evidence. Dynamic scripts, files, optimized Python, shell commands and unchecked exits remain unknown; no analyzed code is executed."
28
+ ),
29
+ bad="def test_deactivate():\n deactivate_user(1)",
30
+ good="def test_deactivate():\n user = deactivate_user(1)\n assert user.status == 'inactive'",
31
+ fix="Assert a concrete result or observable state, check the expected exception/warning, or configure a known assertion helper. Use a reasoned exception for deliberate smoke/interaction tests. Do not add a meaningless assertion to silence the finding.",
32
+ config=(
33
+ "rules",
34
+ "tests.assertion_helpers",
35
+ "tests.quality_exclude",
36
+ ),
37
+ )
38
+
39
+ def check(self, ctx: AnalysisContext) -> Iterator[Violation]:
40
+ for module in ctx.test_syntax.modules.values():
41
+ for test in module.tests:
42
+ if not test.has_assertion(ctx.config.tests.assertion_helpers):
43
+ children = [
44
+ call
45
+ for call in test.calls
46
+ if call.qualified.startswith("subprocess.")
47
+ ]
48
+ yield self.violation(
49
+ f"{test.name} has no recognized outcome assertion",
50
+ path=module.path,
51
+ line=test.node.lineno,
52
+ expected={
53
+ "test": test.name,
54
+ "subprocess_review": [
55
+ {
56
+ "line": call.node.lineno,
57
+ "operation": call.qualified,
58
+ "child_assertions": "not inferred",
59
+ }
60
+ for call in children
61
+ ],
62
+ "assertion_helpers": ctx.config.tests.assertion_helpers,
63
+ },
64
+ hint="Check an observable result, state, expected exception/warning, or a configured assertion helper."
65
+ + (
66
+ " Child assertions were not inferred: only checked sys.executable -c calls with statically known script text and direct assertions are recognized. Assert the parent-visible outcome for dynamic scripts or files."
67
+ if children
68
+ else ""
69
+ ),
70
+ )
71
+
72
+
73
+ class TestOnlyChecksPossiblyEmptyData(BaseRule):
74
+ test_local = True
75
+ scope = "test"
76
+ code = "SMT425"
77
+ name = "test-only-checks-possibly-empty-data"
78
+ category = Category.TESTS
79
+ default_severity = Severity.WARNING
80
+ requires = frozenset({Index.TESTS})
81
+ doc = RuleDoc(
82
+ summary="Every recognized outcome can disappear or pass trivially on empty input.",
83
+ rationale=(
84
+ "Assertions confined to a result-dependent loop never execute if the result is empty. A positive all(...) assertion also accepts an empty collection. This opt-in review aid reports tests whose entire recognized evidence has one of these shapes. Literal nonempty iteration without filters, explicit empty-result comparisons and tests with an additional independent outcome check are retained. It does not prove collection cardinality, reachability or test effectiveness, and can flag intentional universal properties over empty collections."
85
+ " Checked inline Python subprocesses using an unshadowed sys.executable and literal or locally bound script text can provide direct top-level assert evidence. Dynamic scripts, files, optimized Python, shell commands and unchecked exits remain unknown; no analyzed code is executed."
86
+ ),
87
+ bad="def test_codegen():\n for name, content in generate().items():\n assert committed[name] == content",
88
+ good="def test_codegen():\n assert generate() == independently_loaded_committed_files()",
89
+ fix="Compare the complete result with an independent expectation, or check expected presence/cardinality before universal checks. Keep intentional empty-result cases explicit; do not add cosmetic assertions.",
90
+ config=(
91
+ "rules",
92
+ "tests.assertion_helpers",
93
+ "tests.quality_exclude",
94
+ ),
95
+ )
96
+
97
+ def check(self, ctx: AnalysisContext) -> Iterator[Violation]:
98
+ for module in ctx.test_syntax.modules.values():
99
+ for test in module.tests:
100
+ risks = vacuous_outcomes(test, ctx.config.tests.assertion_helpers)
101
+ if risks:
102
+ yield self.violation(
103
+ f"{test.name} only checks possibly empty data; its assertions can pass or be skipped without checking an item",
104
+ path=module.path,
105
+ line=test.node.lineno,
106
+ expected={
107
+ "test": test.name,
108
+ "evidence": [
109
+ {
110
+ "line": node.lineno,
111
+ "kind": "loop"
112
+ if isinstance(node, ast.For | ast.AsyncFor)
113
+ else "all",
114
+ }
115
+ for node in risks
116
+ ],
117
+ },
118
+ hint="Compare complete output or verify expected presence before iterating; review deliberate empty-result properties.",
119
+ )
@@ -0,0 +1,93 @@
1
+ from __future__ import annotations
2
+
3
+ import ast
4
+ from typing import TYPE_CHECKING
5
+
6
+ from smelt.analysis.context import AnalysisContext, Index
7
+ from smelt.diagnostics.violation import Category, Violation
8
+ from smelt.rules.base import BaseRule, RuleDoc
9
+
10
+ if TYPE_CHECKING:
11
+ from collections.abc import Iterator
12
+
13
+
14
+ def _private(name: str) -> bool:
15
+ return name.startswith("_") and not (name.startswith("__") and name.endswith("__"))
16
+
17
+
18
+ class PrivateTestAccess(BaseRule):
19
+ test_local = True
20
+ scope = "test"
21
+ code = "SMT420"
22
+ name = "private-test-access"
23
+ category = Category.TESTS
24
+ requires = frozenset({Index.TESTS})
25
+ doc = RuleDoc(
26
+ summary="A test imports or reads a private production name through a known module or instance.",
27
+ rationale="Testing an observable public contract lets internal helpers change without rewriting tests. This opt-in convention checks imports, module-qualified accesses and direct instance reads/calls into analyzed production modules. Instance provenance comes from known production constructors (including analyzed facade re-exports), explicit annotations, and fixture returns/yields with an annotation or consistent known constructor/alias shape. Fixed tuple fixtures preserve known component types when unpacked. Unknown factories, conflicting outputs, reflection, local fakes and dunder names are excluded. Instance assignments are excluded so intentional immutability probes remain valid. A deliberate public re-export remains public. No general type inference or fixture execution is performed.",
28
+ bad="from app.service import _normalize\ndef test_normalize():\n assert _normalize('A') == 'a'",
29
+ good="from app.service import normalize\ndef test_normalize():\n assert normalize('A') == 'a'",
30
+ fix="Exercise the supported behavior that uses the helper. Keep a reasoned exception for a deliberate implementation/protocol test; do not expose internals solely to silence a warning. In multiline imports, place the exception on the affected imported name so formatting preserves its scope.",
31
+ config=("rules", "tests.quality_exclude"),
32
+ )
33
+
34
+ def check(self, ctx: AnalysisContext) -> Iterator[Violation]:
35
+ known = set(ctx.files.sources) | set(ctx.files.packages)
36
+ for module in ctx.test_syntax.modules.values():
37
+ seen: set[tuple[int, int, str]] = set()
38
+ accesses = [
39
+ (node, qualified, "import", "module")
40
+ for node, qualified in [*module.imports, *module.attributes]
41
+ ]
42
+ accesses.extend(
43
+ (node, qualified, provenance, "instance")
44
+ for node, qualified, provenance in module.instance_attributes
45
+ )
46
+ for node, qualified, provenance, access in accesses:
47
+ parts = qualified.split(".")
48
+ if access == "instance" and not _private(parts[-1]):
49
+ # Importing a private class is one decision, not another
50
+ # finding for each public operation on that instance.
51
+ continue
52
+ if not any(
53
+ ".".join(parts[:end]) in known for end in range(1, len(parts) + 1)
54
+ ):
55
+ continue
56
+ private = next(
57
+ (index for index, name in enumerate(parts) if _private(name)), None
58
+ )
59
+ if private is None:
60
+ continue
61
+ target = (
62
+ qualified
63
+ if access == "instance"
64
+ else ".".join(parts[: private + 1])
65
+ )
66
+ location: ast.alias | ast.Attribute | ast.Import | ast.ImportFrom = node
67
+ if isinstance(node, ast.Import | ast.ImportFrom):
68
+ location = next(
69
+ (
70
+ alias
71
+ for alias in node.names
72
+ if qualified == alias.name
73
+ or qualified.endswith("." + alias.name)
74
+ ),
75
+ node,
76
+ )
77
+ key = (location.lineno, location.col_offset, target)
78
+ if key in seen:
79
+ continue
80
+ seen.add(key)
81
+ yield self.violation(
82
+ f"test accesses private production name {target}",
83
+ path=module.path,
84
+ line=location.lineno,
85
+ column=location.col_offset + 1,
86
+ target_module=target,
87
+ expected={
88
+ "private_target": target,
89
+ "access": access,
90
+ "provenance": provenance,
91
+ },
92
+ hint="Test the supported public behavior instead of an internal helper or module.",
93
+ )
@@ -0,0 +1,62 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from smelt.analysis.context import AnalysisContext, Index
6
+ from smelt.diagnostics.violation import Category, Severity, Violation
7
+ from smelt.rules.base import BaseRule, RuleDoc
8
+ from smelt.rules.member_names import private_name
9
+
10
+ if TYPE_CHECKING:
11
+ from collections.abc import Iterator
12
+
13
+
14
+ class TestOnlyPublicAttribute(BaseRule):
15
+ code = "SMT430"
16
+ name = "test-only-public-attribute"
17
+ category = Category.TESTS
18
+ default_severity = Severity.WARNING
19
+ requires = frozenset({Index.MEMBERS, Index.TESTS})
20
+ doc = RuleDoc(
21
+ summary="A public attribute is read from tests but has no observed production access outside its class.",
22
+ rationale=(
23
+ "Exposing implementation state just for tests enlarges the apparent API and couples tests to internal representation. This opt-in review covers direct instance assignments in ordinary methods and simple class data declarations on unambiguous top-level classes. Reads by analyzed tests are resolved through known constructors, annotations, fixtures and class aliases/re-exports. Internal class accesses do not justify public visibility. Any same-named production attribute access outside the owning class, including unresolved receivers and literal reflection, conservatively preserves visibility. Private names, methods/properties, descriptors, decorated/inherited/subclassed classes, slots and custom attribute hooks are excluded. Test-quality exclusions apply to test evidence; test writes alone do not trigger a finding. External consumers and arbitrary dynamic access remain unknown, so renaming requires review."
24
+ " Excluded files (including maintainer scripts), unselected packages and external consumers are unassessed, not proven absent; usage_scope records the configured analysis boundary."
25
+ ),
26
+ bad="class Worker:\n def __init__(self):\n self.pending = []\n def run(self):\n self.pending.clear()\n# tests/test_worker.py\nfrom app.worker import Worker\ndef test_run():\n worker = Worker()\n worker.run()\n assert worker.pending == []",
27
+ good="class Worker:\n def __init__(self):\n self._pending = []\n def run(self):\n self._pending.clear()\n return 'done'\n# tests/test_worker.py\nfrom app.worker import Worker\ndef test_run():\n assert Worker().run() == 'done'",
28
+ fix="Review whether the attribute belongs to the supported API. For internal state, add a leading underscore, update class references and test observable public behavior. Keep deliberate external or framework contracts with a reasoned suppression. Suggested names avoid observed collisions; no automatic rename is performed.",
29
+ config=(
30
+ "rules",
31
+ "tests.quality_exclude",
32
+ "project.test_roots",
33
+ ),
34
+ )
35
+
36
+ def check(self, ctx: AnalysisContext) -> Iterator[Violation]:
37
+ for attribute, references in ctx.member_usage.test_only_attributes(
38
+ ctx.test_syntax
39
+ ):
40
+ qualified = f"{attribute.owner.name}.{attribute.name}"
41
+ suggested_name = private_name(attribute.name, attribute.occupied_names)
42
+ yield self.violation(
43
+ f"{qualified} is public; among analyzed modules, only tests read it outside its defining class",
44
+ path=attribute.path,
45
+ line=attribute.node.lineno,
46
+ column=attribute.node.col_offset + 1,
47
+ source_module=attribute.module,
48
+ target_module=f"{attribute.module}.{qualified}",
49
+ expected={
50
+ "class": attribute.owner.name,
51
+ "attribute": attribute.name,
52
+ "kind": attribute.kind,
53
+ "suggested_name": suggested_name,
54
+ "usage_scope": ctx.member_usage.usage_scope,
55
+ "internal_references": list(attribute.internal_references),
56
+ "test_references": [
57
+ {"path": path, "line": line} for path, line in references
58
+ ],
59
+ "automatic_rename": False,
60
+ },
61
+ hint=f"Before making {qualified} private as {suggested_name}, review excluded files (including maintainer scripts), unselected packages and external consumers: their uses were not assessed. Preserve deliberate public contracts; otherwise test public behavior.",
62
+ )
@@ -0,0 +1,52 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from smelt.analysis.context import AnalysisContext, Index
6
+ from smelt.diagnostics.violation import Category, Severity, Violation
7
+ from smelt.rules.base import BaseRule, RuleDoc
8
+ from smelt.rules.member_names import private_name
9
+
10
+ if TYPE_CHECKING:
11
+ from collections.abc import Iterator
12
+
13
+
14
+ class TestOnlyPublicFunction(BaseRule):
15
+ code = "SMT429"
16
+ name = "test-only-public-function"
17
+ category = Category.TESTS
18
+ default_severity = Severity.WARNING
19
+ requires = frozenset({Index.MEMBERS, Index.TESTS})
20
+ doc = RuleDoc(
21
+ summary="A public module function is accessed from tests but has no observed production use outside its own module.",
22
+ rationale=(
23
+ "Leaving an internal helper public just so tests can call it enlarges the apparent API and couples tests to implementation details. This opt-in review identifies undecorated top-level sync/async functions without a leading underscore, referenced by analyzed tests and not imported or accessed by another analyzed production module. Uses inside the defining module do not justify public visibility. Aliased/relative imports and analyzed re-exports are resolved; production imports, star imports and escaped module values conservatively preserve the API. Explicit __all__ exports, dynamic export declarations, decorated functions, rebound names, methods and nested functions are excluded. Test-quality exclusions apply to test evidence. External consumers, packaging entry points and arbitrary dynamic access are not fully known; a finding is a review candidate, not proof that a function can be made private safely."
24
+ " Excluded files (including maintainer scripts), packages outside source selection and external consumers are unassessed, not proven absent. Findings expose the configured usage_scope."
25
+ ),
26
+ bad="__all__ = ['drag']\nasync def drag_gesture(tab): ...\nasync def drag(tab):\n await drag_gesture(tab)\n# tests/test_mouse.py\nfrom app.mouse import drag_gesture",
27
+ good="__all__ = ['drag']\nasync def _drag_gesture(tab): ...\nasync def drag(tab):\n await _drag_gesture(tab)\n# tests/test_mouse.py\nfrom app.mouse import drag",
28
+ fix="If this is an internal helper, add a leading underscore and update internal references. Prefer testing the public behavior that calls it. If direct helper tests are deliberate, keep a reasoned private-access exception; if it is a supported external API, declare it in __all__ or document a reasoned suppression. Review callers before renaming.",
29
+ config=("rules", "tests.quality_exclude"),
30
+ )
31
+
32
+ def check(self, ctx: AnalysisContext) -> Iterator[Violation]:
33
+ for function, references in ctx.member_usage.test_only_functions(
34
+ ctx.test_syntax
35
+ ):
36
+ node = function.node
37
+ suggested_name = private_name(node.name, function.occupied_names)
38
+ yield self.violation(
39
+ f"{function.module}.{node.name} is public; among analyzed modules, only tests access it outside its defining module",
40
+ path=function.path,
41
+ line=node.lineno,
42
+ source_module=function.module,
43
+ expected={
44
+ "function": node.name,
45
+ "suggested_name": suggested_name,
46
+ "usage_scope": ctx.member_usage.usage_scope,
47
+ "test_references": [
48
+ {"path": path, "line": line} for path, line in references
49
+ ],
50
+ },
51
+ hint=f"Before renaming {node.name} to {suggested_name}, review excluded files (including maintainer scripts), unselected packages and external consumers: their uses were not assessed. Preserve deliberate public APIs explicitly; otherwise test the public caller.",
52
+ )
@@ -0,0 +1,62 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from smelt.analysis.context import AnalysisContext, Index
6
+ from smelt.analysis.test_timing import unbounded_waits
7
+ from smelt.diagnostics.violation import Category, Severity, Violation
8
+ from smelt.rules.base import BaseRule, RuleDoc
9
+
10
+ if TYPE_CHECKING:
11
+ from collections.abc import Iterator
12
+
13
+
14
+ class UnboundedTestWait(BaseRule):
15
+ test_local = True
16
+ scope = "test"
17
+ code = "SMT426"
18
+ name = "unbounded-test-wait"
19
+ category = Category.TESTS
20
+ default_severity = Severity.WARNING
21
+ requires = frozenset({Index.TESTS})
22
+ doc = RuleDoc(
23
+ summary="A known test wait has no local deadline, or the scheduler clock is replaced.",
24
+ rationale="A wedged subprocess or known Event.wait can hang a suite. This opt-in review aid checks subprocess.run/call/check_call/check_output and typed Popen wait/communicate calls for their own timeout, and awaited asyncio Event/Task/Future or subprocess Process waits for enclosing wait_for or timeout contexts. Async processes come from awaited create_subprocess_exec/shell factories or explicit Process annotations, including known fixture returns. Each wait/communicate needs its own guard; an earlier bounded read or a preceding kill does not bound a later exit wait. Configured qualified timeout helpers can supply guards. Unknown/transitive waits, fixture/helper execution, external test-runner deadlines and general task flow are outside scope. Replacing the time method on a known running asyncio loop is reported separately because deadlines on that same clock can stop too. Controlled domain clocks, positive sleeps and sleep(0) yields are not prohibited.",
25
+ bad="def test_import():\n subprocess.run([sys.executable, '-c', 'import app'], check=True)",
26
+ good="def test_import():\n result = subprocess.run([sys.executable, '-c', 'import app'], capture_output=True, timeout=10)\n assert result.returncode == 0, result.stderr",
27
+ fix="Use a timeout at the blocking process boundary or around a known async wait. When replacing the scheduler clock, retain an independent real-time guard such as a parent-process timeout. Preserve bounded polling at real external boundaries.",
28
+ config=(
29
+ "rules",
30
+ "tests.timeout_helpers",
31
+ "tests.quality_exclude",
32
+ ),
33
+ )
34
+
35
+ def check(self, ctx: AnalysisContext) -> Iterator[Violation]:
36
+ for module in ctx.test_syntax.modules.values():
37
+ for test in module.tests:
38
+ for call in unbounded_waits(test, ctx.config.tests.timeout_helpers):
39
+ yield self.violation(
40
+ f"{test.name} has no recognized deadline for {call.qualified}",
41
+ path=module.path,
42
+ line=call.node.lineno,
43
+ expected={
44
+ "test": test.name,
45
+ "kind": "unbounded-wait",
46
+ "operation": call.qualified,
47
+ "provenance": call.provenance,
48
+ },
49
+ hint="Bound this operation locally or review the independently enforced test deadline.",
50
+ )
51
+ for node in test.clock_replacements:
52
+ yield self.violation(
53
+ f"{test.name} replaces the asyncio scheduler/deadline clock",
54
+ path=module.path,
55
+ line=node.lineno,
56
+ expected={
57
+ "test": test.name,
58
+ "kind": "scheduler-clock",
59
+ "operation": "asyncio.AbstractEventLoop.time",
60
+ },
61
+ hint="Review an independent real-time guard; deadlines using this clock can also freeze.",
62
+ )
Binary file
@@ -0,0 +1,103 @@
1
+ Metadata-Version: 2.4
2
+ Name: smelt-cli
3
+ Version: 0.2.0
4
+ Requires-Dist: grimp>=3.17
5
+ Requires-Dist: packaging>=24.2
6
+ Requires-Dist: pydantic>=2.13.5
7
+ Requires-Dist: pyyaml>=6.0.3
8
+ Summary: Static guardrails for Python codebases maintained by humans and coding agents.
9
+ Author-email: Mathis Arends <mathisarends27@gmail.com>
10
+ Requires-Python: >=3.12
11
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
12
+ Project-URL: Documentation, https://github.com/mathisarends/smelt#readme
13
+ Project-URL: Issues, https://github.com/mathisarends/smelt/issues
14
+ Project-URL: Repository, https://github.com/mathisarends/smelt
15
+
16
+ # smelt
17
+
18
+ Smelt is a static checker for Python codebases maintained by people and coding
19
+ agents. Describe your architecture and adopt source and test conventions in
20
+ `smelt.yaml`; Smelt turns those decisions into actionable checks that can run
21
+ locally, in pre-commit and in CI.
22
+
23
+ Use it both as **architecture as code** and as an executable style guide:
24
+ agents can inspect the policy before editing, check their changes, and iterate
25
+ on findings before the same project-wide checks run in CI.
26
+
27
+ ## What Smelt supports
28
+
29
+ | Area | Examples | Learn more |
30
+ | --- | --- | --- |
31
+ | Architecture | Layer and feature boundaries, third-party dependencies, cycles, composition roots, wiring, and coverage of production code by policy | [Architecture](docs/architecture.md) |
32
+ | Package contracts | Required modules and public entry points; checks for imports of private implementation modules | [Package contracts](docs/structure.md) |
33
+ | Source conventions | Package-scoped import styles, module names and headers, public-first ordering, internal helpers, and selected readability checks | [Source conventions](docs/structure.md) |
34
+ | Test conventions | Mirrored test paths and opt-in reviews of outcomes, mocks, private access, async awaits, waits, and test-only public members | [Test policies](docs/testing.md) |
35
+ | Agent and CI workflows | Policy briefings, staged and changed checks, JSON, GitHub annotations, SARIF, pre-commit and debt baselines | [Integrations](docs/integrations.md), [agent workflow](docs/agent-workflow.md), [CLI and reports](docs/cli.md), [adoption](docs/adoption.md) |
36
+
37
+ The [rule catalog](docs/rules/README.md) lists each check, its activation and
38
+ default severity. Most rules are opt-in; a declared architecture, package or
39
+ test policy activates the corresponding checks. See [rule activation](docs/rule-selection.md).
40
+
41
+ ## Quick start
42
+
43
+ Smelt requires Python 3.12 or newer. Install the `smelt-cli` package (the
44
+ unrelated PyPI package `smelt` is not this project):
45
+
46
+ ```bash
47
+ uv tool install smelt-cli
48
+ # or: pip install smelt-cli
49
+ ```
50
+
51
+ From your project root:
52
+
53
+ ```bash
54
+ smelt init --maintainability # draft smelt.yaml and select source/test checks
55
+ smelt check --show-hints --fail-on warning
56
+ smelt context <feature-or-path> # inspect the policy before making a change
57
+ smelt explain SMT101 # understand a finding and its configuration
58
+ ```
59
+
60
+ Review the generated configuration before adopting it: inference proposes a
61
+ starting point, including architecture when recognizable; it does not decide
62
+ your intended design. Small libraries can use named checks without features or
63
+ layers. See [configuration](docs/configuration.md) and [adoption](docs/adoption.md).
64
+
65
+ To run without installing, use `uvx --from smelt-cli smelt check`. From a local
66
+ checkout, use `uv tool install .`. Run Smelt with a Python version that can parse
67
+ the project's syntax; see [Python versions](docs/integrations.md#python-versions).
68
+ Building from a checkout or source distribution requires Rust 1.88+ and a platform
69
+ linker. Release wheels include the native client.
70
+
71
+ ## Agent loop and enforcement
72
+
73
+ 1. Inspect the policy with `smelt context <feature-or-path>`.
74
+ 2. Edit, then run `smelt check --changed --format json` and address findings.
75
+ 3. Run focused tests, stage the intended changes, and run
76
+ `smelt check --staged --fail-on warning` and `prek run --all-files`.
77
+ Inspect hook fixes, stage the intended result, and rerun until checks pass.
78
+ 4. Run a full `smelt check` in CI to enforce the adopted policy project-wide.
79
+
80
+ For strict architecture coverage, add `--strict-coverage`; it requires every
81
+ discovered production file to have a role or a reasoned exclusion. Changed checks
82
+ compare against `HEAD` by default, including uncommitted changes. For PRs,
83
+ `--changed --base origin/main` compares against the merge base. The
84
+ [integration guide](docs/integrations.md) includes a reusable agent instruction,
85
+ pre-commit configuration, and GitHub Actions example. The [agent workflow](docs/agent-workflow.md)
86
+ explains staged checks, partial staging and caching.
87
+
88
+ ## Scope
89
+
90
+ Smelt analyzes Python source statically. It checks the policies and rule patterns
91
+ it supports, not arbitrary runtime behavior, dynamic imports, or test effectiveness.
92
+ Many review-oriented checks are advisory and require judgment; a clean report
93
+ does not establish correctness. Use tests, type checking, and tools such as Ruff
94
+ alongside Smelt. See the [vision and scope](docs/vision.md) and each rule's page for
95
+ its precise limits.
96
+
97
+ ## Documentation and development
98
+
99
+ Start with the [documentation index](docs/README.md), or browse the
100
+ [configuration reference](docs/configuration.md), [rule catalog](docs/rules/README.md),
101
+ and [changelog](CHANGELOG.md). For development setup, checks, rule contributions,
102
+ and releases, see [CONTRIBUTING.md](CONTRIBUTING.md).
103
+
@@ -0,0 +1,133 @@
1
+ smelt/__init__.py,sha256=KOC9mZzL9QrEN2yEQQYootJQC-Ew5V-3M12YPbq8JTs,181
2
+ smelt/__main__.py,sha256=8g_WDSKVqUQ5azR0QXFBV01xRYiPbZYkcCOFZjFgGfg,57
3
+ smelt/analysis/__init__.py,sha256=vUAQ6vz9ExIG2sZiQ_sKVkgW8CX4Q_WBU20MrZZj6Ew,1110
4
+ smelt/analysis/annotations.py,sha256=o9Agwr_vAUZLYX4yR1HSam8OqLNFZj-b5EXw5ba5Uns,3856
5
+ smelt/analysis/cache.py,sha256=uhbmmOh8VLAGr2VkWBYvKmf8Qhqa7PsviOFjK0NQiyk,6322
6
+ smelt/analysis/context.py,sha256=9wbwEZ0CNY6GnU0tR9Nk4Ly75ZhbJpd939dBYCf1BiQ,4931
7
+ smelt/analysis/contracts.py,sha256=kNMuF6PcKNpNudv4lsaN4Fp7WElthS1utvHIBowlmQw,7478
8
+ smelt/analysis/coverage.py,sha256=jXUNSdqxqR_zAXH4OPOzj7hyJ8poPVHIsq3Fj00M1J0,13002
9
+ smelt/analysis/definition_blocks.py,sha256=3WCgLguad7nyrpPi5q1vhokbh0D9Y-264kA87tZFBog,19508
10
+ smelt/analysis/enum_values.py,sha256=FVGFeFWEXdBDJ-xYXrvoxszRqIJc2rSr53pJT3EsU9U,8200
11
+ smelt/analysis/errors.py,sha256=18HmGBZeJUnfOiYYCg_2YcQtWdIX1vKHSkdbkfhk88Q,402
12
+ smelt/analysis/exports.py,sha256=Zxr-2HiIOaTDu3gMrQztGpRdG3cds0kPQIVww2LNzoo,6212
13
+ smelt/analysis/files.py,sha256=fpHgLFIM2zKccIBvAEbvW-DNS3DzfcSH4cDk3UM4F5o,10805
14
+ smelt/analysis/function_usage.py,sha256=7Cp5PjAKcsFzRAKeSBVxccR7Bp9LWqkFOUAoUeNFPNI,4645
15
+ smelt/analysis/graphs.py,sha256=ndmGK_8b3g-pUyVVFqeeiwChM95qCmGJc9lHWj98VAI,2782
16
+ smelt/analysis/identity.py,sha256=0VRK8ZUusto_KjwEWjCD4rc-0aNju-fTV46Y9oqa9eI,2372
17
+ smelt/analysis/import_cache.py,sha256=M2_kVWHGm83j1hCWm7Nftt9Fa1c1zavY5AI3RdapkcA,3252
18
+ smelt/analysis/imports.py,sha256=m5d1EkPLRWrbJJWO6VeAnNqQFL9pPn2SMoxu6UQDrOc,17064
19
+ smelt/analysis/literals.py,sha256=YpbJlopGNKNs91-yfV37HzkC1I6nPVHIljAroXVNf6M,525
20
+ smelt/analysis/member_state.py,sha256=O5eqKuwEgwc8N2b7pJVD8VCaPde4_R3NpCqfaZy4ZTk,3644
21
+ smelt/analysis/members.py,sha256=_Uf7sDwlMArVUWX52PKQ5vJiRQ2wah1nSvHrxCUF7iE,34555
22
+ smelt/analysis/ordering.py,sha256=9BxjQ55e2jfYw11uNUqo4vXmGLuBm71izCqt1X1_w-c,13261
23
+ smelt/analysis/ordering_rewrite.py,sha256=9r4SuOE6y0iXHkI3S23TDY4m00AwLHnr6cV_bKfGbBM,8164
24
+ smelt/analysis/package_exports.py,sha256=Hhmj8dCQIPmtv_mXboeI-_qMkyYa_dXtGBEiNU8tkJk,2026
25
+ smelt/analysis/parsing.py,sha256=Dg4ft36n58ajGbXKX4uB7tJHby1SeXgUZ-6EusRwJcU,4030
26
+ smelt/analysis/python_version.py,sha256=rnAlDpCmMAP152cfNslwObml4RtMetZsrox4OGEFfRc,6009
27
+ smelt/analysis/retained.py,sha256=1_9miVgq-R-9Z8kmHw1rmJ1grXk96Ao2muTB1u0AtHs,2649
28
+ smelt/analysis/syntax.py,sha256=ZMZv96nUKl8cKPZMcsShOaIwnYm5cLAV47rYAKo0WJs,3634
29
+ smelt/analysis/test_awaits.py,sha256=C8wl7r0K3dKqWTFB4msO_cWzHR0g2zVTmz1JBiPsvsQ,3448
30
+ smelt/analysis/test_cases.py,sha256=jn9Ocvzj05j7yE-iwJrN5a9Am_NorwZiQT7yTo56yFM,2966
31
+ smelt/analysis/test_deadlines.py,sha256=DCij5tFp10DzFzxcZySgDqVsHVy7SinU8eks6Ur9gfs,3117
32
+ smelt/analysis/test_outcomes.py,sha256=FAlkmnzvz2pk7OnuMIduGTyLMXSAcBtyx_GsXdyQVnU,2582
33
+ smelt/analysis/test_subprocesses.py,sha256=aM5YkM730LsxQb-15XbMR5sM7Mp73zGhSdTDFkUZ_Fk,3151
34
+ smelt/analysis/test_syntax.py,sha256=JXhsVE4xay6IsrTon7k7hfffknyt4i6dNCDRLmy0kCg,51118
35
+ smelt/analysis/test_timing.py,sha256=cfATnPEVAAesUaw6nGk2XyBY8smEv9Q94hglrHUSXNw,2251
36
+ smelt/analysis/type_dispatch.py,sha256=tUbDDJy8tbPu6RHYjHkWCLwVUfJCZ82Nf23bU9G0wVU,6292
37
+ smelt/analysis/workspace.py,sha256=j5UrOc70mKeclWU7_gJm4LzmkDuKRU8C1EGPITNKXTc,5376
38
+ smelt/cli/__init__.py,sha256=DZTJMSqFQCrWx7sQeQqLRCvUS37X6kG6n_9mb1qPh_M,51
39
+ smelt/cli/app.py,sha256=c6tLSSekuqNh9tzFT4wEUNNZaAHsIt3up03JifsJSLM,10626
40
+ smelt/cli/commands/__init__.py,sha256=AsPHFmVIyATLF8KGFEGSyEe2LJntg7WPRkWVOYtxSCI,1661
41
+ smelt/cli/commands/adopt.py,sha256=AE6lRpk5qCZowwj_2X6mPFsQORP20usvLboNhOgGP34,10956
42
+ smelt/cli/commands/check.py,sha256=280iIUnikGxMWiBZH--jMyoJ4s8wtxAXbBU6XgdWCuc,5517
43
+ smelt/cli/commands/discover.py,sha256=sXHsUwfvZ2mAyl0pFXwVeEGH9bdankR44fmZRSf16Mo,1703
44
+ smelt/cli/commands/info.py,sha256=46hP77Jx8-AFf0vPViODuXiWoJZqzFeP1G73G8YCDu8,3691
45
+ smelt/cli/session.py,sha256=XBjcbfMdhi_4OzIJjCbzz_MY59YrpFU0hAK8daD3VN4,5805
46
+ smelt/cli/session_slots.py,sha256=-zf59PjsoIrVPe9RLHIaCZyXOPH_G9EOllyv1meTUYQ,1340
47
+ smelt/cli/support.py,sha256=-qgLTCzEfRkyn55yfR3hErcyAlaOiyF2g5M3F-VC1go,2481
48
+ smelt/config/__init__.py,sha256=sU2Bve0-MyRsZ6AK3OT8Klc56QkooodmvfdYs3UwNi0,842
49
+ smelt/config/discovery.py,sha256=8fOqNav8Wqiu5XFg5wMi04zI3YXp2HOPUGXUEcHoptY,2841
50
+ smelt/config/errors.py,sha256=0WykpU2q8VNlnq4td-il10yuEGKj11z2uQOPnVaLeOg,1499
51
+ smelt/config/loader.py,sha256=fz1xsqHPJzrgDADBgPrOmfBHOwDWWrmkSepi6xHcusI,10425
52
+ smelt/config/models.py,sha256=mt9x5igiIv16ndFrAlqfpwOEFLlsJVmpfGhiNuCjXes,27004
53
+ smelt/config/patterns.py,sha256=2sqvll_lOrUS6uScRPXFKH1Z92p_f8FWRZ-A4ZKF3lg,1504
54
+ smelt/config/schema.py,sha256=6SbCud4b3RNfTr1FKwu4FgoZTKyo0UuwRFaq7neVyss,700
55
+ smelt/config/source.py,sha256=zO38UX6CtuFzEhGeI5rqMuP5KBWhN2DUIj0ERMGLLSM,1646
56
+ smelt/config/validation.py,sha256=5E1E3ZGg-1X_4io7NzLxJzTWG9mYDwFjXg6SoXQpECI,7198
57
+ smelt/diagnostics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
+ smelt/diagnostics/debt.py,sha256=qF1JuV2k-6Ue-xmcACRDrsO9IOIGSuS3vrwffbAxZDA,7791
59
+ smelt/diagnostics/dedupe.py,sha256=xHUiJq8eq-u5-eFLp3h6fJEsQmcF5oGBy5KTWU95yJM,1558
60
+ smelt/diagnostics/groups.py,sha256=mMI_WnueStQkFKtCri6X4b_LWvzTnXBxhChYe6Mlt0k,3627
61
+ smelt/diagnostics/render/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
+ smelt/diagnostics/render/machine.py,sha256=JSAds-f84iODthCMPPclFWEmwOH7hwTlZQIMADDH_Aw,8596
63
+ smelt/diagnostics/render/text.py,sha256=Ap46atcEdAVawxiAepwWv00vBhLtNxwoa3VK9DfveHE,11834
64
+ smelt/diagnostics/report.py,sha256=OLlW9g686uA8zIMzKn1_r5lBBxezcpkSmtxFkt6TzyQ,3235
65
+ smelt/diagnostics/suppressions.py,sha256=YNl42ALyEGP1Tw6ns9vWRY5g7VlrI0tdZjibuEwSOEs,2343
66
+ smelt/diagnostics/violation.py,sha256=9Xit4Pnwwpcw5UnOhchjGTA6J0GzvI0i51nAGnqjbf4,3634
67
+ smelt/docs.py,sha256=ajqDv5krksy-PVz38LeJ16em-XKtIAgqNb92GlHnq0E,3088
68
+ smelt/engine/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
69
+ smelt/engine/briefing.py,sha256=aNu1b8Zfy2mqiLSfGfcgC11cXVTW31StcT_ptoMH_4k,25654
70
+ smelt/engine/cache.py,sha256=vrkPKNtR-P-VLgxAA8QYBZvrXv15ZI8jvMD3an_6ucM,2060
71
+ smelt/engine/changes.py,sha256=vAPCqhfj2QgY69PBOcfoS8NPbCN-mDiBTt3ouJyz4TA,9178
72
+ smelt/engine/check.py,sha256=OPwY9mlMyshwoe69FkA9qo-v8QE5y5oA9G4ziqdZkgg,26649
73
+ smelt/engine/coverage.py,sha256=1b7UP2cQvgn7y6xYD3W_Ah4sDu4hapijxaCrflmz2OI,5640
74
+ smelt/engine/evaluation.py,sha256=Slm53QM1NdTAiinh0_98lpJyFlA7RbVBHhv86-QdUsc,10102
75
+ smelt/engine/file_checks.py,sha256=7zRYpvfGTJkhvGFihT9ZobrR_lx5mJNUwoV2oJrCwXs,3260
76
+ smelt/engine/git_source.py,sha256=lw8mq1UbVC5t-y7xPjW0JiW_G680m5qPcD-Fh3Ww-T4,5387
77
+ smelt/engine/inference.py,sha256=ZPOJLJwnhSEADseYOMeGcB6aIhC-3N0I9-vlG1MINRs,31918
78
+ smelt/engine/mirror_inference.py,sha256=IUJTb8Tc9XUiQibFpX1M3zqsQevYYeOhDFYKpB_cV34,3315
79
+ smelt/engine/native_git.py,sha256=DpUr6QrSLwVx51fTe3hQXD2eFNqoFjSH54KHTWBNMQk,6154
80
+ smelt/engine/ordering_fixes.py,sha256=gRSZbDD9HXbAHGvY1RcVVo2FOSC8j6olf4i5qqFLFew,4903
81
+ smelt/engine/paths.py,sha256=RbtduOpFiL6ujqSP7SUk4D56yPmUh_BnhdSJVwke9nQ,6298
82
+ smelt/engine/result_cache.py,sha256=tn9XKueeJFGwjjE42GXxc4khXBe3-ILdz881xWnYpwg,7003
83
+ smelt/engine/rule_settings.py,sha256=u0xrUvSrrdQcZ59pHNdT0bHIz0yI0qzzy8VgUPKhuko,6417
84
+ smelt/engine/schema.py,sha256=0MMPYO3gC1bh7CpLxmsrZLcNGPTOX4rlg-doc7YUWCc,2467
85
+ smelt/engine/staged.py,sha256=uC7iJIFks8cbZpk--UKpTwpHCeLwqQrPIMleA1czhk4,2900
86
+ smelt/engine/workspace.py,sha256=XEFfPKD5EjiK28uJgFMNIC4JhZ3Kdu9vw2_WZrqjjTQ,239
87
+ smelt/model/__init__.py,sha256=EKDW4DbgJkZH142f6F8Vt_F_yHpOBBZLZN4kaBRFdFM,217
88
+ smelt/model/architecture.py,sha256=H07xXhZrBfNrwhHQ5YlZ-LbUePgUrW6T5VAw_5R6YeY,8579
89
+ smelt/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
90
+ smelt/rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
91
+ smelt/rules/activation.py,sha256=6ZdrsDz4kWUBO4RiM3RfCfnM0D6TT0v7PONxe30Gd-c,4741
92
+ smelt/rules/base.py,sha256=FKJ2IuTc02VaG_jJq13c1b6i8Mn0CV2acCU32VUIdwM,3772
93
+ smelt/rules/catalog.json,sha256=odUjlHEedBuP8G4v3gTihqRKQ65cf6TkSjQbJI6kDgI,14862
94
+ smelt/rules/common.py,sha256=jcYP6o5gGHB-uxNwX41u3KcQ6xIQE5s84yVDADR8Mz4,5781
95
+ smelt/rules/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
96
+ smelt/rules/dependencies/composition_root.py,sha256=o80TR0a9U2wQwa88Aj186jG8kHEkQgAfD9L9E39IHnw,3232
97
+ smelt/rules/dependencies/cycles.py,sha256=rwTuIqwXNM4EJUEUyR0cxbh3sFAXk9hnyCoiF19jAtA,13021
98
+ smelt/rules/dependencies/fanout.py,sha256=km4KAr8NyeWLvbWwuxSd9I1GhGtd5CHp2eRibIYOetA,3919
99
+ smelt/rules/dependencies/features.py,sha256=bXeW_i2FvFpS3Skt29tFS-fttcCKyHFFs5X2Bz9eLlY,6869
100
+ smelt/rules/dependencies/interfaces.py,sha256=8JC2ZUzvNW3Agkp-7r3SmRxqouDO13ci6zrUejcenJ4,3839
101
+ smelt/rules/dependencies/layers.py,sha256=dut0KWtE8IJ8blGWgHwR75ftpOtcEzfgRtwVSNw8T5Y,5041
102
+ smelt/rules/dependencies/third_party.py,sha256=YztVA2togHg8jfizrDkW0yqRpwOMHfvvebfVof6tyAM,5054
103
+ smelt/rules/member_names.py,sha256=jQp1306QT9X_GBlgyFAKVQNbwLieBHeRQuYv1L-kkm8,405
104
+ smelt/rules/meta.py,sha256=uren5rRquGgiIWFmNKLYiZVkA5uc0oYzNoeUSdQH3pw,2505
105
+ smelt/rules/registry.py,sha256=TfTXnCSu6ihNSjoSL6dBr7WhpFTbSTOABYcTbk9f1Uk,5431
106
+ smelt/rules/structure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
+ smelt/rules/structure/assignments.py,sha256=0Hke3CCBNsmTr64VQVvxQg9Yvi9iKw9QibWe_fs1YO4,5732
108
+ smelt/rules/structure/contracts.py,sha256=zDV9cTNtQ8RocX_cF5EOmsh7TZ_cIE6Mw4fjEzgasCQ,3216
109
+ smelt/rules/structure/coverage.py,sha256=bEhLPB-XwP27jzMP4ofKrrBydm4ktc6Xq8BKR0YjD9E,4460
110
+ smelt/rules/structure/enum_values.py,sha256=3yjGfr8H_mvamx7qiY7bwBqfb1HnBd14ZdHwUI58Muw,3145
111
+ smelt/rules/structure/headers.py,sha256=2wWX2armF-NdQJ6WvTrvNF9zkj1_iS54AfWlI81nLLY,7186
112
+ smelt/rules/structure/import_style.py,sha256=-DUyqrWIUtfkW81AfduRg2np_5yIpmnJMdoKP6DY3ho,6028
113
+ smelt/rules/structure/layout.py,sha256=vomvXICEFqQd0sZArEXw2YNCnSbht88KB9BobVFNxkU,8317
114
+ smelt/rules/structure/members.py,sha256=eikt8ZZxUEHDCyWwTxvZz_BL4Pmw9tVJC3Bua-RKW0M,8153
115
+ smelt/rules/structure/naming.py,sha256=TLqdyRhF3ruBsxLjf3tbNCDMRSni7P8dmVdgyxIZLnc,5836
116
+ smelt/rules/structure/ordering.py,sha256=LWaFtIOyJmYwjceazL8gp-Od8n1zkpIlKD5tHK7TxvM,4027
117
+ smelt/rules/structure/package_imports.py,sha256=uxXCYpV0DxFSlMF37byCAmZr7pzGR3_ymC8DM_iVQOw,5660
118
+ smelt/rules/structure/type_dispatch.py,sha256=BEcST6ESb4LOBBR7NjmKOdBKg8HzC7kW1VnlPNrvOhM,4516
119
+ smelt/rules/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
120
+ smelt/rules/testing/awaits.py,sha256=ZQaA2hIhwoK7Jfph_Qe3fmEEqsskKDMQPUt3Ia0ucp8,3053
121
+ smelt/rules/testing/cases.py,sha256=Ho7DCoGShgWVLlq9BqdLskQLIAAnMwWYbDoWkl6yfTk,2707
122
+ smelt/rules/testing/location.py,sha256=I273AyFYjgTNIRePZwj1N_DLr6NLcPj8rCKcFz6kZAg,21498
123
+ smelt/rules/testing/mocking.py,sha256=MngD2oAk8pfSxIiwmvcChWw3MUGAx7qoUumd_AdwL64,7898
124
+ smelt/rules/testing/outcomes.py,sha256=XwCohyUAjTOWgs9wSgRuKR9B_XYf2okRqrcOVl_kVp0,7364
125
+ smelt/rules/testing/private_access.py,sha256=vvxDeyzEnVp1LcFrepyJGvmmT8-3r68BXf6LV5TL7MU,4894
126
+ smelt/rules/testing/public_attributes.py,sha256=8vUZMepvdclv4Lo-w8fGkgd8xn9pmBeTZzX5GTOMh_Y,4477
127
+ smelt/rules/testing/public_functions.py,sha256=ZfIfHznbzMmf-WEqmwwxdhIL1Gh5BL5ezKuRKAAe6KI,3874
128
+ smelt/rules/testing/timing.py,sha256=OSTdnqwtIevW20l5-penSeDaeMc-K59xI-UpwuWD5nY,3887
129
+ smelt_cli-0.2.0.data/scripts/smelt.exe,sha256=uh3uN5hTbuZ04w_q5VbUCcKTIzDDmBZXnlUTtVRMf_s,2177536
130
+ smelt_cli-0.2.0.dist-info/METADATA,sha256=sa28qWpBMG-AF5cS5vwCj5PmYm_8oB_I4_p0SYxhBjg,5426
131
+ smelt_cli-0.2.0.dist-info/WHEEL,sha256=Uvw7WSmy7Kj2FBk8Va4L_dq4MDW8X5Ynby-pOX3ZNS0,94
132
+ smelt_cli-0.2.0.dist-info/sboms/smelt-cli.cyclonedx.json,sha256=8_sP8Ogc2xISL8Bj9A9Sn3oD1tWAqKQx56IZOvuzm0U,182694
133
+ smelt_cli-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64