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

Avoid E275 if keyword is followed by a semicolon #12095

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

dhruvmanila
Copy link
Member

fixes: #12094

@dhruvmanila dhruvmanila added the bug Something isn't working label Jun 28, 2024
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

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

milvus-io/pymilvus (+0 -2 violations, +0 -0 fixes)

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

- examples/example_bulkinsert_json.py:209:13: E275 [*] Missing whitespace after keyword
- examples/example_bulkinsert_numpy.py:211:13: E275 [*] Missing whitespace after keyword

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 `pyproject.toml`:
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  - 'unfixable' -> 'lint.unfixable'
  - 'per-file-ignores' -> 'lint.per-file-ignores'
warning: `PGH001` has been remapped to `S307`.
warning: `PGH002` has been remapped to `G010`.
warning: `PLR1701` has been remapped to `SIM101`.
ruff failed
  Cause: Selection of deprecated rule `E999` is not allowed when preview is enabled.

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
E275 2 0 2 0 0

@dhruvmanila dhruvmanila merged commit 47b2273 into main Jun 28, 2024
20 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/autofix-bug branch June 28, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Infinite loop in auto-fix between E203/E275
2 participants