Why: gtd-inbox-pull's Plan 6 runs the dryer over the swipe page's JavaScript, and the dryer skipped .js files. This is for BJ's mirror only. What changed: .js, .jsx, .mjs and .cjs are discovered as "javascript"; their .test and .spec forms are test files. extract.py gains a "javascript" picker that parses with the JavaScript grammar and reuses _typescript_nodes, since the tree is TypeScript's without type nodes. No other code is keyed on the language name. README, pyproject, the CLI help and the package docstring name JavaScript. Proof: four tests written first and seen to fail on their own assertions (language detection, test-file names, the language-set tests with a JS pair, and the method and nested-function rule), then the full suite passed (81 tests). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015GF1LYr5V3zY3815Nt6KwR
30 lines
683 B
TOML
30 lines
683 B
TOML
[project]
|
|
name = "dryer"
|
|
version = "0.1.0"
|
|
description = "Structural duplicate finder for Clojure, Java, Go, TypeScript, JavaScript, Rust, and Python."
|
|
readme = "README.md"
|
|
license = { file = "LICENSE" }
|
|
classifiers = ["License :: OSI Approved :: Zero-Clause BSD (0BSD)"]
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"tree-sitter>=0.24",
|
|
"tree-sitter-language-pack>=0.7",
|
|
]
|
|
|
|
[project.scripts]
|
|
dryer = "dryer.cli:main"
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest>=8"]
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
pythonpath = ["src"]
|