ruff/crates/ruff_python_ast/src
Charlie Marsh 5a4516b812
Misc. stylistic changes from flipping through rules late at night (#5757)
## Summary

This is really bad PR hygiene, but a mix of: using `Locator`-based fixes
in a few places (in lieu of `Generator`-based fixes), using match syntax
to avoid `.len() == 1` checks, using common helpers in more places, etc.

## Test Plan

`cargo test`
2023-07-14 05:23:47 +00:00
..
source_code Run nightly Clippy over the Ruff repo (#5670) 2023-07-10 23:44:38 -04:00
visitor Format ExprIfExp (ternary operator) (#5597) 2023-07-07 19:11:52 +00:00
all.rs Allow re-assignments to __all__ (#4967) 2023-06-08 17:19:56 +00:00
call_path.rs Refactor range from Attributed to Nodes (#4422) 2023-05-16 06:36:32 +00:00
cast.rs Upgrade RustPython (#4900) 2023-06-08 05:53:14 +00:00
comparable.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
docstrings.rs Move Python whitespace utilities into new ruff_python_whitespace crate (#4993) 2023-06-10 00:59:57 +00:00
function.rs Format Function definitions (#4951) 2023-06-08 16:07:33 +00:00
hashable.rs Create a rust_python_ast crate (#3370) 2023-03-07 15:18:40 +00:00
helpers.rs Misc. stylistic changes from flipping through rules late at night (#5757) 2023-07-14 05:23:47 +00:00
identifier.rs Use shared Cursor across crates (#5715) 2023-07-12 21:09:27 +00:00
imports.rs Run rustfmt on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
lib.rs Remove prelude from ruff_python_ast (#5369) 2023-06-26 11:43:49 -04:00
node.rs Try statements have a body: Fix formatter instability (#5558) 2023-07-06 16:07:47 +02:00
relocate.rs Refactor range from Attributed to Nodes (#4422) 2023-05-16 06:36:32 +00:00
statement_visitor.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
str.rs Basic string formatting 2023-06-23 09:46:05 +02:00
token_kind.rs Bring pycodestyle rules into full compatibility (on SciPy) (#4472) 2023-05-17 16:51:55 +00:00
types.rs Run nightly Clippy over the Ruff repo (#5670) 2023-07-10 23:44:38 -04:00
typing.rs Upgrade RustPython (#4747) 2023-05-31 08:26:35 +00:00
visitor.rs Remove prelude from ruff_python_ast (#5369) 2023-06-26 11:43:49 -04:00
whitespace.rs Move Python whitespace utilities into new ruff_python_whitespace crate (#4993) 2023-06-10 00:59:57 +00:00