- 
                Notifications
    You must be signed in to change notification settings 
- Fork 22
chore(deps): update dependency ruff to v0.14.3 #1294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Open
      
      
            renovate
  wants to merge
  1
  commit into
  main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
renovate/ruff-0.x-lockfile
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
      
        
          +20
        
        
          −19
        
        
          
        
      
    
  
Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    510fc51    to
    a95ef63      
    Compare
  
    a95ef63    to
    5fbe1ab      
    Compare
  
    13b22e8    to
    419d581      
    Compare
  
    419d581    to
    f7ef386      
    Compare
  
    f7ef386    to
    19e384c      
    Compare
  
    19e384c    to
    136e8ba      
    Compare
  
    136e8ba    to
    deb6b47      
    Compare
  
    deb6b47    to
    20d6b11      
    Compare
  
    20d6b11    to
    3227fe0      
    Compare
  
    3227fe0    to
    a2ab031      
    Compare
  
    a2ab031    to
    8472900      
    Compare
  
    8472900    to
    2200f40      
    Compare
  
    2200f40    to
    dc4d774      
    Compare
  
    dc4d774    to
    2bfd921      
    Compare
  
    2bfd921    to
    b6f60a1      
    Compare
  
    b6f60a1    to
    ca4fe2c      
    Compare
  
    ca4fe2c    to
    03ef811      
    Compare
  
    03ef811    to
    a0cde5d      
    Compare
  
    a0cde5d    to
    048fa8c      
    Compare
  
    048fa8c    to
    1bea9af      
    Compare
  
    1bea9af    to
    e01cb69      
    Compare
  
    e01cb69    to
    862a8b9      
    Compare
  
    862a8b9    to
    ec7e37b      
    Compare
  
    ec7e37b    to
    9a685ff      
    Compare
  
    9a685ff    to
    eea7998      
    Compare
  
    eea7998    to
    24a4274      
    Compare
  
    24a4274    to
    3f8a0d5      
    Compare
  
    
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR contains the following updates:
0.11.4->0.14.3Release Notes
astral-sh/ruff (ruff)
v0.14.3Compare Source
Released on 2025-10-30.
Preview features
--output-formatwith--watch(#21097)pydoclint] Fix false positive on explicit exception re-raising (DOC501,DOC502) (#21011)pyflakes] Revert to stable behavior if imports for module lie in alternate branches forF401(#20878)pylint] Implementstop-iteration-return(PLR1708) (#20733)ruff] Add support for additional eager conversion patterns (RUF065) (#20657)Bug fixes
ISC001] Fix panic when string literals are unclosed (#21034)flake8-django] ApplyDJ001to annotated fields (#20907)flake8-pyi] FixPYI034to not trigger on metaclasses (PYI034) (#20881)flake8-type-checking] FixTC003false positive withfuture-annotations(#21125)pyflakes] Fix false positive for__class__in lambda expressions within class definitions (F821) (#20564)pyupgrade] Fix false positive forTypeVarwith default on Python <3.13 (UP046,UP047) (#21045)Rule changes
airflow] Extendairflow.models..Paramcheck (AIR311) (#21043)airflow] Warn thatairflow....DAG.create_dagrunhas been removed (AIR301) (#21093)refurb] Preserve digit separators inDecimalconstructor (FURB157) (#20588)Server
Documentation
flake8-bandit] Fix correct example forS308(#21128)Other changes
line-lengthgoes beyond threshold (#21072)Contributors
v0.14.2Compare Source
Released on 2025-10-23.
Preview features
flake8-gettext] Resolve qualified names and built-in bindings (INT001,INT002,INT003) (#19045)Bug fixes
fastapi] Handle ellipsis defaults inFAST002autofix (#20810)flake8-simplify] SkipSIM911when unknown arguments are present (#20697)pyupgrade] Always parenthesize assignment expressions in fix forf-string(UP032) (#21003)pyupgrade] FixUP032conversion for decimal ints with underscores (#21022)fastapi] Skip autofix for keyword and__debug__path params (FAST003) (#20960)Rule changes
flake8-bugbear] SkipB905andB912for fewer than two iterables and no starred arguments (#20998)ruff] UseDiagnosticTagfor morepyflakesandpandasrules (#20801)CLI
ruff rule(#20168)Documentation
Other changes
matchpatterns bind different names (#20682)Contributors
v0.14.1Compare Source
Released on 2025-10-16.
Preview features
flake8-bugbear] Omit annotation in preview fix forB006(#20877)flake8-logging-format] Avoid dropping implicitly concatenated pieces in theG004fix (#20793)pydoclint] Implementdocstring-extraneous-parameter(DOC102) (#20376)pyupgrade] ExtendUP019to detecttyping_extensions.Text(UP019) (#20825)pyupgrade] Fix false negative forTypeVarwith default argument innon-pep695-generic-class(UP046) (#20660)Bug fixes
Truthiness::from_exprfor lambdas, generators, and f-strings (#20704)fastapi] Fix false positives for path parameters that FastAPI doesn't recognize (FAST003) (#20687)flake8-pyi] Fix operator precedence by adding parentheses when needed (PYI061) (#20508)ruff] Suppress diagnostic for f-string interpolations with debug text (RUF010) (#20525)Rule changes
airflow] Add warning toairflow.datasets.DatasetEventusage (AIR301) (#20551)flake8-bugbear] MarkB905andB912fixes as unsafe (#20695)DiagnosticTagfor more rules - changes display in editors (#20758,#20734)Documentation
lint.flake8-type-checking.quoted-annotationsdocs (#20765)flake8-datetimez] Clarify docs for several rules (#20778)RUF015description (#20873)Other changes
Contributors
v0.14.0Compare Source
Released on 2025-10-07.
Breaking changes
Preview features
flake8-bugbear] Include certain guaranteed-mutable expressions: tuples, generators, and assignment expressions (B006) (#20024)refurb] Add fixes forFURB101andFURB103(#20520)ruff] ExtendFA102with listed PEP 585-compatible APIs (#20659)Bug fixes
flake8-annotations] Fix return type annotations to handle shadowed builtin symbols (ANN201,ANN202,ANN204,ANN205,ANN206) (#20612)flynt] Fix f-string quoting for mixed quote joiners (FLY002) (#20662)isort] Fix inserting required imports before future imports (I002) (#20676)ruff] Handle argfile expansion errors gracefully (#20691)ruff] SkipRUF051ifelse/elifblock is present (#20705)ruff] Improve handling of intermixed comments inside from-imports (#20561)Documentation
flake8-comprehensions] Clarify fix safety documentation (C413) (#20640)Contributors
v0.13.3Compare Source
Release Notes
Released on 2025-10-02.
Preview features
ruff format --checkand add support for different output formats (#20443)pyflakes] Handle some common submodule import situations forunused-import(F401) (#20200)ruff] Do not flag%r+repr()combinations (RUF065) (#20600)Bug fixes
cli] Add conflict between--add-noqaand--diffoptions (#20642)pylint] Exempt required imports fromPLR0402(#20381)pylint] Fix missingmax-nested-blocksin settings display (#20574)pyupgrade] Prevent infinite loop withI002andUP026(#20634)Rule changes
flake8-simplify] Improve help message clarity (SIM105) (#20548)Documentation
isort] Clarify dependency betweenorder-by-typeandcase-sensitivesettings (#20559)pylint] Clarify fix safety to include left-hand hashability (PLR6201) (#20518)Other changes
playground] Fix quick fixes for empty ranges in playground (#20599)Contributors
Install ruff 0.13.3
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-installer.ps1 | iex"Download ruff 0.13.3
v0.13.2Compare Source
Release Notes
Released on 2025-09-25.
Preview features
flake8-async] Implementblocking-path-method(ASYNC240) (#20264)flake8-bugbear] Implementmap-without-explicit-strict(B912) (#20429)flake8-bultins] Detect class-scope builtin shadowing in decorators, default args, and attribute initializers (A003) (#20178)ruff] Implementlogging-eager-conversion(RUF065) (#19942).pywfiles by default when linting and formatting (#20458)Bug fixes
flake8-comprehensions] Preserve trailing commas for single-element lists (C409) (#19571)flake8-pyi] Avoid syntax error from conflict withPIE790(PYI021) (#20010)flake8-simplify] Correct fix for positivemaxsplitwithout separator (SIM905) (#20056)pyupgrade] FixUP008not to apply when__class__is a local variable (#20497)ruff] FixB004to skip invalidhasattr/getattrcalls (#20486)ruff] Replace-nanwithnanwhen using the value to construct aDecimal(FURB164) (#20391)Documentation
ruff-wasm-web(#20539)flake8-bandit] Clarify the supported hashing functions (S324) (#20534)Other changes
playground] Allow hover quick fixes to appear for overlapping diagnostics (#20527)playground] Fix non‑BMP code point handling in quick fixes and markers (#20526)Contributors
Install ruff 0.13.2
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-installer.ps1 | iex"Download ruff 0.13.2
v0.13.1Compare Source
Release Notes
Released on 2025-09-18.
Preview features
flake8-simplify] Detect unnecessaryNonedefault for additional key expression types (SIM910) (#20343)flake8-use-pathlib] Add fix forPTH123(#20169)flake8-use-pathlib] FixPTH101,PTH104,PTH105,PTH121fixes (#20143)flake8-use-pathlib] MakePTH111fix unsafe because it can change behavior (#20215)pycodestyle] FixE301to only trigger for functions immediately within a class (#19768)refurb] Marksingle-item-membership-testfix as always unsafe (FURB171) (#20279)Bug fixes
flake8-bandit] Fix truthiness: dict-only**displays not truthy forshell(S602,S604,S609) (#20177)flake8-simplify] Fix diagnostic to show correct method name forstr.rsplitcalls (SIM905) (#20459)flynt] Use triple quotes for joined raw strings with newlines (FLY002) (#20197)pyupgrade] Fix false positive when class name is shadowed by local variable (UP008) (#20427)pyupgrade] Prevent infinite loop withI002andUP026(#20327)ruff] Recognize t-strings, generators, and lambdas ininvalid-index-type(RUF016) (#20213)Rule changes
RUF102] Respect rule redirects in invalid rule code detection (#20245)flake8-bugbear] Mark the fix forunreliable-callable-checkas always unsafe (B004) (#20318)ruff] Allow dataclass attribute value instantiation from nested frozen dataclass (RUF009) (#20352)CLI
output-format=sarif(#20300)Documentation
ruff] Addanalyze.string-imports-min-dotsto settings (#20375)Other changes
Contributors
Install ruff 0.13.1
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-installer.ps1 | iex"Download ruff 0.13.1
v0.13.0Compare Source
Release Notes
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
Several rules can now add
from __future__ import annotationsautomaticallyTC001,TC002,TC003,RUF013, andUP037now addfrom __future__ import annotationsas part of their fixes when thelint.future-annotationssetting is enabled. This allows the rules to move more imports intoTYPE_CHECKINGblocks (TC001,TC002, andTC003), use PEP 604 union syntax on Python versions before 3.10 (RUF013), and unquote more annotations (UP037).Full module paths are now used to verify first-party modules
Ruff now checks that the full path to a module exists on disk before categorizing it as a first-party import. This change makes first-party import detection more accurate, helping to avoid false positives on local directories with the same name as a third-party dependency, for example. See the FAQ section on import categorization for more details.
Deprecated rules must now be selected by exact rule code
Ruff will no longer activate deprecated rules selected by their group name or prefix. As noted below, the two remaining deprecated rules were also removed in this release, so this won't affect any current rules, but it will still affect any deprecations in the future.
The deprecated macOS configuration directory fallback has been removed
Ruff will no longer look for a user-level configuration file at
~/Library/Application Support/ruff/ruff.tomlon macOS. This feature was deprecated in v0.5 in favor of using the XDG specification (usually resolving to~/.config/ruff/ruff.toml), like on Linux. The fallback and accompanying deprecation warning have now been removed.Removed Rules
The following rules have been removed:
pandas-df-variable-name(PD901)non-pep604-isinstance(UP038)Stabilization
The following rules have been stabilized and are no longer in preview:
airflow-dag-no-schedule-argument(AIR002)airflow3-removal(AIR301)airflow3-moved-to-provider(AIR302)airflow3-suggested-update(AIR311)airflow3-suggested-to-move-to-provider(AIR312)long-sleep-not-forever(ASYNC116)f-string-number-format(FURB116)os-symlink(PTH211)generic-not-last-base-class(PYI059)redundant-none-literal(PYI061)pytest-raises-ambiguous-pattern(RUF043)unused-unpacked-variable(RUF059)useless-class-metaclass-type(UP050)The following behaviors have been stabilized:
assert-raises-exception(B017) now checks for direct calls tounittest.TestCase.assert_raisesandpytest.raisesinstead of only the context manager forms.missing-trailing-comma(COM812) andprohibited-trailing-comma(COM819) now check for trailing commas in PEP 695 type parameter lists.raw-string-in-exception(EM101) now also checks for byte strings in exception messages.invalid-mock-access(PGH005) now checks forAsyncMockmethods likenot_awaitedin addition to the synchronous variants.useless-import-alias(PLC0414) no longer applies to__init__.pyfiles, where it conflicted with one of the suggested fixes forunused-import(F401).bidirectional-unicode(PLE2502) now also checks for U+061C (Arabic Letter Mark).multiple-with-statements(SIM117) is now marked as always safe.Preview features
pyupgrade] EnableUP043in stub files (#20027)Bug fixes
pyupgrade] ApplyUP008only when the__class__cell exists (#19424)ruff] Fix empty f-string detection inin-empty-collection(RUF060) (#20249)Server
Documentation
pep8-naming] Fix formatting of__all__(N816) (#20301)Contributors
Install ruff 0.13.0
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-installer.ps1 | iex"Download ruff 0.13.0