claude-dev-env 2.33.0 → 2.33.1

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.
@@ -20,7 +20,7 @@ Inline the artifact under this section using the section types defined in the ch
20
20
  **E1. New imports without references**
21
21
  - Walk every `import` line introduced or modified by the artifact. For each, locate at least one body reference in the same file (function call, attribute access, type annotation, decorator, default-argument expression).
22
22
  - Confirm `__all__` re-exports: if the file declares `__all__`, an import that appears only in `__all__` still counts as referenced; if no `__all__` is declared, the exemption is inert and must be stated as such.
23
- - Confirm `# noqa` markers: every `# noqa` on an import line must be justified by a specific lint code (e.g., `E402` for module-level imports following a `sys.path` mutation). State the justification.
23
+ - Confirm changed `# noqa` directives are removed or resolved. Leave directives on untouched lines outside the change scope.
24
24
  - Confirm `TYPE_CHECKING` blocks: imports inside `if TYPE_CHECKING:` are referenced only by string-form annotations or runtime `typing.get_type_hints` consumers; verify at least one such consumer or mark the exemption inert.
25
25
  - Constants-only or re-export-only files (no imports of their own) — state explicitly that there is nothing to sweep.
26
26
 
@@ -104,7 +104,7 @@ components/
104
104
 
105
105
  - **Complete type annotations** - All props, state, and return types defined
106
106
  - **No `any` types** - Use generics, union types, or `unknown` with type guards
107
- - **No `@ts-ignore` or `@ts-expect-error`** without clear justification
107
+ - **Resolve `@ts-ignore` and `@ts-expect-error`** instead of adding or justifying them
108
108
  - **Functional components only** - No class components (except error boundaries)
109
109
  - **Custom hooks for logic** - Separate business logic from UI
110
110
  - **Props interfaces** - Define explicit Props type for every component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-dev-env",
3
- "version": "2.33.0",
3
+ "version": "2.33.1",
4
4
  "description": "Claude Code development standards — rules, hooks, agents, commands, and skills",
5
5
  "type": "module",
6
6
  "bin": {
@@ -187,3 +187,20 @@ def test_comment_policy_uses_changed_comment_names_and_type_directives() -> None
187
187
  assert "production and test code" in code_quality
188
188
  assert "comments tied to touched code are removed" in gate
189
189
  assert "comments tied to untouched code remain unchanged" in gate
190
+
191
+
192
+ def test_comment_policy_removes_directive_justification_guidance() -> None:
193
+ react_patterns = (
194
+ _PACKAGE_ROOT / "docs" / "REACT_PATTERNS.md"
195
+ ).read_text(encoding="utf-8").lower()
196
+ category_e_prompt = (
197
+ _PACKAGE_ROOT
198
+ / "audit-rubrics"
199
+ / "prompts"
200
+ / "category-e-dead-code.md"
201
+ ).read_text(encoding="utf-8").lower()
202
+
203
+ assert "resolve `@ts-ignore` and `@ts-expect-error`" in react_patterns
204
+ assert "without clear justification" not in react_patterns
205
+ assert "changed `# noqa` directives are removed or resolved" in category_e_prompt
206
+ assert "every `# noqa` on an import line must be justified" not in category_e_prompt