Skip to content

fix(linter)!: Use --output-format in the RUFF linter #292

fix(linter)!: Use --output-format in the RUFF linter

fix(linter)!: Use --output-format in the RUFF linter #292

Triggered via pull request October 16, 2023 23:39
@justinchubyjustinchuby
synchronize #77
ruff-0.1
Status Cancelled
Total duration 1m 51s
Artifacts

ci.yml

on: pull_request
Matrix: lintrunner
Matrix: pytest
Release
0s
Release
Fit to window
Zoom out
Zoom in

Annotations

33 errors
lintrunner (ubuntu-latest, 3.10)
Unable to upload "lintrunner.sarif" as it is not valid SARIF: - instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri is not of a type(s) string
lintrunner (ubuntu-latest, 3.10)
Process completed with exit code 1.
RUFF command-failed: null#L1
COMMAND (exit code 2) /opt/hostedtoolcache/Python/3.10.13/x64/bin/python -m ruff --exit-zero --quiet --output-format=json --config=pyproject.toml /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/__init__.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/__main__.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/_common/lintrunner_common.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/add_trailing_comma_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/black_isort_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/black_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/clangformat_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/clippy_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/cmake_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/django_upgrade_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/editorconfig_checker_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/exec_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/flake8_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/grep_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/isort_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/mypy_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/newlines_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/pip_init.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/pylint_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/pyupgrade_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/refurb_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/ruff_fix_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/ruff_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/rustfmt_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/shellcheck_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/toml_sort_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/ufmt_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/tools/convert_to_sarif.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/tools/convert_to_sarif_test.py STDERR error: unexpected argument '--output-format' found note: to pass '--output-format' as a value, use '-- --output-format' Usage: ruff check <FILES|--fix|--no-fix|--show-source|--no-show-source|--show-fixes|--no-show-fixes|--diff|--watch|--fix-only|--no-fix-only|--ignore-noqa|--format <FORMAT>|--target-version <TARGET_VERSION>|--config <CONFIG>|--select <RULE_CODE>|--ignore <RULE_CODE>|--extend-select <RULE_CODE>|--extend-ignore <RULE_CODE>|--per-file-ignores <PER_FILE_IGNORES>|--exclude <FILE_PATTERN>|--extend-exclude <FILE_PATTERN>|--fixable <RULE_CODE>|--unfixable <RULE_CODE>|--respect-gitignore|--no-respect-gitignore|--force-exclude|--no-force-exclude|--line-length <LINE_LENGTH>|--dummy-variable-rgx <DUMMY_VARIABLE_RGX>|--no-cache|--isolated|--cache-dir <CACHE_DIR>|--stdin-filename <STDIN_FILENAME>|--exit-zero|--exit-non-zero-on-fix|--update-check|--no-update-check|--statistics|--add-noq
lintrunner (ubuntu-latest, 3.11)
Process completed with exit code 1.
RUFF command-failed: null#L1
COMMAND (exit code 2) /opt/hostedtoolcache/Python/3.11.5/x64/bin/python -m ruff --exit-zero --quiet --output-format=json --config=pyproject.toml /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/__init__.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/__main__.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/_common/lintrunner_common.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/add_trailing_comma_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/black_isort_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/black_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/clangformat_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/clippy_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/cmake_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/django_upgrade_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/editorconfig_checker_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/exec_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/flake8_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/grep_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/isort_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/mypy_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/newlines_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/pip_init.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/pylint_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/pyupgrade_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/refurb_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/ruff_fix_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/ruff_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/rustfmt_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/shellcheck_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/toml_sort_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/ufmt_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/tools/convert_to_sarif.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/tools/convert_to_sarif_test.py STDERR error: unexpected argument '--output-format' found note: to pass '--output-format' as a value, use '-- --output-format' Usage: ruff check <FILES|--fix|--no-fix|--show-source|--no-show-source|--show-fixes|--no-show-fixes|--diff|--watch|--fix-only|--no-fix-only|--ignore-noqa|--format <FORMAT>|--target-version <TARGET_VERSION>|--config <CONFIG>|--select <RULE_CODE>|--ignore <RULE_CODE>|--extend-select <RULE_CODE>|--extend-ignore <RULE_CODE>|--per-file-ignores <PER_FILE_IGNORES>|--exclude <FILE_PATTERN>|--extend-exclude <FILE_PATTERN>|--fixable <RULE_CODE>|--unfixable <RULE_CODE>|--respect-gitignore|--no-respect-gitignore|--force-exclude|--no-force-exclude|--line-length <LINE_LENGTH>|--dummy-variable-rgx <DUMMY_VARIABLE_RGX>|--no-cache|--isolated|--cache-dir <CACHE_DIR>|--stdin-filename <STDIN_FILENAME>|--exit-zero|--exit-non-zero-on-fix|--update-check|--no-update-check|--statistics|--add-noqa
lintrunner (ubuntu-latest, 3.11)
Unable to upload "lintrunner.sarif" as it is not valid SARIF: - instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri is not of a type(s) string
lintrunner (ubuntu-latest, 3.9)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
lintrunner (ubuntu-latest, 3.9)
Process completed with exit code 1.
lintrunner (ubuntu-latest, 3.9)
Unable to upload "lintrunner.sarif" as it is not valid SARIF: - instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri is not of a type(s) string
RUFF command-failed: null#L1
COMMAND (exit code 2) /opt/hostedtoolcache/Python/3.9.18/x64/bin/python -m ruff --exit-zero --quiet --output-format=json --config=pyproject.toml /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/__init__.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/__main__.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/_common/lintrunner_common.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/add_trailing_comma_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/black_isort_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/black_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/clangformat_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/clippy_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/cmake_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/django_upgrade_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/editorconfig_checker_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/exec_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/flake8_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/grep_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/isort_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/mypy_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/newlines_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/pip_init.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/pylint_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/pyupgrade_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/refurb_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/ruff_fix_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/ruff_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/rustfmt_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/shellcheck_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/toml_sort_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/adapters/ufmt_linter.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/tools/convert_to_sarif.py /home/runner/work/lintrunner-adapters/lintrunner-adapters/lintrunner_adapters/tools/convert_to_sarif_test.py STDERR error: unexpected argument '--output-format' found note: to pass '--output-format' as a value, use '-- --output-format' Usage: ruff check <FILES|--fix|--no-fix|--show-source|--no-show-source|--show-fixes|--no-show-fixes|--diff|--watch|--fix-only|--no-fix-only|--ignore-noqa|--format <FORMAT>|--target-version <TARGET_VERSION>|--config <CONFIG>|--select <RULE_CODE>|--ignore <RULE_CODE>|--extend-select <RULE_CODE>|--extend-ignore <RULE_CODE>|--per-file-ignores <PER_FILE_IGNORES>|--exclude <FILE_PATTERN>|--extend-exclude <FILE_PATTERN>|--fixable <RULE_CODE>|--unfixable <RULE_CODE>|--respect-gitignore|--no-respect-gitignore|--force-exclude|--no-force-exclude|--line-length <LINE_LENGTH>|--dummy-variable-rgx <DUMMY_VARIABLE_RGX>|--no-cache|--isolated|--cache-dir <CACHE_DIR>|--stdin-filename <STDIN_FILENAME>|--exit-zero|--exit-non-zero-on-fix|--update-check|--no-update-check|--statistics|--add-noqa
pytest (windows-latest, 3.9)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
pytest (windows-latest, 3.9)
The operation was canceled.
pytest (windows-latest, 3.11)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
pytest (windows-latest, 3.11)
The operation was canceled.
lintrunner (windows-latest, 3.10)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
lintrunner (windows-latest, 3.10)
The operation was canceled.
pytest (windows-latest, 3.8)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
pytest (windows-latest, 3.8)
The operation was canceled.
lintrunner (windows-latest, 3.11)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
lintrunner (windows-latest, 3.11)
The operation was canceled.
lintrunner (windows-latest, 3.9)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
lintrunner (windows-latest, 3.9)
The operation was canceled.
lintrunner (macos-latest, 3.10)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
lintrunner (macos-latest, 3.10)
Process completed with exit code 2.
lintrunner (macos-latest, 3.10)
The operation was canceled.
lintrunner (macos-latest, 3.11)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
lintrunner (macos-latest, 3.11)
Process completed with exit code 2.
lintrunner (macos-latest, 3.11)
The operation was canceled.
lintrunner (macos-latest, 3.9)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
lintrunner (macos-latest, 3.9)
The operation was canceled.
lintrunner (macos-latest, 3.9)
Process completed with exit code 2.
pytest (windows-latest, 3.10)
Canceling since a higher priority waiting request for 'CI-refs/pull/77/merge-false' exists
pytest (windows-latest, 3.10)
The operation was canceled.