sarj-python-lint 0.23.0__tar.gz → 0.24.0__tar.gz

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 (84) hide show
  1. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/PKG-INFO +34 -3
  2. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/README.md +33 -2
  3. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/pyproject.toml +1 -1
  4. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/_registry.py +35 -0
  5. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/conditional_assertion_in_test.py +1265 -0
  6. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/duplicate_test_body.py +701 -0
  7. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/interaction_only_test.py +712 -0
  8. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_comment_cruft.py +44 -2
  9. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_gen_random_uuid_in_sql.py +28 -2
  10. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_offset_pagination.py +35 -4
  11. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/no_patching_system_under_test.py +734 -0
  12. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +14 -0
  13. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_restated_comment.py +52 -6
  14. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_stdlib_logging.py +35 -9
  15. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_tautological_expect.py +57 -0
  16. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/over_mocked_test.py +1006 -0
  17. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +546 -0
  18. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/prefer_library_fake.py +631 -0
  19. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/prefer_match_pattern_destructuring.py +427 -0
  20. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/prefer_or_pattern.py +370 -0
  21. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/prefer_real_store_in_tests.py +613 -0
  22. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/require_port_for_service.py +759 -0
  23. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +151 -0
  24. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/tautological_mock_assertion.py +531 -0
  25. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/trailing_value_narration.py +25 -2
  26. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/trivially_true_assertion.py +772 -0
  27. sarj_python_lint-0.24.0/src/sarj_python_lint/rules/unused_mock_setup.py +491 -0
  28. sarj_python_lint-0.23.0/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -93
  29. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/.gitignore +0 -0
  30. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/__init__.py +0 -0
  31. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/__main__.py +0 -0
  32. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
  33. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/_secret_names.py +0 -0
  34. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/_version.py +0 -0
  35. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/py.typed +0 -0
  36. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/ratchet.py +0 -0
  37. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rule_base.py +0 -0
  38. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/__init__.py +0 -0
  39. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/_comments.py +0 -0
  40. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
  41. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/_logging.py +0 -0
  42. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/_paths.py +0 -0
  43. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
  44. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/_sql.py +0 -0
  45. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
  46. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/fixture_returns_bare_tuple.py +0 -0
  47. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/inefficient_string_concat_in_loop.py +0 -0
  48. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/kwarg_heavy_construction_in_test.py +0 -0
  49. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/kwonly_same_type_params.py +0 -0
  50. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
  51. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_aggregation_in_store_query.py +0 -0
  52. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
  53. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_fat_try_blocks.py +0 -0
  54. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_noqa.py +0 -0
  55. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_file_level_suppression.py +0 -0
  56. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
  57. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_fstring_in_log.py +0 -0
  58. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_isinstance_union_chain.py +0 -0
  59. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_optional_tenant_predicate.py +0 -0
  60. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_query_with_many_joins.py +0 -0
  61. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_raw_sql_in_tests.py +0 -0
  62. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
  63. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
  64. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_sentinel_return_on_except.py +0 -0
  65. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_sequential_await.py +0 -0
  66. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_sleep_in_test_body.py +0 -0
  67. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/no_unreachable_after_terminal.py +0 -0
  68. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/parametrize_case_needs_id.py +0 -0
  69. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
  70. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
  71. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
  72. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
  73. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
  74. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
  75. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
  76. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/prefer_timedelta_for_durations.py +0 -0
  77. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/pydantic_at_boundaries.py +0 -0
  78. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
  79. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/single_public_export.py +0 -0
  80. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/sleep_with_computed_arg_in_test.py +0 -0
  81. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
  82. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/test_loops_over_literal_cases.py +0 -0
  83. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/xfail_requires_strict.py +0 -0
  84. {sarj_python_lint-0.23.0 → sarj_python_lint-0.24.0}/src/sarj_python_lint/rules/zero_assertion_test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sarj-python-lint
3
- Version: 0.23.0
3
+ Version: 0.24.0
4
4
  Summary: Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults
5
5
  Project-URL: Homepage, https://github.com/sarj-ai/standards/tree/main/packages/python
6
6
  Project-URL: Repository, https://github.com/sarj-ai/standards
@@ -28,7 +28,7 @@ uv tool install sarj-python-lint
28
28
 
29
29
  ```yaml
30
30
  - repo: https://github.com/sarj-ai/standards
31
- rev: python-v0.2.0
31
+ rev: python-v0.24.0
32
32
  hooks:
33
33
  - id: sarj-no-sequential-await
34
34
  - id: sarj-inefficient-string-concat-in-loop
@@ -146,6 +146,37 @@ decisions into one unreviewable one and pre-authorizes every mock added later.
146
146
  Scoped exemptions for mechanical codes (`E501`, `F401`, `UP035`) are never
147
147
  flagged — measured across five repos those are the entire population.
148
148
 
149
+
150
+ ### Mock-quality and real-dependency rules (0.24.0)
151
+
152
+ The second test-quality wave. Where the 0.15.0 family asks "does this test assert
153
+ anything?", this one asks "does it exercise anything real?" — it pushes suites off
154
+ hand-rolled doubles and onto the real store, the real database and a maintained fake
155
+ library. Measured against bulbul, noura-be, five other first-party repos and fourteen
156
+ OSS corpora; two candidates were dropped outright when the corpus showed they only
157
+ duplicated ruff.
158
+
159
+ ```yaml
160
+ - id: sarj-prefer-real-store-in-tests # SARJ058
161
+ - id: sarj-prefer-library-fake # SARJ059
162
+ - id: sarj-tautological-mock-assertion # SARJ060
163
+ - id: sarj-no-patching-system-under-test # SARJ061
164
+ - id: sarj-over-mocked-test # SARJ062
165
+ - id: sarj-interaction-only-test # SARJ063
166
+ - id: sarj-trivially-true-assertion # SARJ064
167
+ - id: sarj-conditional-assertion-in-test # SARJ065
168
+ - id: sarj-duplicate-test-body # SARJ066
169
+ - id: sarj-unused-mock-setup # SARJ067
170
+ ```
171
+
172
+ ### Expressiveness rules (0.24.0)
173
+
174
+ ```yaml
175
+ - id: sarj-prefer-fstring-over-concat # SARJ068
176
+ - id: sarj-prefer-match-pattern-destructuring # SARJ069
177
+ - id: sarj-prefer-or-pattern # SARJ070
178
+ - id: sarj-require-port-for-service # SARJ071
179
+ ```
149
180
  ### Suppression ratchet (`sarj-ratchet`, 0.21.0)
150
181
 
151
182
  ```yaml
@@ -196,7 +227,7 @@ sarj-python-lint check --rule mock-without-spec --update-baseline test-quality-b
196
227
  sarj-python-lint check --rule mock-without-spec --baseline test-quality-baseline.json python/
197
228
  ```
198
229
 
199
- ### Multi-tenant scoping (0.22.0)
230
+ ### Multi-tenant scoping (0.24.0)
200
231
 
201
232
  ```yaml
202
233
  - id: sarj-no-optional-tenant-predicate # SARJ056
@@ -10,7 +10,7 @@ uv tool install sarj-python-lint
10
10
 
11
11
  ```yaml
12
12
  - repo: https://github.com/sarj-ai/standards
13
- rev: python-v0.2.0
13
+ rev: python-v0.24.0
14
14
  hooks:
15
15
  - id: sarj-no-sequential-await
16
16
  - id: sarj-inefficient-string-concat-in-loop
@@ -128,6 +128,37 @@ decisions into one unreviewable one and pre-authorizes every mock added later.
128
128
  Scoped exemptions for mechanical codes (`E501`, `F401`, `UP035`) are never
129
129
  flagged — measured across five repos those are the entire population.
130
130
 
131
+
132
+ ### Mock-quality and real-dependency rules (0.24.0)
133
+
134
+ The second test-quality wave. Where the 0.15.0 family asks "does this test assert
135
+ anything?", this one asks "does it exercise anything real?" — it pushes suites off
136
+ hand-rolled doubles and onto the real store, the real database and a maintained fake
137
+ library. Measured against bulbul, noura-be, five other first-party repos and fourteen
138
+ OSS corpora; two candidates were dropped outright when the corpus showed they only
139
+ duplicated ruff.
140
+
141
+ ```yaml
142
+ - id: sarj-prefer-real-store-in-tests # SARJ058
143
+ - id: sarj-prefer-library-fake # SARJ059
144
+ - id: sarj-tautological-mock-assertion # SARJ060
145
+ - id: sarj-no-patching-system-under-test # SARJ061
146
+ - id: sarj-over-mocked-test # SARJ062
147
+ - id: sarj-interaction-only-test # SARJ063
148
+ - id: sarj-trivially-true-assertion # SARJ064
149
+ - id: sarj-conditional-assertion-in-test # SARJ065
150
+ - id: sarj-duplicate-test-body # SARJ066
151
+ - id: sarj-unused-mock-setup # SARJ067
152
+ ```
153
+
154
+ ### Expressiveness rules (0.24.0)
155
+
156
+ ```yaml
157
+ - id: sarj-prefer-fstring-over-concat # SARJ068
158
+ - id: sarj-prefer-match-pattern-destructuring # SARJ069
159
+ - id: sarj-prefer-or-pattern # SARJ070
160
+ - id: sarj-require-port-for-service # SARJ071
161
+ ```
131
162
  ### Suppression ratchet (`sarj-ratchet`, 0.21.0)
132
163
 
133
164
  ```yaml
@@ -178,7 +209,7 @@ sarj-python-lint check --rule mock-without-spec --update-baseline test-quality-b
178
209
  sarj-python-lint check --rule mock-without-spec --baseline test-quality-baseline.json python/
179
210
  ```
180
211
 
181
- ### Multi-tenant scoping (0.22.0)
212
+ ### Multi-tenant scoping (0.24.0)
182
213
 
183
214
  ```yaml
184
215
  - id: sarj-no-optional-tenant-predicate # SARJ056
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sarj-python-lint"
3
- version = "0.23.0"
3
+ version = "0.24.0"
4
4
  description = "Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "sarj-ai" }]
@@ -2,10 +2,13 @@ from __future__ import annotations
2
2
 
3
3
  from typing import TYPE_CHECKING
4
4
 
5
+ from sarj_python_lint.rules.conditional_assertion_in_test import ConditionalAssertionInTest
6
+ from sarj_python_lint.rules.duplicate_test_body import DuplicateTestBody
5
7
  from sarj_python_lint.rules.fixture_returns_bare_tuple import FixtureReturnsBareTuple
6
8
  from sarj_python_lint.rules.inefficient_string_concat_in_loop import (
7
9
  InefficientStringConcatInLoop,
8
10
  )
11
+ from sarj_python_lint.rules.interaction_only_test import InteractionOnlyTest
9
12
  from sarj_python_lint.rules.kwarg_heavy_construction_in_test import KwargHeavyConstructionInTest
10
13
  from sarj_python_lint.rules.kwonly_same_type_params import KwonlySameTypeParams
11
14
  from sarj_python_lint.rules.mock_without_spec import MockWithoutSpec
@@ -29,6 +32,7 @@ from sarj_python_lint.rules.no_offset_pagination import NoOffsetPagination
29
32
  from sarj_python_lint.rules.no_optional_tenant_predicate import (
30
33
  NoOptionalTenantPredicate,
31
34
  )
35
+ from sarj_python_lint.rules.no_patching_system_under_test import NoPatchingSystemUnderTest
32
36
  from sarj_python_lint.rules.no_query_with_many_joins import NoQueryWithManyJoins
33
37
  from sarj_python_lint.rules.no_raw_sql_in_tests import NoRawSqlInTests
34
38
  from sarj_python_lint.rules.no_repeated_string_literal import NoRepeatedStringLiteral
@@ -43,18 +47,24 @@ from sarj_python_lint.rules.no_tautological_expect import NoTautologicalExpect
43
47
  from sarj_python_lint.rules.no_unreachable_after_terminal import (
44
48
  NoUnreachableAfterTerminal,
45
49
  )
50
+ from sarj_python_lint.rules.over_mocked_test import OverMockedTest
46
51
  from sarj_python_lint.rules.parametrize_case_needs_id import ParametrizeCaseNeedsId
47
52
  from sarj_python_lint.rules.prefer_class_row import PreferClassRow
48
53
  from sarj_python_lint.rules.prefer_constant_time_secret_compare import (
49
54
  PreferConstantTimeSecretCompare,
50
55
  )
56
+ from sarj_python_lint.rules.prefer_fstring_over_concat import PreferFstringOverConcat
57
+ from sarj_python_lint.rules.prefer_library_fake import PreferLibraryFake
51
58
  from sarj_python_lint.rules.prefer_match_assert_never import PreferMatchAssertNever
59
+ from sarj_python_lint.rules.prefer_match_pattern_destructuring import PreferMatchPatternDestructuring
52
60
  from sarj_python_lint.rules.prefer_module_level_constant import (
53
61
  PreferModuleLevelConstant,
54
62
  )
55
63
  from sarj_python_lint.rules.prefer_namedtuple_over_tuple_return import (
56
64
  PreferNamedtupleOverTupleReturn,
57
65
  )
66
+ from sarj_python_lint.rules.prefer_or_pattern import PreferOrPattern
67
+ from sarj_python_lint.rules.prefer_real_store_in_tests import PreferRealStoreInTests
58
68
  from sarj_python_lint.rules.prefer_str_enum import PreferStrEnum
59
69
  from sarj_python_lint.rules.prefer_struct_over_namedtuple import (
60
70
  PreferStructOverNamedtuple,
@@ -64,16 +74,20 @@ from sarj_python_lint.rules.prefer_timedelta_for_durations import (
64
74
  )
65
75
  from sarj_python_lint.rules.pydantic_at_boundaries import PydanticAtBoundaries
66
76
  from sarj_python_lint.rules.redundant_docstring import RedundantDocstring
77
+ from sarj_python_lint.rules.require_port_for_service import RequirePortForService
67
78
  from sarj_python_lint.rules.single_public_export import SinglePublicExport
68
79
  from sarj_python_lint.rules.sleep_with_computed_arg_in_test import SleepWithComputedArgInTest
69
80
  from sarj_python_lint.rules.stepdown import Stepdown
70
81
  from sarj_python_lint.rules.store_insert_requires_on_conflict import (
71
82
  StoreInsertRequiresOnConflict,
72
83
  )
84
+ from sarj_python_lint.rules.tautological_mock_assertion import TautologicalMockAssertion
73
85
  from sarj_python_lint.rules.test_loops_over_literal_cases import (
74
86
  TestLoopsOverLiteralCases,
75
87
  )
76
88
  from sarj_python_lint.rules.trailing_value_narration import TrailingValueNarration
89
+ from sarj_python_lint.rules.trivially_true_assertion import TriviallyTrueAssertion
90
+ from sarj_python_lint.rules.unused_mock_setup import UnusedMockSetup
77
91
  from sarj_python_lint.rules.xfail_requires_strict import XfailRequiresStrict
78
92
  from sarj_python_lint.rules.zero_assertion_test import ZeroAssertionTest
79
93
 
@@ -102,6 +116,13 @@ if TYPE_CHECKING:
102
116
  # against every corpus; that, not the narrow variant, is the case to make.),
103
117
  # SARJ037 no-trivial-single-use-helper (prototyped and dropped for FP rate;
104
118
  # see the 0.13.1 inlining commit for the corpus analysis).
119
+ # SARJ072 unbound-mock-assertion and SARJ073 raises-needs-specific-error
120
+ # (built, corpus-measured and dropped before ever being registered, in the
121
+ # wave that added SARJ058-071). SARJ072 found 0 hits across 16,130 files in
122
+ # 9 repos, including 0 against 8,322 real mock-assertion API uses; ruff B018
123
+ # covers its bare-statement shape. SARJ073 was a strict superset of ruff
124
+ # PT011, which this standard already enables — its one real gap,
125
+ # RuntimeError, is closed by `lint.flake8-pytest-style.raises-require-match-for`.
105
126
  REGISTRY: dict[str, type[Rule]] = {
106
127
  NoSequentialAwait.id: NoSequentialAwait,
107
128
  InefficientStringConcatInLoop.id: InefficientStringConcatInLoop,
@@ -151,6 +172,20 @@ REGISTRY: dict[str, type[Rule]] = {
151
172
  NoFileLevelEscapeHatchNoqa.id: NoFileLevelEscapeHatchNoqa,
152
173
  NoOptionalTenantPredicate.id: NoOptionalTenantPredicate,
153
174
  NoTautologicalExpect.id: NoTautologicalExpect,
175
+ PreferRealStoreInTests.id: PreferRealStoreInTests,
176
+ PreferLibraryFake.id: PreferLibraryFake,
177
+ TautologicalMockAssertion.id: TautologicalMockAssertion,
178
+ NoPatchingSystemUnderTest.id: NoPatchingSystemUnderTest,
179
+ OverMockedTest.id: OverMockedTest,
180
+ InteractionOnlyTest.id: InteractionOnlyTest,
181
+ TriviallyTrueAssertion.id: TriviallyTrueAssertion,
182
+ ConditionalAssertionInTest.id: ConditionalAssertionInTest,
183
+ DuplicateTestBody.id: DuplicateTestBody,
184
+ UnusedMockSetup.id: UnusedMockSetup,
185
+ PreferFstringOverConcat.id: PreferFstringOverConcat,
186
+ PreferMatchPatternDestructuring.id: PreferMatchPatternDestructuring,
187
+ PreferOrPattern.id: PreferOrPattern,
188
+ RequirePortForService.id: RequirePortForService,
154
189
  }
155
190
 
156
191
  __all__ = ["REGISTRY"]