bryanforbes / asyncpg-stubs

BSD 3-Clause "New" or "Revised" License
37 stars 4 forks source link

Update dependency ruff to v0.5.2 #338

Closed renovate[bot] closed 4 months ago

renovate[bot] commented 4 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ruff (source, changelog) 0.5.0 -> 0.5.2 age adoption passing confidence

Release Notes

astral-sh/ruff (ruff) ### [`v0.5.2`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#052) [Compare Source](https://togithub.com/astral-sh/ruff/compare/0.5.1...0.5.2) ##### Preview features - Use `space` separator before parenthesized expressions in comprehensions with leading comments ([#​12282](https://togithub.com/astral-sh/ruff/pull/12282)) - \[`flake8-async`] Update `ASYNC100` to include `anyio` and `asyncio` ([#​12221](https://togithub.com/astral-sh/ruff/pull/12221)) - \[`flake8-async`] Update `ASYNC109` to include `anyio` and `asyncio` ([#​12236](https://togithub.com/astral-sh/ruff/pull/12236)) - \[`flake8-async`] Update `ASYNC110` to include `anyio` and `asyncio` ([#​12261](https://togithub.com/astral-sh/ruff/pull/12261)) - \[`flake8-async`] Update `ASYNC115` to include `anyio` and `asyncio` ([#​12262](https://togithub.com/astral-sh/ruff/pull/12262)) - \[`flake8-async`] Update `ASYNC116` to include `anyio` and `asyncio` ([#​12266](https://togithub.com/astral-sh/ruff/pull/12266)) ##### Rule changes - \[`flake8-return`] Exempt properties from explicit return rule (`RET501`) ([#​12243](https://togithub.com/astral-sh/ruff/pull/12243)) - \[`numpy`] Add `np.NAN`-to-`np.nan` diagnostic ([#​12292](https://togithub.com/astral-sh/ruff/pull/12292)) - \[`refurb`] Make `list-reverse-copy` an unsafe fix ([#​12303](https://togithub.com/astral-sh/ruff/pull/12303)) ##### Server - Consider `include` and `extend-include` settings in native server ([#​12252](https://togithub.com/astral-sh/ruff/pull/12252)) - Include nested configurations in settings reloading ([#​12253](https://togithub.com/astral-sh/ruff/pull/12253)) ##### CLI - Omit code frames for fixes with empty ranges ([#​12304](https://togithub.com/astral-sh/ruff/pull/12304)) - Warn about formatter incompatibility for `D203` ([#​12238](https://togithub.com/astral-sh/ruff/pull/12238)) ##### Bug fixes - Make cache-write failures non-fatal on Windows ([#​12302](https://togithub.com/astral-sh/ruff/pull/12302)) - Treat `not` operations as boolean tests ([#​12301](https://togithub.com/astral-sh/ruff/pull/12301)) - \[`flake8-bandit`] Avoid `S310` violations for HTTP-safe f-strings ([#​12305](https://togithub.com/astral-sh/ruff/pull/12305)) - \[`flake8-bandit`] Support explicit string concatenations in S310 HTTP detection ([#​12315](https://togithub.com/astral-sh/ruff/pull/12315)) - \[`flake8-bandit`] fix S113 false positive for httpx without `timeout` argument ([#​12213](https://togithub.com/astral-sh/ruff/pull/12213)) - \[`pycodestyle`] Remove "non-obvious" allowance for E721 ([#​12300](https://togithub.com/astral-sh/ruff/pull/12300)) - \[`pyflakes`] Consider `with` blocks as single-item branches for redefinition analysis ([#​12311](https://togithub.com/astral-sh/ruff/pull/12311)) - \[`refurb`] Restrict forwarding for `newline` argument in `open()` calls to Python versions >= 3.10 ([#​12244](https://togithub.com/astral-sh/ruff/pull/12244)) ##### Documentation - Update help and documentation to reflect `--output-format full` default ([#​12248](https://togithub.com/astral-sh/ruff/pull/12248)) ##### Performance - Use more threads when discovering Python files ([#​12258](https://togithub.com/astral-sh/ruff/pull/12258)) ### [`v0.5.1`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#051) [Compare Source](https://togithub.com/astral-sh/ruff/compare/0.5.0...0.5.1) ##### Preview features - \[`flake8-bugbear`] Implement mutable-contextvar-default (B039) ([#​12113](https://togithub.com/astral-sh/ruff/pull/12113)) - \[`pycodestyle`] Whitespace after decorator (`E204`) ([#​12140](https://togithub.com/astral-sh/ruff/pull/12140)) - \[`pytest`] Reverse `PT001` and `PT0023` defaults ([#​12106](https://togithub.com/astral-sh/ruff/pull/12106)) ##### Rule changes - Enable token-based rules on source with syntax errors ([#​11950](https://togithub.com/astral-sh/ruff/pull/11950)) - \[`flake8-bandit`] Detect `httpx` for `S113` ([#​12174](https://togithub.com/astral-sh/ruff/pull/12174)) - \[`numpy`] Update `NPY201` to include exception deprecations ([#​12065](https://togithub.com/astral-sh/ruff/pull/12065)) - \[`pylint`] Generate autofix for `duplicate-bases` (`PLE0241`) ([#​12105](https://togithub.com/astral-sh/ruff/pull/12105)) ##### Server - Avoid syntax error notification for source code actions ([#​12148](https://togithub.com/astral-sh/ruff/pull/12148)) - Consider the content of the new cells during notebook sync ([#​12203](https://togithub.com/astral-sh/ruff/pull/12203)) - Fix replacement edit range computation ([#​12171](https://togithub.com/astral-sh/ruff/pull/12171)) ##### Bug fixes - Disable auto-fix when source has syntax errors ([#​12134](https://togithub.com/astral-sh/ruff/pull/12134)) - Fix cache key collisions for paths with separators ([#​12159](https://togithub.com/astral-sh/ruff/pull/12159)) - Make `requires-python` inference robust to `==` ([#​12091](https://togithub.com/astral-sh/ruff/pull/12091)) - Use char-wise width instead of `str`-width ([#​12135](https://togithub.com/astral-sh/ruff/pull/12135)) - \[`pycodestyle`] Avoid `E275` if keyword followed by comma ([#​12136](https://togithub.com/astral-sh/ruff/pull/12136)) - \[`pycodestyle`] Avoid `E275` if keyword is followed by a semicolon ([#​12095](https://togithub.com/astral-sh/ruff/pull/12095)) - \[`pylint`] Skip [dummy variables](https://docs.astral.sh/ruff/settings/#lint_dummy-variable-rgx) for `PLR1704` ([#​12190](https://togithub.com/astral-sh/ruff/pull/12190)) ##### Performance - Remove allocation in `parse_identifier` ([#​12103](https://togithub.com/astral-sh/ruff/pull/12103)) - Use `CompactString` for `Identifier` AST node ([#​12101](https://togithub.com/astral-sh/ruff/pull/12101))

Configuration

📅 Schedule: Branch creation - "before 4am" in timezone America/Chicago, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.