Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a4827e7
Vendor latest annotate-snippets
epage Jun 26, 2026
8705d4b
Add API stubs for ruff divergences
epage Jun 26, 2026
45f8145
Re-add ruff-specific tests
epage Jul 6, 2026
c295d3f
Update import references
epage Jun 26, 2026
32e5d7f
Update workspace to latest API
epage Jun 26, 2026
0225971
Test hide_snippet
epage Jul 8, 2026
b3cace3
Re-implement hidden snippets
epage Jun 26, 2026
4c95047
Fix hidden snippets in unicode
epage Jul 8, 2026
b0c1f41
Re-implement renderer-level disabling of hyperlinks
epage Jul 8, 2026
c616fe5
Re-implement Jupyter cell index
epage Jul 8, 2026
7f2ba63
Re-implement fixable mark
epage Jul 8, 2026
a2db3f2
Test lineno_offset
epage Jul 10, 2026
d3ff519
Re-implement lineno_offset
epage Jul 10, 2026
a630681
Re-implement anonymized lines in origins
epage Jul 15, 2026
2a69d2e
Re-implement custom cut indicator
epage Jul 15, 2026
37234dc
Test no_name/id combos
epage Jul 8, 2026
b3dc852
Match ruff's existing hidden severity behavior
epage Jul 8, 2026
61a519a
Test newline issue
epage Jul 9, 2026
516aac5
Force old newline behavior
epage Jul 9, 2026
a1ebaad
Force old indentation behavior
epage Jul 10, 2026
9301e1d
Force old fold(false) default
epage Jul 15, 2026
29446fa
Force old multi-line header behavior
epage Jul 17, 2026
b78869d
Force simd feature on by default
epage Jul 20, 2026
32c46f1
Bless more characters being substituted
epage Jul 13, 2026
4b62395
Bless removed pipes
epage Jul 10, 2026
dc06cb1
Bless origin location changes
epage Jul 15, 2026
602a877
Bless underlining change
epage Jul 17, 2026
4672619
Bless trailing whitespace
epage Jul 17, 2026
84a1b5e
Bless snippets always being rendered, even when empty
epage Jul 17, 2026
af581ae
Bless fixes for respecting term width
epage Jul 17, 2026
b53c27a
Bless annotation location between newline and first character
epage Jul 17, 2026
3f239d6
Bless new multi-line annotation markers
epage Jul 20, 2026
ece9c31
Bless slight newline behavior change
epage Jul 20, 2026
5eec5d3
Bless blobs
epage Jul 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 1 addition & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ tracing-subscriber = { version = "0.3.18", default-features = false, features =
"ansi",
"smallvec",
] }
tryfn = { version = "1.0.0" }
typed-arena = { version = "2.0.2" }
unicode-ident = { version = "1.0.12" }
unicode-normalization = { version = "0.1.23" }
Expand Down
1 change: 0 additions & 1 deletion crates/ruff/src/commands/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,6 @@ mod tests {
|
1 | 1
| ^
|

panic: Panicked at <location> when checking `test.py`: `Test panic for FormatCommandError`
--> test.py:1:1
Expand Down
20 changes: 9 additions & 11 deletions crates/ruff/tests/cli/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ fn default_files() -> Result<()> {
exit_code: 1
----- stdout -----
unformatted: File would be reformatted
--> bar.py:1:1
--> bar.py:1:7
|
- bar = "needs formatting"
1 + bar = "needs formatting"
|

unformatted: File would be reformatted
--> foo.py:1:1
--> foo.py:1:7
|
- foo = "needs formatting"
1 + foo = "needs formatting"
Expand Down Expand Up @@ -520,7 +520,7 @@ exclude = ["format_excluded.py"]
exit_code: 1
----- stdout -----
unformatted: File would be reformatted
--> main.py:1:1
--> main.py:1:3
|
- x = 1
1 + x = 1
Expand Down Expand Up @@ -548,7 +548,7 @@ fn deduplicate_directory_and_explicit_file() -> Result<()> {
exit_code: 1
----- stdout -----
unformatted: File would be reformatted
--> main.py:1:1
--> main.py:1:3
|
- x = 1
1 + x = 1
Expand Down Expand Up @@ -584,7 +584,6 @@ from module import =
|
2 | from module import =
| ^
|


----- stderr -----
Expand Down Expand Up @@ -700,7 +699,7 @@ fn output_format_notebook() -> Result<()> {
exit_code: 1
----- stdout -----
unformatted: File would be reformatted
--> CRATE_ROOT/resources/test/fixtures/unformatted.ipynb:cell 1:1:1
--> CRATE_ROOT/resources/test/fixtures/unformatted.ipynb:cell 1:2:1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ntBre is this the format check bugfix that you wanted to look into?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. The root cause of #24528 is failing to attach spans to syntax error diagnostics, not a rendering issue.

::: cell 1
|
1 | import numpy
Expand Down Expand Up @@ -835,7 +834,7 @@ fn check_quiet_mode_shows_diagnostics_only() -> Result<()> {
exit_code: 1
----- stdout -----
unformatted: File would be reformatted
--> main.py:1:1
--> main.py:1:5
|
- def foo():
- pass
Expand All @@ -859,7 +858,7 @@ fn check_default_mode_shows_diagnostics_and_summary() -> Result<()> {
exit_code: 1
----- stdout -----
unformatted: File would be reformatted
--> main.py:1:1
--> main.py:1:5
|
- def foo():
- pass
Expand Down Expand Up @@ -2052,7 +2051,6 @@ fn syntax_error_in_notebooks_check() -> Result<()> {
2 | # выберите случайный индекс в диапазон от 0 до len(X)-1 включительно при помощи функции random.randint
3 | j = # ваш код здесь
| ^
|


----- stderr -----
Expand Down Expand Up @@ -2557,7 +2555,7 @@ fn markdown_formatting() -> Result<()> {
exit_code: 1
----- stdout -----
unformatted: File would be reformatted
--> CRATE_ROOT/resources/test/fixtures/unformatted.md:1:1
--> CRATE_ROOT/resources/test/fixtures/unformatted.md:4:7
|
3 | ```py
- print( "hello" )
Expand Down Expand Up @@ -2694,7 +2692,7 @@ print( 'hello' )
exit_code: 1
----- stdout -----
unformatted: File would be reformatted
--> test.bar:1:1
--> test.bar:5:7
|
4 | ```py
- print( 'hello' )
Expand Down
2 changes: 0 additions & 2 deletions crates/ruff/tests/cli/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4475,7 +4475,6 @@ fn show_fixes_in_full_output_with_preview_enabled() {
|
1 | import math
| ^^^^
|
help: Remove unused import: `math`
|
- import math
Expand Down Expand Up @@ -5195,7 +5194,6 @@ fn ruff_toml_is_linted() -> Result<()> {
|
1 | lint.select = ["F401"]
| ^^^^
|
help: Replace rule code with `unused-import`
|
- lint.select = ["F401"]
Expand Down
Loading
Loading