Skip to content

fix(linter): resolve file path for the black linter to avoid a bug in black file path handling #350

fix(linter): resolve file path for the black linter to avoid a bug in black file path handling

fix(linter): resolve file path for the black linter to avoid a bug in black file path handling #350

Triggered via pull request February 4, 2024 15:47
@justinchubyjustinchuby
synchronize #92
black-24
Status Failure
Total duration 2m 51s
Artifacts

ci.yml

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

Annotations

9 errors and 60 warnings
lintrunner (ubuntu-latest, 3.9)
Process completed with exit code 1.
lintrunner (ubuntu-latest, 3.10)
Process completed with exit code 1.
lintrunner (macos-latest, 3.9)
Process completed with exit code 1.
lintrunner (ubuntu-latest, 3.11)
Process completed with exit code 1.
lintrunner (macos-latest, 3.11)
Process completed with exit code 1.
lintrunner (windows-latest, 3.9)
Process completed with exit code 1.
lintrunner (windows-latest, 3.11)
Process completed with exit code 1.
lintrunner (windows-latest, 3.10)
Process completed with exit code 1.
lintrunner (macos-latest, 3.10)
Process completed with exit code 1.
RUFF-FORMAT format: lintrunner_adapters/adapters/clippy_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/editorconfig_checker_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/exec_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/ruff_fix_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/mypy_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/requirements_txt_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/isort_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/rustfmt_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/toml_sort_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/grep_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/toml_sort_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/clangformat_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/ruff_fix_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/flake8_linter.py#L1
Run `lintrunner -a` to apply this patch.
PYLINT R1732: lintrunner_adapters/adapters/black_isort_linter.py#L35
Consider using 'with' for resource-allocating operations (consider-using-with) See [consider-using-with](https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/consider-using-with.html). To disable, use ` # pylint: disable=consider-using-with`
PYLINT R1732: lintrunner_adapters/adapters/black_isort_linter.py#L42
Consider using 'with' for resource-allocating operations (consider-using-with) See [consider-using-with](https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/consider-using-with.html). To disable, use ` # pylint: disable=consider-using-with`
RUFF-FORMAT format: examples/pytorch/flake8_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/black_isort_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/black_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/clangtidy_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/black_isort_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/mypy_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/ufmt_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/flake8_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/django_upgrade_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/editorconfig_checker_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/black_isort_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/exec_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/grep_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/isort_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/flake8_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/django_upgrade_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/requirements_txt_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/mypy_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/newlines_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/exec_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/clangformat_linter.py#L1
Run `lintrunner -a` to apply this patch.
PYLINT R1732: lintrunner_adapters/adapters/black_isort_linter.py#L35
Consider using 'with' for resource-allocating operations (consider-using-with) See [consider-using-with](https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/consider-using-with.html). To disable, use ` # pylint: disable=consider-using-with`
PYLINT R1732: lintrunner_adapters/adapters/black_isort_linter.py#L42
Consider using 'with' for resource-allocating operations (consider-using-with) See [consider-using-with](https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/consider-using-with.html). To disable, use ` # pylint: disable=consider-using-with`
RUFF-FORMAT format: lintrunner_adapters/adapters/editorconfig_checker_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/clangtidy_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/black_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/clangformat_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/flake8_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/refurb_linter.py#L1
Run `lintrunner -a` to apply this patch.
PYLINT R1732: lintrunner_adapters/adapters/black_isort_linter.py#L35
Consider using 'with' for resource-allocating operations (consider-using-with) See [consider-using-with](https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/consider-using-with.html). To disable, use ` # pylint: disable=consider-using-with`
PYLINT R1732: lintrunner_adapters/adapters/black_isort_linter.py#L42
Consider using 'with' for resource-allocating operations (consider-using-with) See [consider-using-with](https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/consider-using-with.html). To disable, use ` # pylint: disable=consider-using-with`
RUFF-FORMAT format: examples/pytorch/clangformat_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/requirements_txt_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/isort_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/newlines_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/ufmt_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/exec_linter.py#L1
Run `lintrunner -a` to apply this patch.
PYLINT R1732: lintrunner_adapters/adapters/black_isort_linter.py#L35
Consider using 'with' for resource-allocating operations (consider-using-with) See [consider-using-with](https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/consider-using-with.html). To disable, use ` # pylint: disable=consider-using-with`
PYLINT R1732: lintrunner_adapters/adapters/black_isort_linter.py#L42
Consider using 'with' for resource-allocating operations (consider-using-with) See [consider-using-with](https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/consider-using-with.html). To disable, use ` # pylint: disable=consider-using-with`
RUFF-FORMAT format: lintrunner_adapters/adapters/black_isort_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/newlines_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: lintrunner_adapters/adapters/rustfmt_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/clangformat_linter.py#L1
Run `lintrunner -a` to apply this patch.
RUFF-FORMAT format: examples/pytorch/isort_linter.py#L1
Run `lintrunner -a` to apply this patch.