Revisions of python-ruff

buildservice-autocommit accepted request 1173634 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 61)
baserev update by copy to link target
Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) committed (revision 60)
- update to 0.4.4
 * Preview features
   * [pycodestyle] Ignore end-of-line comments when determining blank line rules 
   * [pylint] Detect pathlib.Path.open calls in unspecified-encoding (PLW1514) 
   * [flake8-pyi] Implement PYI059 (generic-not-last-base-class) 
   * [flake8-pyi] Implement PYI062 (duplicate-literal-member) 
 * Rule changes
   * [flake8-boolean-trap] Allow passing booleans as positional-only arguments in code such as set(True) 
   * [flake8-bugbear] Ignore enum classes in cached-instance-method (B019) 
 * Server
   * Expand tildes when resolving Ruff server configuration file 
   * Fix ruff server hanging after Neovim closes 
   * Editor settings are used by default if no file-based configuration exists 
 * Bug fixes
   * [pylint] Consider with statements for too-many-branches (PLR0912) 
   * [flake8-blind-except, tryceratops] Respect logged and re-raised expressions in nested statements (BLE001, TRY201) 
   * Recognise assignments such as __all__ = builtins.list(["foo", "bar"]) as valid __all__ definitions
buildservice-autocommit accepted request 1172165 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 59)
baserev update by copy to link target
Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) committed (revision 58)
- update to 0.4.3 
 * Enhancements
   * Add support for PEP 696 syntax 
 * Preview features
   * [refurb] Use function range for reimplemented-operator diagnostics 
   * [refurb] Ignore methods in reimplemented-operator (FURB118) 
   * [refurb] Implement fstring-number-format (FURB116) 
   * [ruff] Implement redirected-noqa (RUF101) 
   * [pyflakes] Distinguish between first-party and third-party imports for fix suggestions 
 * Rule changes
   * [flake8-bugbear] Ignore non-abstract class attributes when enforcing B024 
   * [flake8-logging] Include inline instantiations when detecting loggers 
   * [pylint] Also emit PLR0206 for properties with variadic parameters 
   * [ruff] Detect duplicate codes as part of unused-noqa (RUF100) 
   * [flake8-pyi] Allow for overloaded __exit__ and __aexit__ definitions (PYI036) 
   * [pyupgrade] Catch usages of "%s" % var and provide an unsafe fix (UP031) 
   * [refurb] Implement new rule that suggests min/max over sorted() (FURB192) 
 * Formatter
   * Avoid multiline expression if format specifier is present 
 * LSP
   * Write ruff server setup guide for Helix 
   * ruff server no longer hangs after shutdown 
   * ruff server reads from a configuration TOML file in the user configuration directory if no local configuration exists 
   * ruff server respects per-file-ignores configuration 
   * ruff server: Support a custom TOML configuration file 
   * ruff server: Support setting to prioritize project configuration over editor configuration 
   * Fix an issue with missing diagnostics for Neovim and Helix 
   * Implement hover documentation for noqa codes 
   * Introduce common Ruff configuration options with new server settings 
 * Bug fixes
buildservice-autocommit accepted request 1169832 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 57)
baserev update by copy to link target
Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) committed (revision 56)
- update to 0.4.1
 * A new, hand-written parser
 * A new language server in Rust
 * ruff server is only in alpha, but it has a lot of features that you can try out today:
   * Lints Python files automatically and shows quick-fixes when available
   * Formats Python files, with support for range formatting
   * Comes with commands for quickly performing actions: ruff.applyAutofix, ruff.applyFormat, and ruff.applyOrganizeImports
   * Supports source.fixAll and source.organizeImports source actions
   * Automatically reloads your project configuration when you change it
   * To setup ruff server with your editor, refer to the README.md.
 * Preview features
   * [pylint] Implement invalid-hash-returned (PLE0309) 
   * [pylint] Implement invalid-index-returned (PLE0305) 
   * [pycodestyle] Do not trigger E3 rules on defs following a function/method with a dummy body 
   * [pylint] Implement invalid-bytes-returned (E0308) 
   * [pylint] Implement invalid-length-returned (E0303) 
   * [pylint] Implement self-cls-assignment (W0642) 
   * [pylint] Omit stubs from invalid-bool and invalid-str-return-type 
   * [ruff] New rule unused-async (RUF029) to detect unneeded async keywords on functions 
 * Rule changes
   * [flake8-bandit] Allow urllib.request.urlopen calls with static Request argument (S310) 
   * [flake8-bugbear] Treat raise NotImplemented-only bodies as stub functions (B006) 
   * [flake8-slots] Respect same-file Enum subclasses (SLOT000) 
   * [pylint] Support inverted comparisons (PLR1730) 
 * Linter
   * Improve handling of builtin symbols in linter rules 
   * Improve display of rules in --show-settings 
   * Improve inference capabilities of the BuiltinTypeChecker 
   * Resolve classes and functions relative to script name 
   * Improve performance of RuleTable::any_enabled
buildservice-autocommit accepted request 1167007 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 55)
baserev update by copy to link target
Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) committed (revision 54)
- update to 0.3.7
 * Preview features
   * [flake8-bugbear] Implement loop-iterator-mutation (B909) 
   * [pylint] Implement rule to prefer augmented assignment (PLR6104) 
   * [pylint] Implement bad-staticmethod-argument (PLW0211) 
   * [pylint] Implement if-stmt-min-max (PLR1730, PLR1731) 
   * [pyupgrade] Replace str,Enum multiple inheritance with StrEnum UP042 
   * [refurb] Implement if-expr-instead-of-or-operator (FURB110) 
   * [refurb] Implement int-on-sliced-str (FURB166) 
   * [refurb] Implement write-whole-file (FURB103) 
   * [refurb] Support itemgetter in reimplemented-operator (FURB118) 
   * [flake8_comprehensions] Add sum/min/max to unnecessary comprehension check (C419) 
 * Rule changes
   * [pydocstyle] Require capitalizing docstrings where the first sentence is a single word (D403) 
   * [pycodestyle] Ignore annotated lambdas in class scopes (E731) 
   * [flake8-pyi] Various improvements to PYI034 
   * [flake8-slots] Flag subclasses of call-based typing.NamedTuples as well as subclasses of collections.namedtuple() (SLOT002) 
   * [pyflakes] Allow forward references in class bases in stub files (F821) 
   * [pygrep-hooks] Improve blanket-noqa error message (PGH004) 
 * CLI
   * Support FORCE_COLOR env var 
 * Configuration
   * Support negated patterns in [extend-]per-file-ignores 
 * Bug fixes
   * Avoid TOCTOU errors in cache initialization 
   * [pylint] Recode nan-comparison rule to W0177 
   * [pylint] Reverse min-max logic in if-stmt-min-max 
   * [flake8-import-conventions] Accept non-aliased (but correct) import in unconventional-import-alias (ICN001) 
   * [flake8-quotes] Add semantic model flag when inside f-string replacement field 
   * [pep8-naming] Recursively resolve TypeDicts for N815 violations
buildservice-autocommit accepted request 1166515 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 53)
baserev update by copy to link target
Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) committed (revision 52)
- update to 0.3.5
 * Preview features
   * [pylint] Implement modified-iterating-set (E4703) 
   * [refurb] Implement for-loop-set-mutations (FURB142) 
   * [refurb] Implement unnecessary-from-float (FURB164) 
   * [refurb] Implement verbose-decimal-constructor (FURB157) 
 * Rule changes
   * [flake8-comprehensions] Handled special case for C401 which also matches C416 
   * [flake8-pyi] Mark unaliased-collections-abc-set-import fix as "safe" for more cases in stub files (PYI025) 
   * [numpy] Add row_stack to NumPy 2.0 migration rule 
   * [pycodestyle] Allow cell magics before an import (E402) 
   * [pycodestyle] Avoid blank line rules for the first logical line in cell 
 * Configuration
   * Respected nested namespace packages 
   * [flake8-boolean-trap] Add setting for user defined allowed boolean trap 
 * Bug fixes
   * Correctly handle references in __all__ definitions when renaming symbols in autofixes 
   * Track ranges of names inside __all__ definitions 
   * [flake8-bugbear] Avoid false positive for usage after continue (B031) 
   * [flake8-copyright] Accept commas in default copyright pattern 
   * [flake8-datetimez] Allow f-strings with %z for DTZ007 
   * [flake8-pytest-style] Fix PT014 autofix for last item in list 
   * [flake8-quotes] Ignore Q000, Q001 when string is inside forward ref 
   * [isort] Always place non-relative imports after relative imports 
   * [isort] Respect Unicode characters in import sorting 
   * [pyflakes] Fix F821 false negatives when from __future__ import annotations is active (attempt 2) 
   * [pyflakes] Make unnecessary-lambda an always-unsafe fix 
   * [pylint] Fixed false-positive on the rule PLW1641 (eq-without-hash) 
   * [ruff] Fix panic in unused # noqa removal with multi-byte space (RUF100) 
 * Documentation
buildservice-autocommit accepted request 1160627 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 51)
baserev update by copy to link target
Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) committed (revision 50)
- update ruff to 0.3.4
 * Preview features
   * [flake8-simplify] Detect implicit else cases in needless-bool (SIM103) 
   * [pylint] Implement nan-comparison (PLW0117) 
   * [pylint] Implement nonlocal-and-global (E115) 
   * [pylint] Implement singledispatchmethod-function (PLE5120) 
   * [refurb] Implement list-reverse-copy (FURB187) 
 * Rule changes
   * [flake8-pytest-style] Add automatic fix for pytest-parametrize-values-wrong-type (PT007) 
   * [pycodestyle] Allow SPDX license headers to exceed the line length (E501) 
 * Formatter
   * Fix unstable formatting for trailing subscript end-of-line comment 
 * Bug fixes
   * Avoid code comment detection in PEP 723 script tags 
   * Avoid incorrect tuple transformation in single-element case (C409) 
   * Bug fix: Prevent fully defined links name from being reformatted 
   * Consider raw source code for W605 
   * Docs: Link inline settings when not part of options section 
   * Don't treat annotations as redefinitions in .pyi files 
   * Fix E231 bug: Inconsistent catch compared to pycodestyle, such as when dict nested in list 
   * Fix pylint upstream categories not showing in docs 
   * Add missing Options references to blank line docs 
   * 'Revert "F821: Fix false negatives in .py files when from __future__ import annotations is active "' 
   * Apply NFKC normalization to unicode identifiers in the lexer 
   * Avoid failures due to non-deterministic binding ordering 
   * [flake8-bugbear] Allow tuples of exceptions (B030) 
   * [flake8-quotes] Avoid syntax errors due to invalid quotes (Q000, Q002)
buildservice-autocommit accepted request 1159022 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 49)
baserev update by copy to link target
Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) committed (revision 48)
- update to 0.3.3
 * Preview features
   * [flake8-bandit]: Implement S610 rule 
   * [pycodestyle] Implement blank-line-at-end-of-file (W391) 
   * [pycodestyle] Implement redundant-backslash (E502) 
   * [pylint] - implement redeclared-assigned-name (W0128) 
 * Rule changes
   * [flake8_comprehensions] Handled special case for C400 which also matches C416 
   * [flake8-bandit] Implement upstream updates for S311, S324 and S605 
   * [pyflakes] Remove F401 fix for __init__ imports by default and allow opt-in to unsafe fix 
   * [pylint] Implement invalid-bool-return-type (E304) 
   * [pylint] Include builtin warnings in useless-exception-statement (PLW0133) 
 * CLI
   * Add message on success to ruff check 
 * Bug fixes
   * [PIE970] Allow trailing ellipsis in typing.TYPE_CHECKING 
   * Avoid TRIO115 if the argument is a variable 
   * [F811] Avoid removing shadowed imports that point to different symbols 
   * Fix F821 and F822 false positives in .pyi files 
   * Fix F821 false negatives in .py files when from __future__ import annotations is active 
   * Fix case where Indexer fails to identify continuation preceded by newline #10351 
   * Sort hash maps in Settings display 
   * Track conditional deletions in the semantic model 
   * [C413] Wrap expressions in parentheses when negating 
   * [pycodestyle] Do not ignore lines before the first logical line in blank lines rules. 
   * [pycodestyle] Do not trigger E225 and E275 when the next token is a ')' 
   * [pylint] Avoid false-positive slot non-assignment for __dict__ (PLE0237) 
   * Gate f-string struct size test for Rustc < 1.76 
 * Documentation
   * Use ruff.toml format in README
buildservice-autocommit accepted request 1156882 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 47)
baserev update by copy to link target
Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) committed (revision 46)
- update to 0.3.2
 * Preview features
   * Improve single-with item formatting for Python 3.8 or older 
 * Rule changes
   * [pyupgrade] Allow fixes for f-string rule regardless of line length (UP032) 
   * [pycodestyle] Include actual conditions in E712 diagnostics 
 * Bug fixes
   * Fix trailing kwargs end of line comment after slash 
   * Fix unstable with items formatting 
   * Avoid repeating function calls in f-string conversions 
   * Fix E203 false positive for slices in format strings 
   * Fix incorrect Parameter range for *args and **kwargs 
   * Treat typing.Annotated subscripts as type definitions 
 * 0.3.1
 * Preview features
   * [pycodestyle] Fix E301 not triggering on decorated methods. 
   * [pycodestyle] Respect isort settings in blank line rules (E3*) 
   * [pycodestyle] Make blank lines in typing stub files optional (E3*) 
   * [pylint] Implement singledispatch-method (E1519) 
   * [pylint] Implement useless-exception-statement (W0133) 
 * Rule changes
   * [flake8-debugger] Check for use of debugpy and ptvsd debug modules  
   * [pyupgrade] Generate diagnostic for all valid f-string conversions regardless of line length (UP032) 
   * [pep8_naming] Add fixes for N804 and N805 
 * CLI
   * Colorize the output of ruff format --diff 
   * Make --config and --isolated global flags 
   * Correctly expand tildes and environment variables in paths passed to --config 
 * Configuration
   * Accept a PEP 440 version specifier for required-version
Matej Cepl's avatar Matej Cepl (mcepl) committed (revision 45)
- Remove limitations on building (do not exclude any arch beforehand).
buildservice-autocommit accepted request 1155592 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 44)
baserev update by copy to link target
Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) committed (revision 43)
- update to 0.3.0
 * Preview features
   * [flake8-bandit] Remove suspicious-lxml-import (S410) 
   * [pycodestyle] Allow os.environ modifications between imports (E402) 
   * [pycodestyle] Don't warn about a single whitespace character before a comma in a tuple (E203) 
 * Rule changes
   * [eradicate] Detect commented out case statements (ERA001) 
   * [eradicate] Detect single-line code for try:, except:, etc. (ERA001) 
   * [flake8-boolean-trap] Allow boolean positionals in __post_init__ 
   * [flake8-copyright] Allow © in copyright notices 
   * [isort]: Use one blank line after imports in typing stub files 
   * [pylint] New Rule dict-iter-missing-items (PLE1141) 
   * [pylint] Ignore sys.version and sys.platform (PLR1714) 
   * [pyupgrade] Detect literals with unary operators (UP018) 
   * [ruff] Expand rule for list(iterable).pop(0) idiom (RUF015) 
 * Formatter
  * This release introduces the Ruff 2024.2 style, stabilizing the following changes:
   * Prefer splitting the assignment's value over the target or type annotation 
   * Remove blank lines before class docstrings 
   * Wrap multiple context managers in with parentheses when targeting Python 3.9 or newer 
   * Add a blank line after nested classes with a dummy body (...) in typing stub files 
   * Reduce vertical spacing for classes and functions with a dummy (...) body
   * Add a blank line after the module docstring 
   * Parenthesize long type hints in assignments 
   * Preserve indent for single multiline-string call-expressions 
   * Normalize hex escape and unicode escape sequences 
   * Format module docstrings 
 * CLI
   * Explicitly disallow extend as part of a --config flag 
   * Remove build from the default exclusion list
Matej Cepl's avatar Matej Cepl (mcepl) accepted request 1155229 from Andreas Schwab's avatar Andreas Schwab (Andreas_Schwab) (revision 42)
- Enable build on riscv64
Displaying revisions 1 - 20 of 61
openSUSE Build Service is sponsored by