Bump ruff from 0.2.0 to 0.2.1
Bumps ruff from 0.2.0 to 0.2.1.
Release notes
Sourced from ruff's releases.
v0.2.1
Changes
This release includes support for range formatting (i.e., the ability to format specific lines within a source file).
Preview features
Formatter
Bug fixes
- Skip empty lines when determining base indentation (#9795)
- Drop
__get__
and__set__
fromunnecessary-dunder-call
(#9791)- Respect generic
Protocol
in ellipsis removal (#9841)- Revert "Use publicly available Apple Silicon runners (#9726)" (#9834)
Performance
- Skip LibCST parsing for standard dedent adjustments (#9769)
- Remove CST-based fixer for
C408
(#9822)- Add our own ignored-names abstractions (#9802)
- Remove CST-based fixers for
C400
,C401
,C410
, andC418
(#9819)- Use
AhoCorasick
to speed up quote match (#9773)- Remove CST-based fixers for
C405
andC409
(#9821)- Add fast-path for comment detection (#9808)
- Invert order of checks in
zero-sleep-call
(#9766)- Short-circuit typing matches based on imports (#9800)
- Run dunder method rule on methods directly (#9815)
- Track top-level module imports in the semantic model (#9775)
- Slight speed-up for lowercase and uppercase identifier checks (#9798)
- Remove LibCST-based fixer for
C403
(#9818)Documentation
- Update
max-pos-args
example tomax-positional-args
(#9797)- Fixed example code in
weak_cryptographic_key.rs
(#9774)- Fix references to deprecated
ANN
rules in changelog (#9771)- Fix default for
max-positional-args
(#9838)Contributors
... (truncated)
Changelog
Sourced from ruff's changelog.
0.2.1
This release includes support for range formatting (i.e., the ability to format specific lines within a source file).
Preview features
Formatter
Bug fixes
- Skip empty lines when determining base indentation (#9795)
- Drop
__get__
and__set__
fromunnecessary-dunder-call
(#9791)- Respect generic
Protocol
in ellipsis removal (#9841)- Revert "Use publicly available Apple Silicon runners (#9726)" (#9834)
Performance
- Skip LibCST parsing for standard dedent adjustments (#9769)
- Remove CST-based fixer for
C408
(#9822)- Add our own ignored-names abstractions (#9802)
- Remove CST-based fixers for
C400
,C401
,C410
, andC418
(#9819)- Use
AhoCorasick
to speed up quote match (#9773)- Remove CST-based fixers for
C405
andC409
(#9821)- Add fast-path for comment detection (#9808)
- Invert order of checks in
zero-sleep-call
(#9766)- Short-circuit typing matches based on imports (#9800)
- Run dunder method rule on methods directly (#9815)
- Track top-level module imports in the semantic model (#9775)
- Slight speed-up for lowercase and uppercase identifier checks (#9798)
- Remove LibCST-based fixer for
C403
(#9818)Documentation
Commits
-
0ccca40
Bump version to v0.2.1 (#9843) -
041ce1e
Respect genericProtocol
in ellipsis removal (#9841) -
36b7528
ImplementAnyNode
/AnyNodeRef
forFStringFormatSpec
(#9836) -
b3dc565
Add--range
option toruff format
(#9733) -
e708c08
Fix default formax-positional-args
(#9838) -
7390232
Revert "Use publicly available Apple Silicon runners (#9726)" (#9834) -
9781563
Add fast-path for comment detection (#9808) -
84aea7f
Drop__get__
and__set__
fromunnecessary-dunder-call
(#9791) -
b47f85e
Preview Style: Format module level docstring (#9725) -
80fc02e
Don't trim last empty line in docstrings (#9813) - Additional commits viewable in compare view