ruff/crates/ruff/tests
Brent Westbrook a9efdea113
Use ast::PythonVersion internally in the formatter and linter (#16170)
## Summary

This PR updates the formatter and linter to use the `PythonVersion`
struct from the `ruff_python_ast` crate internally. While this doesn't
remove the need for the `linter::PythonVersion` enum, it does remove the
`formatter::PythonVersion` enum and limits the use in the linter to
deserializing from CLI arguments and config files and moves most of the
remaining methods to the `ast::PythonVersion` struct.

## Test Plan

Existing tests, with some inputs and outputs updated to reflect the new
(de)serialization format. I think these are test-specific and shouldn't
affect any external (de)serialization.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-02-18 12:03:13 -05:00
..
snapshots Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
analyze_graph.rs Don't skip over imports and other nodes containing nested statements in import collector (#13521) 2024-09-26 11:57:05 +00:00
config.rs nit: docs for ignore & select (#15883) 2025-02-04 10:05:41 +01:00
format.rs better error messages while loading configuration extends (#15658) 2025-02-17 10:35:30 +01:00
integration_test.rs test: update snapshots with just whitespace changes 2025-01-15 13:37:52 -05:00
lint.rs better error messages while loading configuration extends (#15658) 2025-02-17 10:35:30 +01:00
resolve_files.rs Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
show_settings.rs show-settings: Properly filter out backslashes on windows (#15612) 2025-01-20 10:57:21 +01:00
version.rs Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00