• Aarni Koskela's avatar
    Ruff fixes (#984) · 706ec24d
    Aarni Koskela authored
    
    
    * Adjust Ruff configuration
    
    * do not autofix always
    * be less strict around tests and benchmarks
    * adjust ignores for now
    
    * Ruff: autofix I and F401
    
    * Apply ruff autofixes
    
    * Fix RUF013 complaint
    
    * Fix mutable default in replace_linear
    
    * Don't use bare except
    
    * Wrap bitsandbytes.__main__ entrypoint in function; fix "sensible" typo
    
    * Fix ruff B008 (function call in arguments)
    
    * Add ruff noqas as suitable
    
    * Fix RUF005 (splat instead of concatenating)
    
    * Fix B018 (useless expression)
    
    * Add pre-commit configuration + GitHub Actions lint workflow
    
    * Fix unused `e` in bitsandbytes/__main__.py
    
    * fix merge conflict resolution error
    
    * run pre-commit hook
    
    ---------
    Co-authored-by: default avatarTitus <9048635+Titus-von-Koeller@users.noreply.github.com>
    706ec24d
test_functional.py 85.8 KB