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
I would expect ruff format to break overlong comment lines, but it does not seem to do this.
The example is from a devcontainer terminal within VSCode, but I do not think that is significant, given that I pass the --isolated flag to ruff.
Note that ruff format does fix the repeated whitespace (so format does some work) but it does nothing with the long comment line.
$ poetry run ruff --version
ruff 0.5.0
$ poetry run ruff format --verbose --isolated --line-length=88 --diff tests/conftest.py
[2024-07-04][12:47:40][ruff::resolve][DEBUG] Isolated mode, not reading any pyproject.toml
[2024-07-04][12:47:40][ruff::commands::format][DEBUG] format_path; path=/home/user/..redacted../tests/conftest.py
[2024-07-04][12:47:40][tracing::span][DEBUG] Printer::print;
[2024-07-04][12:47:40][ruff::commands::format][DEBUG] Formatted 1 files in 20.02ms
--- tests/conftest.py
+++ tests/conftest.py
@@ -20,7 +20,7 @@
# Test whether CI detect this overlong line: long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long
@pytest.fixture(scope="session")
def s3(request: pytest.FixtureRequest) -> S3Client:
- url = request.config.option.storage_url
+ url = request.config.option.storage_url
if url is None:
pytest.fail("No --storage-url parameter passed to pytest", False)
user = request.config.option.storage_user
1 file would be reformatted
$
The text was updated successfully, but these errors were encountered:
I would expect
ruff format
to break overlong comment lines, but it does not seem to do this.The example is from a devcontainer terminal within VSCode, but I do not think that is significant, given that I pass the
--isolated
flag toruff
.Note that
ruff format
does fix the repeated whitespace (soformat
does some work) but it does nothing with the long comment line.The text was updated successfully, but these errors were encountered: