You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The suggested output of format check is the same as the format command.
I have 2 targets:
format_multirun(
name = "format.fix",
python = "@aspect_rules_lint//format:ruff",
and
format_test(
name = "format.check",
python = "@aspect_rules_lint//format:ruff",
The resulting targets are:
# Current targets
//tools/format:BUILD
//tools/format:format.check
//tools/format:format.check_Python_with_ruff
//tools/format:format.fix
//tools/format:format.fix.check
//tools/format:format.fix_Python_with_ruff
//tools/format:format.fix_Python_with_ruff.check
When I run: bazel run //tools/format:format.check_Python_with_ruff I get as suggestion the same command(check) instead of fix command:
FAILED: A formatter tool exited with code 123
Try running 'bazel run //tools/format:format.check_Python_with_ruff ' to fix this.
Version
Development (host) and target OS/architectures: Ubuntu 24.04
Output of bazel --version: bazel 7.4.0
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file: bazel_dep(name = "aspect_rules_lint", version = "1.0.3")
Language(s) and/or frameworks involved: python
How to reproduce
For 2 targets defined:
format_multirun(
name = "format.fix",
python = "@aspect_rules_lint//format:ruff",
and
format_test(
name = "format.check",
python = "@aspect_rules_lint//format:ruff",
Run:
`bazel run //tools/format:format.check_Python_with_ruff`
Observed output:
FAILED: A formatter tool exited with code 123
Try running 'bazel run //tools/format:format.check_Python_with_ruff ' to fix this.
Expected output:
FAILED: A formatter tool exited with code 123
Try running 'bazel run //tools/format:format.fix_Python_with_ruff ' to fix this.
Any other information?
No response
The text was updated successfully, but these errors were encountered:
What happened?
The suggested output of format check is the same as the format command.
I have 2 targets:
and
The resulting targets are:
When I run:
bazel run //tools/format:format.check_Python_with_ruff
I get as suggestion the same command(check) instead of fix command:Version
Development (host) and target OS/architectures: Ubuntu 24.04
Output of
bazel --version
: bazel 7.4.0Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file: bazel_dep(name = "aspect_rules_lint", version = "1.0.3")Language(s) and/or frameworks involved: python
How to reproduce
Any other information?
No response
The text was updated successfully, but these errors were encountered: