Skip to content

Commit

Permalink
⬆️ Update dependency ruff to ^0.0.238 (#47)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [ruff](https://togithub.com/charliermarsh/ruff) | `^0.0.237` ->
`^0.0.238` |
[![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.238/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.238/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.238/compatibility-slim/0.0.237)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.238/confidence-slim/0.0.237)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>charliermarsh/ruff</summary>

###
[`v0.0.238`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.238)

[Compare
Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.237...v0.0.238)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### ⚠️ Breaking Changes ⚠️

##### `select`, `extend-select`, `ignore`, and `extend-ignore` have new
semantics
([#&#8203;2312](https://togithub.com/charliermarsh/ruff/pull/2312))

Previously, the interplay between `select` and its related options could
lead to unexpected behavior. For example, `ruff --select E501 --ignore
ALL` and `ruff --select E501 --extend-ignore ALL` behaved differently.
(See [#&#8203;2312](https://togithub.com/charliermarsh/ruff/pull/2312)
for more examples.)

The new semantics are such that Ruff uses the "highest-priority"
`select` as the basis for the rule set, and then applies any
`extend-select`, `ignore`, and `extend-ignore` adjustments. CLI options
are given higher priority than `pyproject.toml` options, and the current
`pyproject.toml` file is given higher priority than any inherited
`pyproject.toml` files.

As an example: `ruff --select F401` will select rule `F401`, and ignore
any of the modifiers from the `pyproject.toml`, as the "highest-priorty"
select kicks off the resolution chain.

This change is largely backwards compatible -- most users should
experience no change in behavior. For more, see
[BREAKING_CHANGES.md](https://togithub.com/charliermarsh/ruff/blob/main/BREAKING_CHANGES.md#select-extend-select-ignore-and-extend-ignore-have-new-semantics-2312).

##### `remove-six-compat` (`UP016`) has been removed
([#&#8203;2332](https://togithub.com/charliermarsh/ruff/pull/2332))

The `remove-six-compat` rule has been removed. This rule was only useful
for one-time Python 2-to-3 upgrades.

##### Rules

- Implement Pylint's `too-many-arguments` rule (`PLR0913`) by
[@&#8203;akhildevelops](https://togithub.com/akhildevelops) in
[astral-sh/ruff#2308
- Extend conventional imports defaults to include TensorFlow et al by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#2353

##### Settings

- feat: add ruff --statistics by
[@&#8203;spaceone](https://togithub.com/spaceone) in
[astral-sh/ruff#2284
- Ignore magic comparisons to bytes by default by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2365
- Implement `ruff linter` subcommand by
[@&#8203;not-my-profile](https://togithub.com/not-my-profile) in
[astral-sh/ruff#2294
- Improve rule config resolution by
[@&#8203;not-my-profile](https://togithub.com/not-my-profile) in
[astral-sh/ruff#2312

##### Bug Fixes

- Refine criteria for `exc_info` logger rules by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2364
- Respect per-file-ignores when checking noqa by
[@&#8203;sciyoshi](https://togithub.com/sciyoshi) in
[astral-sh/ruff#2309
- Place star before other member imports by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2320
- Allow list comprehensions for **all** assignment by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2326
- \[`TRY201`] don't check raise statements in nested exception handlers
by [@&#8203;sciyoshi](https://togithub.com/sciyoshi) in
[astral-sh/ruff#2337
- include tomllib in standard lib by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#2345
- Avoid removing trailing comments when autofixing by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2352
- \[`I001`] fix isort for files with tab-based indentation by
[@&#8203;sciyoshi](https://togithub.com/sciyoshi) in
[astral-sh/ruff#2361
- Disable incompatible rules rather than merely warning by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2369

#### New Contributors

- [@&#8203;chirag127](https://togithub.com/chirag127) made their first
contribution in
[astral-sh/ruff#2307
- [@&#8203;akhildevelops](https://togithub.com/akhildevelops) made their
first contribution in
[astral-sh/ruff#2308

**Full Changelog**:
astral-sh/ruff@v0.0.237...v0.0.238

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

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

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/ixm-one/pytest-cmake-presets).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTYuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNi4xIn0=-->

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] committed Jan 31, 2023
1 parent 861955d commit a0471ef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ optional = true
pyright = "^1.1.285"
black = "^22.10.0"
isort = "^5.10.1"
ruff = "^0.0.237"
ruff = "^0.0.238"
pytest-xdist = "^3.1.0"
pytest-cov = "^4.0.0"
ninja = "^1.11.1"

0 comments on commit a0471ef

Please sign in to comment.