Skip to content

Conversation

@tmke8
Copy link
Contributor

@tmke8 tmke8 commented Jan 23, 2023

Ruff supports more than known-first-party, known-third-party, extra-standard-library, and src nowadays.

Not sure if this is the best wording. Suggestions welcome!

README.md Outdated
Ruff is less configurable than `isort`, but supports the `known-first-party`, `known-third-party`,
`extra-standard-library`, and `src` settings, like so:
Ruff does not yet support all configuration options of `isort`. You can find the supported settings
in [Options](#options). For example, you can set `known-first-party` like so:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
in [Options](#options). For example, you can set `known-first-party` like so:
in [Options](#isort). For example, you can set `known-first-party` like so:

Maybe link to the isort part of the reference.

@charliermarsh charliermarsh merged commit c5cebb1 into astral-sh:main Jan 23, 2023
@charliermarsh
Copy link
Member

Thanks!

bruxisma referenced this pull request in ixm-one/pytest-cmake-presets Jan 24, 2023
[![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.230` ->
`^0.0.231` |
[![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.231/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.231/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.231/compatibility-slim/0.0.230)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.231/confidence-slim/0.0.230)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

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

#### What's Changed

- fix: issue D401 only for non-test/property functions and methods by
[@&#8203;scop](https://togithub.com/scop) in
[https://github.com/charliermarsh/ruff/pull/2071](https://togithub.com/charliermarsh/ruff/pull/2071)
- feat: flake8-use-pathlib PTH100-124 by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[https://github.com/charliermarsh/ruff/pull/2090](https://togithub.com/charliermarsh/ruff/pull/2090)
- refactor: remove redundant enum by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[https://github.com/charliermarsh/ruff/pull/2091](https://togithub.com/charliermarsh/ruff/pull/2091)
- feat: Implement TRY201 by
[@&#8203;alonme](https://togithub.com/alonme) in
[https://github.com/charliermarsh/ruff/pull/2073](https://togithub.com/charliermarsh/ruff/pull/2073)
- Avoid nested-if violations when outer-if has else clause by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/2095](https://togithub.com/charliermarsh/ruff/pull/2095)
- Add flake8-pie PIE804: no-unnecessary-dict-kwargs by
[@&#8203;sbdchd](https://togithub.com/sbdchd) in
[https://github.com/charliermarsh/ruff/pull/1884](https://togithub.com/charliermarsh/ruff/pull/1884)
- Add flake8-pie PIE800: no-unnecessary-spread by
[@&#8203;sbdchd](https://togithub.com/sbdchd) in
[https://github.com/charliermarsh/ruff/pull/1881](https://togithub.com/charliermarsh/ruff/pull/1881)
- Remove some usages of default format for expressions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/2100](https://togithub.com/charliermarsh/ruff/pull/2100)
- docs(readme): add pypa cibuildwheel by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[https://github.com/charliermarsh/ruff/pull/2107](https://togithub.com/charliermarsh/ruff/pull/2107)
- refactor: Get rid of `build.rs` and other refactors by
[@&#8203;not-my-profile](https://togithub.com/not-my-profile) in
[https://github.com/charliermarsh/ruff/pull/2101](https://togithub.com/charliermarsh/ruff/pull/2101)
- Fix outdated description of ruff's support of isort settings by
[@&#8203;thomkeh](https://togithub.com/thomkeh) in
[https://github.com/charliermarsh/ruff/pull/2106](https://togithub.com/charliermarsh/ruff/pull/2106)
- \[`flake8-bandit`] Added Rule `S612` (Use of insecure
`logging.config.listen`) by
[@&#8203;saadmk11](https://togithub.com/saadmk11) in
[https://github.com/charliermarsh/ruff/pull/2108](https://togithub.com/charliermarsh/ruff/pull/2108)

#### New Contributors

- [@&#8203;sbdchd](https://togithub.com/sbdchd) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/1884](https://togithub.com/charliermarsh/ruff/pull/1884)

**Full Changelog**:
astral-sh/ruff@v0.0.230...v0.0.231

</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:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDkuMSIsInVwZGF0ZWRJblZlciI6IjM0LjEwOS4xIn0=-->

Signed-off-by: Renovate Bot <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants