ruff/crates
Brent Westbrook 165091a31c
Add TextEmitter::with_color and disable colors in unreadable_files test (#19562)
Summary
--

I looked at other uses of `TextEmitter`, and I think this should be the
only one affected by this. The other integration tests must work
properly since they're run with `assert_cmd_snapshot!`, which I assume
triggers the `SHOULD_COLORIZE` case, and the `cfg!(test)` check will
work for uses in `ruff_linter`.


4a4dc38b5b/crates/ruff_linter/src/message/text.rs (L36-L44)

Alternatively, we could probably move this to a CLI test instead.

Test Plan
--

`cargo test -p ruff`, which was failing on `main` with color codes in
the output before this
2025-07-25 15:47:49 -04:00
..
ruff Add TextEmitter::with_color and disable colors in unreadable_files test (#19562) 2025-07-25 15:47:49 -04:00
ruff_annotate_snippets
ruff_benchmark
ruff_cache
ruff_db Move concise diagnostic rendering to ruff_db (#19398) 2025-07-23 11:43:32 -04:00
ruff_dev
ruff_diagnostics
ruff_formatter
ruff_graph Add support for specifying minimum dots in detected string imports (#19538) 2025-07-24 15:48:23 -04:00
ruff_index
ruff_linter Add TextEmitter::with_color and disable colors in unreadable_files test (#19562) 2025-07-25 15:47:49 -04:00
ruff_macros
ruff_notebook
ruff_options_metadata
ruff_python_ast [ty] Split ScopedPlaceId into ScopedSymbolId and ScopedMemberId (#19497) 2025-07-25 13:54:33 +02:00
ruff_python_ast_integration_tests
ruff_python_codegen
ruff_python_formatter
ruff_python_index
ruff_python_literal
ruff_python_parser Fix unreachable panic in parser (#19183) 2025-07-20 22:04:14 +00:00
ruff_python_semantic [ty] Make Module a Salsa ingredient 2025-07-23 09:46:40 -04:00
ruff_python_stdlib
ruff_python_trivia
ruff_python_trivia_integration_tests
ruff_server Move fix suggestion to subdiagnostic (#19464) 2025-07-22 10:03:58 -04:00
ruff_source_file
ruff_text_size
ruff_wasm Bump 0.12.5 (#19528) 2025-07-24 09:12:50 -04:00
ruff_workspace Add support for specifying minimum dots in detected string imports (#19538) 2025-07-24 15:48:23 -04:00
ty Move concise diagnostic rendering to ruff_db (#19398) 2025-07-23 11:43:32 -04:00
ty_ide [ty] Added support for document highlights in playground. (#19540) 2025-07-25 08:55:40 -07:00
ty_project [ty] Invert ty_ide and ty_project dependency (#19501) 2025-07-23 07:37:46 +00:00
ty_python_semantic [ty] Move zope.interface to good.txt for primer runs (#19208) 2025-07-25 14:12:17 +01:00
ty_server [ty] Derive Serialize unconditionally on client options (#19549) 2025-07-25 04:03:03 +00:00
ty_static
ty_test
ty_vendored [ty] Sync vendored typeshed stubs (#19461) 2025-07-21 14:01:42 +01:00
ty_wasm [ty] Added support for document highlights in playground. (#19540) 2025-07-25 08:55:40 -07:00