forked from pool/python-ruff
Accepting request 1155592 from devel:languages:python
- 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 OBS-URL: https://build.opensuse.org/request/show/1155592 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=20
This commit is contained in:
commit
53bd271c15
@ -1,3 +1,59 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 6 14:20:44 UTC 2024 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- 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
|
||||||
|
* Deprecate ruff <path>, ruff --explain, ruff --clean, and ruff --generate-shell-completion
|
||||||
|
in favor of ruff check <path>, ruff rule, ruff clean, and ruff generate-shell-completion
|
||||||
|
* Remove the deprecated CLI option --format from ruff rule and ruff linter
|
||||||
|
* Bug fixes
|
||||||
|
* [flake8-bugbear] Avoid adding default initializers to stubs (B006)
|
||||||
|
* [flake8-type-checking] Respect runtime-required decorators for function signatures
|
||||||
|
* [pycodestyle] Mark fixes overlapping with a multiline string as unsafe (W293)
|
||||||
|
* [pydocstyle] Trim whitespace when removing blank lines after section (D413)
|
||||||
|
* [pylint] Delete entire statement, including semicolons (PLR0203)
|
||||||
|
* [ruff] Avoid f-string false positives in gettext calls (RUF027)
|
||||||
|
* Fix ruff crashing on PowerPC systems because of too small page size
|
||||||
|
* Performance
|
||||||
|
* Add cold attribute to less likely printer queue branches in the formatter
|
||||||
|
* Skip unnecessary string normalization in the formatter
|
||||||
|
* Documentation
|
||||||
|
* Remove "Beta" Label from formatter documentation
|
||||||
|
* line-length option: fix link to pycodestyle.max-line-length
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 5 14:12:37 UTC 2024 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
- Enable build on riscv64
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 21 16:49:44 UTC 2024 - Ondřej Súkup <mimi.vx@gmail.com>
|
Wed Feb 21 16:49:44 UTC 2024 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
%bcond_without libalternatives
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-ruff
|
Name: python-ruff
|
||||||
Version: 0.2.2
|
Version: 0.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An extremely fast Python linter, written in Rust
|
Summary: An extremely fast Python linter, written in Rust
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -33,7 +33,7 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: alts
|
Requires: alts
|
||||||
BuildRequires: alts
|
BuildRequires: alts
|
||||||
ExclusiveArch: %{rust_tier1_arches}
|
ExclusiveArch: %{rust_tier1_arches} riscv64
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e62ed7f36b3068a30ba39193a14274cd706bc486fad521276458022f7bccb31d
|
|
||||||
size 2040633
|
|
3
ruff-0.3.0.tar.gz
Normal file
3
ruff-0.3.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0886184ba2618d815067cf43e005388967b67ab9c80df52b32ec1152ab49f53a
|
||||||
|
size 2057870
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:8341404ca81987ddf5b582a271723ed37012ba9c1c1824873c7b504b8260a8ab
|
oid sha256:809267693f6ac1f1418835166afe1cb594cb0f3f05a2281dc2e031778251bdd0
|
||||||
size 25260249
|
size 25342695
|
||||||
|
Loading…
x
Reference in New Issue
Block a user