Skip to content

Fix lint #40385

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 1 commit into from
Jul 25, 2025
Merged

Fix lint #40385

merged 1 commit into from
Jul 25, 2025

Conversation

user202729
Copy link
Contributor

@user202729 user202729 commented Jul 7, 2025

Any idea why lint keeps failing? Unexpected ruff version? (how does uv determine the version? @tobiasdiez ? )

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

@user202729 user202729 added the p: CI Fix merged before running CI tests label Jul 7, 2025
@@ -298,7 +298,7 @@ def image_coordinates(self, x):
sage: phi.image_coordinates(-I)
0

TESTS::
TESTS:
Copy link
Contributor

Choose a reason for hiding this comment

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

This change looks strange. Isn't TESTS:: the standard way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in RST :: denotes following code block. So we have

TESTS::

    sage: something

or

TESTS:

Some explanation::

    sage: something

in the latter case there's no :: following TESTS.

While Sage considers TESTS a magic keyword, RST doesn't.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ok, thanks for the clarification.

@tobiasdiez
Copy link
Contributor

Any idea why lint keeps failing?

Usually because the failing linter was ignored or because the linter rules were made more strict, but another PR broke the stricter rules and was merged at the same time.

vbraun pushed a commit to vbraun/sage that referenced this pull request Jul 14, 2025
sagemathgh-40385: Fix lint
    
Any idea why lint keeps failing? Unexpected ruff version? (how does `uv`
determine the version? @tobiasdiez ? )


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#40385
Reported by: user202729
Reviewer(s): Tobias Diez, user202729
vbraun pushed a commit to vbraun/sage that referenced this pull request Jul 18, 2025
sagemathgh-40385: Fix lint
    
Any idea why lint keeps failing? Unexpected ruff version? (how does `uv`
determine the version? @tobiasdiez ? )


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#40385
Reported by: user202729
Reviewer(s): Tobias Diez, user202729
@vbraun vbraun merged commit 0eb0fa7 into sagemath:develop Jul 25, 2025
24 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: CI Fix merged before running CI tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants