Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ttx_diff] More cleanup #1058

Merged
merged 1 commit into from
Oct 18, 2024
Merged

[ttx_diff] More cleanup #1058

merged 1 commit into from
Oct 18, 2024

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Oct 18, 2024

  • Improve some type annotations
  • rename 'run' to 'log_and_run'
  • use kwargs to forward more args to subprocss.run
  • use subprocess.run timeout arg instead of gnu timeout

JMM

cmd_string = " ".join(str(c) for c in cmd)
eprint(f" (cd {working_dir} && {cmd_string})")
eprint(f" (cd {cwd} && {cmd_string})")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cd None would look weird, maybe don't echo cd something if cwd is None?

- Improve some type annotations
- rename 'run' to 'log_and_run'
- use kwargs to forward more args to subprocss.run
- use subprocess.run timeout arg instead of gnu timeout
@cmyr cmyr added this pull request to the merge queue Oct 18, 2024
Merged via the queue into main with commit 7c082d8 Oct 18, 2024
10 checks passed
@cmyr cmyr deleted the ttx-more-cleanup branch October 18, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants