ruff/crates
Alex Waygood bc0bf6f41c
[flake8-pyi] Expand PYI018 to cover ParamSpecs and TypeVarTuples (#9198)
## Summary

Part of #8771. flake8-pyi will emit a Y018 error for unused TypeVars,
ParamSpecs or TypeVarTuples; Ruff currently only emits PYI018 for unused
TypeVars.

This is my first "proper" Ruff PR -- let me know if there's a better way
of doing this! Not sure if the repeated calls to `match_typing_expr()`
are ideal.

## Test Plan

I manually updated the fixtures to add some unused ParamSpecs and
TypeVarTuples, and then updated the snapshots using `cargo insta
review`. All tests then passed when run using `cargo test`.
2023-12-20 03:10:07 +00:00
..
flake8_to_ruff Bump version to v0.1.8 (#9116) 2023-12-13 13:19:51 -05:00
ruff_benchmark Bump ureq from 2.8.0 to 2.9.1 (#8993) 2023-12-04 09:53:25 -06: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 Update format.rs to display correct message for already formatted files (#9153) 2023-12-18 00:07:21 -05:00
ruff_dev Update ruff-dev to use SourceKind (#8878) 2023-11-28 14:27:35 -06: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] Expand PYI018 to cover ParamSpecs and TypeVarTuples (#9198) 2023-12-20 03:10:07 +00: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 Add as_slice method for all string nodes (#9111) 2023-12-13 06:31:20 +00:00
ruff_python_codegen Add as_slice method for all string nodes (#9111) 2023-12-13 06:31:20 +00:00
ruff_python_formatter Implement no_blank_line_before_class_docstring preview style (#9154) 2023-12-19 00:43:20 -06:00
ruff_python_index Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
ruff_python_literal remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
ruff_python_parser release: switch to Cargo's default (#9031) 2023-12-15 08:19:35 -05:00
ruff_python_resolver Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
ruff_python_semantic Fix typo in SemanticModel.parent_expression docstring (#9167) 2023-12-16 21:12:50 -05:00
ruff_python_stdlib Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
ruff_python_trivia Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
ruff_shrinking Bump version to v0.1.8 (#9116) 2023-12-13 13:19:51 -05:00
ruff_source_file remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -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 Bump wasm-bindgen-test from 0.3.38 to 0.3.39 (#9181) 2023-12-18 09:04:31 +00:00
ruff_workspace [pylint] Implement too-many-locals (PLR0914) (#9163) 2023-12-18 20:00:04 +00:00