Subject: CVS commit: pkgsrc/devel/py-ruff
From: Adam Ciarcinski
Date: 2024-11-29 09:08:44
Message id: 20241129080844.657CFFC1B@cvs.NetBSD.org

Log Message:
py-ruff: updated to 0.8.1

0.8.1

Preview features

Formatter: Avoid invalid syntax for format-spec with quotes for all Python versions
Formatter: Consider quotes inside format-specs when choosing the quotes for an \ 
f-string
Formatter: Do not consider f-strings with escaped newlines as multiline
Formatter: Fix f-string formatting in assignment statement
Formatter: Fix unnecessary space around power operator (**) in overlong f-string \ 
expressions
[airflow] Avoid implicit schedule argument to DAG and @dag (AIR301)
[flake8-builtins] Exempt private built-in modules (A005)
[flake8-pytest-style] Fix pytest.mark.parametrize rules to check calls instead \ 
of decorators
[flake8-type-checking] Implement runtime-cast-value (TC006)
[flake8-type-checking] Implement unquoted-type-alias (TC007) and \ 
quoted-type-alias (TC008)
[flake8-use-pathlib] Recommend Path.iterdir() over os.listdir() (PTH208)
[pylint] Extend invalid-envvar-default to detect os.environ.get (PLW1508)
[pylint] Implement len-test (PLC1802)
[refurb] Fix bug where methods defined using lambdas were flagged by FURB118
[ruff] Auto-add r prefix when string has no backslashes for unraw-re-pattern (RUF039)
[ruff] Implement invalid-assert-message-literal-argument (RUF040)
[ruff] Implement unnecessary-nested-literal (RUF041)
[ruff] Implement unnecessary-regular-expression (RUF055)

Rule changes

Ignore more rules for stub files
[pep8-naming] Eliminate false positives for single-letter names (N811, N814)
[pyflakes] Avoid false positives in @no_type_check contexts (F821, F722)
[ruff] Detect redirected-noqa in file-level comments (RUF101)
[ruff] Mark fixes for unsorted-dunder-all and unsorted-dunder-slots as unsafe \ 
when there are complex comments in the sequence (RUF022, RUF023)

Bug fixes

Avoid fixing code to None | None for redundant-none-literal (PYI061) and \ 
never-union (RUF020)
[flake8-bugbear] Fix mutable-contextvar-default to resolve annotated function \ 
calls properly (B039)
[flake8-pyi, ruff] Fix traversal of nested literals and unions (PYI016, PYI051, \ 
PYI055, PYI062, RUF041)
[flake8-pyi] Avoid rewriting invalid type expressions in unnecessary-type-union \ 
(PYI055)
[flake8-type-checking] Avoid syntax errors and type checking problem for quoted \ 
annotations autofix (TC003, TC006)
[pylint] Do not wrap function calls in parentheses in the fix for \ 
unnecessary-dunder-call (PLC2801)
[ruff] Handle attrs's auto_attribs correctly (RUF009)

Files:
RevisionActionfile
1.45modifypkgsrc/devel/py-ruff/distinfo
1.48modifypkgsrc/devel/py-ruff/Makefile
1.43modifypkgsrc/devel/py-ruff/cargo-depends.mk