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

using ruff for UP004, UP008, UP028 #36462

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

fchapoton
Copy link
Contributor

this was scripted using

ruff check --fix --select UP004,UP008,UP028 src/sage

here is the link to ruff documentation: https://docs.astral.sh/ruff/rules/

📝 Checklist

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

@fchapoton
Copy link
Contributor Author

not sure that the changes to super will work ; I think I kept them as they were breaking something ; let's see

Copy link
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

LGTM.

@kwankyu
Copy link
Collaborator

kwankyu commented Oct 16, 2023

Do you plan to add ruff to our linter fleet?

@fchapoton
Copy link
Contributor Author

fchapoton commented Oct 16, 2023

maybe, but the CI is such a mess for the moment...

@vbraun
Copy link
Member

vbraun commented Oct 16, 2023

merge conflict

@mkoeppe
Copy link
Contributor

mkoeppe commented Oct 17, 2023

@fchapoton At least add ruff to the developer documentation please. https://doc.sagemath.org/html/en/developer/tools.html

@kwankyu
Copy link
Collaborator

kwankyu commented Oct 17, 2023

not sure that the changes to super will work ; I think I kept them as they were breaking something ; let's see

I worried that super() replacing super(CLASS, cls) would work. It seems that super() works as expected in a static method.

@fchapoton
Copy link
Contributor Author

fchapoton commented Oct 24, 2023

back to positive after trivial merge

@github-actions
Copy link

Documentation preview for this PR (built with commit e3ca71f; changes) is ready! 🎉

vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 26, 2023
    
this was scripted using

`ruff check --fix --select UP004,UP008,UP028 src/sage`

here is the link to `ruff` documentation:
https://docs.astral.sh/ruff/rules/

### 📝 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#36462
Reported by: Frédéric Chapoton
Reviewer(s): Kwankyu Lee
vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 28, 2023
    
this was scripted using

`ruff check --fix --select UP004,UP008,UP028 src/sage`

here is the link to `ruff` documentation:
https://docs.astral.sh/ruff/rules/

### 📝 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#36462
Reported by: Frédéric Chapoton
Reviewer(s): Kwankyu Lee
vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 28, 2023
    
this was scripted using

`ruff check --fix --select UP004,UP008,UP028 src/sage`

here is the link to `ruff` documentation:
https://docs.astral.sh/ruff/rules/

### 📝 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#36462
Reported by: Frédéric Chapoton
Reviewer(s): Kwankyu Lee
vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 29, 2023
    
this was scripted using

`ruff check --fix --select UP004,UP008,UP028 src/sage`

here is the link to `ruff` documentation:
https://docs.astral.sh/ruff/rules/

### 📝 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#36462
Reported by: Frédéric Chapoton
Reviewer(s): Kwankyu Lee
@vbraun vbraun merged commit a1e100a into sagemath:develop Oct 31, 2023
15 of 21 checks passed
@mkoeppe mkoeppe added this to the sage-10.2 milestone Oct 31, 2023
@fchapoton fchapoton deleted the some_ruff_fixes_for_UP branch October 31, 2023 06:42
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