ruff/crates
Alex Waygood 15f6213cb0
[flake8-pyi] Implement PYI058 (#9313)
## Summary

This PR implements Y058 from flake8-pyi -- this is a new flake8-pyi rule
that was released as part of `flake8-pyi 23.11.0`. I've followed the
Python implementation as closely as possible (see
858c0918a8),
except that for the Ruff version, the rule also applies to `.py` files
as well as for `.pyi` files. (For `.py` files, we only emit the
diagnostic in very specific situations, however, as there's a much
higher likelihood of emitting false positives when applying this rule to
a `.py` file.)

## Test Plan

`cargo test`/`cargo insta review`
2024-01-01 07:28:35 -04:00
..
ruff_benchmark Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
ruff_cache Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
ruff_cli Make DisplayParseError an error type (#9325) 2023-12-31 15:46:29 +00:00
ruff_dev Remove some unused dependencies (#9330) 2023-12-31 07:38:16 -05:00
ruff_diagnostics Enable annotation quoting for multi-line expressions (#9142) 2023-12-15 01:03:09 +00:00
ruff_formatter remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
ruff_index Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
ruff_linter [flake8-pyi] Implement PYI058 (#9313) 2024-01-01 07:28:35 -04:00
ruff_macros remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
ruff_notebook Prevent invalid utf8 indexing in cell magic detection (#9146) 2023-12-15 08:15:46 -06:00
ruff_python_ast Remove some unused dependencies (#9330) 2023-12-31 07:38:16 -05:00
ruff_python_codegen Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
ruff_python_formatter Add row and column numbers to formatted parse errors (#9321) 2023-12-31 07:10:45 -05:00
ruff_python_index Fix continuation detection following multi-line strings (#9332) 2023-12-31 10:43:35 -05:00
ruff_python_literal remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
ruff_python_parser Add row and column numbers to formatted parse errors (#9321) 2023-12-31 07:10:45 -05:00
ruff_python_resolver Bump env_logger from 0.10.0 to 0.10.1 (#9275) 2023-12-25 09:03:35 -05:00
ruff_python_semantic Respect __str__ definitions from super classes (#9338) 2023-12-31 22:25:08 +00:00
ruff_python_stdlib Treat all typing_extensions members as typing aliases (#9335) 2023-12-31 14:23:33 -04:00
ruff_python_trivia Use a sorted vector for block comments (#9337) 2023-12-31 19:52:40 +00:00
ruff_shrinking Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
ruff_source_file Use consistent re-export from ruff_source_file (#9320) 2023-12-30 14:48:45 -05:00
ruff_text_size Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
ruff_wasm Remove some unused dependencies (#9330) 2023-12-31 07:38:16 -05:00
ruff_workspace Respect runtime-required decorators on functions (#9317) 2023-12-29 22:14:53 -04:00