Write a custom lint rule as a standalone tool: nodup imports.py walks Python files given as CLI args, parses…
Write a custom lint rule as a standalone tool: nodup imports.py walks Python files given as CLI args, parses…: a task in traj2envs-rl: RL tasks generated with traj2envs (Harbor dataset). where path is the file path exactly as given on the command line and lineno is the 1-based line number of the…
The task
where `path` is the file path exactly as given on the command line and `lineno` is the 1-based line number of the offending import statement. - Exit codes: - `0` — no findings in any file (stdout is empty), - `1` — at least one finding was reported, - `2` — a file could not be parsed (a syntax-error message is…
Part of harness-hub/traj2envs-rl.