Skip to content

Commit ea9895b

Browse files
veeceeyclaude
andcommitted
Remove duplicate-word lint check from build
Per discussion with Zac-HD and Liam-DeVoe, the automated duplicate-word grep check has too many false positives for legitimate constructs like "that that" and no way to locally disable it. Keeping just the typo fixes, dropping the lint rule. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 6ef9519 commit ea9895b

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

tooling/src/hypothesistooling/__main__.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ def lint():
8080
pip_tool("ruff", "check", ".")
8181
codespell(*(p for p in tools.all_files() if not p.name.endswith("by-domain.txt")))
8282

83-
from textwrap import indent
84-
85-
failed = False
86-
8783
matches = subprocess.run(
8884
r"git grep -En '@(dataclasses\.)?dataclass\(.*\)' "
8985
"| grep -Ev 'frozen=.*slots=|slots=.*frozen='",
@@ -92,23 +88,10 @@ def lint():
9288
text=True,
9389
).stdout
9490
if matches:
91+
from textwrap import indent
92+
9593
print("\nAll dataclass decorators must pass slots= and frozen= arguments:")
9694
print(indent(matches, " "))
97-
failed = True
98-
99-
dupes = subprocess.run(
100-
r"git grep -nP '\b([a-z]{2,})\s+\1\b'"
101-
" -- ':!*.svg' ':!*.png' ':!*.jpg' ':!*.sketch'",
102-
shell=True,
103-
capture_output=True,
104-
text=True,
105-
).stdout
106-
if dupes:
107-
print("\nDuplicate word(s) found:")
108-
print(indent(dupes, " "))
109-
failed = True
110-
111-
if failed:
11295
sys.exit(1)
11396

11497

0 commit comments

Comments
 (0)