Skip to content

[ruff] reintroduce demisto/content to ruff-ecosystem - #27305

Merged
ntBre merged 2 commits into
astral-sh:mainfrom
Andrej730:ruff-ecosystem-demisto
Jul 29, 2026
Merged

[ruff] reintroduce demisto/content to ruff-ecosystem#27305
ntBre merged 2 commits into
astral-sh:mainfrom
Andrej730:ruff-ecosystem-demisto

Conversation

@Andrej730

@Andrej730 Andrej730 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Reintroducing demisto/content back to ruff-ecosystem, it's a huge repo with 4.5K py file and 2.5M loc, so may have catch some cases for ecosystem report. It was previously commented out in #12129 due to the use of removed E999

Issue with the use of removed rules upstream is resolved, though apparently E999 was dropped from selection a while ago and new issue with the use of removed UP038 occurred, but it's resolved now too - demisto/content#45227

Syntax error in still present in https://github.com/demisto/content/blob/master/Packs/ThreatQ/Integrations/ThreatQ/ThreatQ.py, so keeping exclude. Though apparently it doesn't break ruff-ecosystem anymore, but keeping it safe for now. I've submitted a fix upstream demisto/content#45275, so exclude can be removed later too.

Test Plan

Tested running ruff-ecosystem locally, no issues found.

Issue with the use of removed rules upstream is resolved. Syntax error is still present, but apparently it doesn't break ruff-ecosystem anymore, but keeping it safe.
@astral-sh-bot

astral-sh-bot Bot commented Jul 29, 2026

Copy link
Copy Markdown

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@ntBre ntBre added testing Related to testing Ruff itself ci Related to internal CI tooling and removed testing Related to testing Ruff itself labels Jul 29, 2026

@ntBre ntBre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice thank you! And thanks for opening the upstream PR too. Just one minor comment on that front since it looks like it already merged 🚀

Comment thread python/ruff-ecosystem/ruff_ecosystem/defaults.py Outdated
@ntBre
ntBre merged commit f3c869d into astral-sh:main Jul 29, 2026
47 checks passed
@Andrej730
Andrej730 deleted the ruff-ecosystem-demisto branch July 29, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Related to internal CI tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants