mirror of
https://github.com/astral-sh/ruff.git
synced 2026-10-28 10:45:37 +08:00
Summary -- This PR updates our default Python version to 3.11, in line with 3.10 reaching [EOL] next month, and updates our latest Python version to 3.15. I followed last year's PR (#20725) to find everywhere that needed to change. Fortunately there were not as many test changes needed as last year's deferred annotation issues. I also updated the language classifier in our pyproject.toml. [EOL]: https://devguide.python.org/versions/#supported-versions Test Plan -- Existing tests with updated snapshots. Most of the updates were to snapshots for TC001, TC002, and TC003, which now default to the lazy-import fix. After updating the snapshots, I tried to make sure we still had coverage for whatever changed. That meant adding a few more mdtests for the TC rules, and one small mdtest for RUF017 to restore coverage for the `functools.reduce` fix.
Markdown files within the mdtest/ subdirectory are tests of type inference and type checking;
executed by the tests/mdtest.rs integration test.
See crates/ty_test/README.md for documentation of this test format.