huak icon indicating copy to clipboard operation
huak copied to clipboard

huak fmt --check will exit early if imports aren't sorted

Open cnpryer opened this issue 1 year ago • 0 comments

In order to check both imports and the rest of Python source code, huak uses ruff and black. In the future, ideally, only ruff will be necessary. Otherwise better process management could resolve this.

If --check is passed to huak fmt, huak will first run the ruff check on the imports. huak will emit a warning about this issue prior to running the check. At the moment if non-zero exit codes are returned from these commands, huak exits immediately with the code. This means the black check won't run if ruff exits with non-zero.

cnpryer avatar Mar 27 '23 21:03 cnpryer