Skip to content

Commit

Permalink
Bump ruff from 0.0.291 to 0.0.292
Browse files Browse the repository at this point in the history
v0.0.292
What's Changed
Highlights
This release includes full support for Python 3.12 (out now!), including the new type parameter (PEP 695) and f-string syntaxes (PEP 701).

PEP 701 lifts many of the restrictions on f-strings that existed in the past, allowing for arbitrarily nested f-strings, consistent quote style within f-strings, and more, all of which are now supported by Ruff (thanks to @​dhruvmanila in astral-sh/ruff#7376).

Breaking Changes
In the formatter, format.quote-style no longer affects triple-quoted strings, to align with common conventions as well as the guidance from PEP 8 and PEP 257 (see: astral-sh/ruff#7680).
unnecessary-pass (PIE790) now flags all unnecessary pass statements; previously, the rule only flagged pass statements that followed a docstring in a two-statement body (see: astral-sh/ruff#7697).
Rules
[refurb] Implement print-empty-string (FURB105) by @​tjkuson in astral-sh/ruff#7617
[flake8-bandit] Implement weak-cryptographic-key (S505) by @​mkniewallner in astral-sh/ruff#7703
[refurb] Implement implicit-cwd (FURB177) by @​danparizher in astral-sh/ruff#7704
Settings
Add lint section to Ruff configuration by @​MichaReiser in astral-sh/ruff#7549
Add explicit-preview-rules to toggle explicit selection of preview rules by @​zanieb in astral-sh/ruff#7390
Decrease PEP 593 error to a debug warning by @​charliermarsh in astral-sh/ruff#7745
Write full Jupyter notebook to stdout by @​charliermarsh in astral-sh/ruff#7748
Extend unnecessary-pass (PIE790) to trigger on all unnecessary pass statements by @​tjkuson in astral-sh/ruff#7697
Bug Fixes
Ignore blank lines between comments when counting newlines-after-imports by @​charliermarsh in astral-sh/ruff#7607
Avoid reordering mixed-indent-level comments after branches by @​charliermarsh in astral-sh/ruff#7609
Avoid flagging B009 and B010 on starred expressions by @​charliermarsh in astral-sh/ruff#7621
Use deletion for D215 full-line removals by @​charliermarsh in astral-sh/ruff#7625
Avoid searching for bracketed comments in unparenthesized generators by @​charliermarsh in astral-sh/ruff#7627
Update return type for PT022 autofix by @​dhruvmanila in astral-sh/ruff#7613
Flag FURB105 with starred kwargs by @​charliermarsh in astral-sh/ruff#7630
Don't suggest replacing builtin.open() with Path.open() if the latter doesn't support all options by @​konstin in astral-sh/ruff#7637
Use 1-based cell indices consistently for Notebooks by @​dhruvmanila in astral-sh/ruff#7662
Add Expr::Name checks to rules which use is_logger_candidate by @​qdegraaf in astral-sh/ruff#7521
Ensure that B006 autofixes are inserted after imports by @​Hoxbro in astral-sh/ruff#7629
Allow named expressions in __all__ assignments by @​charliermarsh in astral-sh/ruff#7673
Include radix base prefix in large number representation by @​charliermarsh in astral-sh/ruff#7700
Parenthesize multi-line attributes in B009 by @​charliermarsh in astral-sh/ruff#7701
Insert necessary padding in B014 fixes by @​charliermarsh in astral-sh/ruff#7699
fix(rules): improve S507 detection by @​mkniewallner in astral-sh/ruff#7661
Ignore TODO tags in commented-out-code by @​tjkuson in astral-sh/ruff#7523
Track fix isolation in unnecessary-pass by @​charliermarsh in astral-sh/ruff#7715
Use fixed source code for parser context by @​charliermarsh in astral-sh/ruff#7717
Preserve parentheses in quadratic-list-summation by @​charliermarsh in astral-sh/ruff#7719
Compute NotebookIndex for Diagnostics on stdin by @​dhruvmanila in astral-sh/ruff#7663
Perform insertions before replacements by @​charliermarsh in astral-sh/ruff#7739
  • Loading branch information
tetele committed Oct 3, 2023
2 parents f129671 + f035d4a commit e948d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,4 +1,4 @@
colorlog==6.7.0
homeassistant==2023.9.2
pip>=21.0,<23.3
ruff==0.0.291
ruff==0.0.292

0 comments on commit e948d7d

Please sign in to comment.