14
0
forked from pool/python-ruff
Commit Graph

2 Commits

Author SHA256 Message Date
3cb75413e0 - update to 0.9.10
* Preview features
   * [ruff] Add new rule RUF059: Unused unpacked assignment 
   * [syntax-errors] Detect assignment expressions before Python 3.8 
   * [syntax-errors] Named expressions in decorators before Python 3.9 
   * [syntax-errors] Parenthesized keyword argument names after Python 3.8 
   * [syntax-errors] Positional-only parameters before Python 3.8 
   * [syntax-errors] Tuple unpacking in return and yield before Python 3.8 
   * [syntax-errors] Type parameter defaults before Python 3.13 
   * [syntax-errors] Type parameter lists before Python 3.12 
   * [syntax-errors] except* before Python 3.11 
   * [syntax-errors] type statements before Python 3.12 
 * Bug fixes
   * Escape template filenames in glob patterns in configuration 
   * [flake8-simplify] Exempt unittest context methods for SIM115 rule 
   * Formatter: Fix syntax error location in notebooks 
   * [pyupgrade] Do not offer fix when at least one target is global/nonlocal (UP028) 
   * [flake8-builtins] Ignore variables matching module attribute names (A001) 
   * [pylint] Convert code keyword argument to a positional argument in fix for (PLR1722) 
 * CLI
   * Move rule code from description to check_name in GitLab output serializer 
 * Documentation
   * [pydocstyle] Clarify that D417 only checks docstrings with an arguments section

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=129
2025-03-10 10:21:38 +00:00
3cba15ea19 - update to 0.9.7
* Preview features
   * Consider __new__ methods as special function type for enforcing class method or static method rules 
   * [airflow] Improve the internal logic to differentiate deprecated symbols (AIR303) 
   * [refurb] Manual timezone monkeypatching (FURB162) 
   * [ruff] Implicit class variable in dataclass (RUF045) 
   * [ruff] Skip singleton starred expressions for incorrectly-parenthesized-tuple-in-subscript (RUF031) 
   * [refurb] Check for subclasses includes subscript expressions (FURB189) 
 * Rule changes
   * [flake8-debugger] Also flag sys.breakpointhook and sys.__breakpointhook__ (T100) 
   * [pycodestyle] Exempt site.addsitedir(...) calls (E402) 
 * Formatter
   * Fix unstable formatting of trailing end-of-line comments of parenthesized attribute values 
 * Server
   * Fix handling of requests received after shutdown message 
   * Ignore source.organizeImports.ruff and source.fixAll.ruff code actions for a notebook cell 
   * Include document specific debug info for ruff.printDebugInformation 
   * Update server to return the debug info as string with ruff.printDebugInformation 
 * CLI
   * Warn on invalid noqa even when there are no diagnostics 
   * Better error messages while loading configuration extends 
 * Bug fixes
   * [flake8-comprehensions] Handle trailing comma in C403 fix 
   * [flake8-pyi] Avoid flagging custom-typevar-for-self on metaclass methods (PYI019) 
   * [pydocstyle] Handle arguments with the same names as sections (D417) 
   * [pylint] Correct ordering of arguments in fix for if-stmt-min-max (PLR1730) 
   * [pylint] Do not offer fix for raw strings (PLE251) 
   * [pyupgrade] Do not upgrade functional TypedDicts with private field names to the class-based syntax (UP013) 
   * [pyupgrade] Handle micro version numbers correctly (UP036) 
   * [pyupgrade] Unwrap unary expressions correctly (UP018)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=128
2025-03-04 13:47:29 +00:00