Skip to content

use ruff to auto-simplify SIM110 #40258

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

Merged
merged 5 commits into from
Jul 6, 2025
Merged

Conversation

fchapoton
Copy link
Contributor

This is about using all or any where possible.

This was scripted using

ruff check --select=SIM110 --fix --unsafe-fixes src/sage

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.

Copy link

github-actions bot commented Jun 15, 2025

Documentation preview for this PR (built with commit 3afa004; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

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

LGTM.

@fchapoton
Copy link
Contributor Author

Merci beaucoup pour toutes tes relectures, David.

@dcoudert
Copy link
Contributor

Pas de souci. Espérons que le nombre total de relecteurs augmentera un jour... il y a plein de PR en attente pour lesquelles je suis incompétent. J'ai des PRs en attente. Il y a surement pas mal de PR à clore car abandonnées.

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

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

LGTM.

vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 27, 2025
sagemathgh-40258: use ruff to auto-simplify SIM110
    
This is about using `all` or `any` where possible.

This was scripted using

`ruff check --select=SIM110 --fix --unsafe-fixes src/sage`

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#40258
Reported by: Frédéric Chapoton
Reviewer(s): David Coudert, Frédéric Chapoton, Martin Rubey
@vbraun vbraun merged commit 9b6c5dd into sagemath:develop Jul 6, 2025
24 of 26 checks passed
@fchapoton fchapoton deleted the ruff_SIM110 branch July 7, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants