Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore RUF011 documentation #9758

Merged
merged 4 commits into from
Feb 1, 2024
Merged

Restore RUF011 documentation #9758

merged 4 commits into from
Feb 1, 2024

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Feb 1, 2024

For consistency with other redirected rules as in #9755

Follow-up to #9428

@zanieb zanieb added the internal An internal refactor or improvement label Feb 1, 2024
///
/// [B035]: https://docs.astral.sh/ruff/rules/static-key-dict-comprehension/
#[violation]
pub struct RuffStaticKeyDictComprehension;
Copy link
Member Author

Choose a reason for hiding this comment

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

Renamed to avoid docs link collission

@zanieb zanieb enabled auto-merge (squash) February 1, 2024 16:47
@zanieb zanieb force-pushed the zb/ruf001 branch 2 times, most recently from a8f2ec1 to fa7c2b4 Compare February 1, 2024 17:12
@zanieb zanieb merged commit 386035f into release/0.2.0 Feb 1, 2024
16 checks passed
@zanieb zanieb deleted the zb/ruf001 branch February 1, 2024 17:48
Copy link
Contributor

github-actions bot commented Feb 1, 2024

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+1 -1 violations, +0 -0 fixes in 2 projects; 2 project errors; 39 projects unchanged)

apache/airflow (+0 -1 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --no-preview --select ALL

- dev/stats/get_important_pr_candidates.py:131:32: PGH001 No builtin `eval()` allowed

ibis-project/ibis (+1 -0 violations, +0 -0 fixes)

+ ibis/common/typing.py:206:69: RUF100 Unused `noqa` directive (non-enabled: `S307`)

demisto/content (error)

warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in your configuration:
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  - 'unfixable' -> 'lint.unfixable'
  - 'per-file-ignores' -> 'lint.per-file-ignores'


ruff failed
  Cause: Rule `PGH002` was removed and cannot be selected.

sphinx-doc/sphinx (error)

warning: The `show-source` option has been deprecated in favor of `output-format`'s "full" and "concise" variants. Please update your configuration to use `output-format = <full|concise>` instead.
warning: `RUF011` has been remapped to `B035`.
warning: `TCH006` has been remapped to `TCH010`.
ruff failed
  Cause: Selection of unstable rules without the `--preview` flag is not allowed. Enable preview or remove selection of:
	- FURB131
	- FURB113
	- FURB132

Changes by rule (2 rules affected)

code total + violation - violation + fix - fix
RUF100 1 1 0 0 0
PGH001 1 0 1 0 0

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+1 -1 violations, +0 -0 fixes in 2 projects; 2 project errors; 39 projects unchanged)

apache/airflow (+0 -1 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL

- dev/stats/get_important_pr_candidates.py:131:32: PGH001 No builtin `eval()` allowed

ibis-project/ibis (+1 -0 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview

+ ibis/common/typing.py:206:69: RUF100 Unused `noqa` directive (non-enabled: `S307`)

demisto/content (error)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview

warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in your configuration:
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  - 'unfixable' -> 'lint.unfixable'
  - 'per-file-ignores' -> 'lint.per-file-ignores'


ruff failed
  Cause: Rule `PGH002` was removed and cannot be selected.

sphinx-doc/sphinx (error)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview

warning: The `show-source` option has been deprecated in favor of `output-format`'s "full" and "concise" variants. Please update your configuration to use `output-format = <full|concise>` instead.
warning: `RUF011` has been remapped to `B035`.
warning: `TCH006` has been remapped to `TCH010`.
ruff failed
  Cause: Selection of deprecated rule `ANN102` is not allowed when preview is enabled.

Changes by rule (2 rules affected)

code total + violation - violation + fix - fix
RUF100 1 1 0 0 0
PGH001 1 0 1 0 0

zanieb added a commit that referenced this pull request Feb 1, 2024
For consistency with other redirected rules as in
#9755

Follow-up to #9428
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants