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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying ruff on some posets files #36440

Merged
merged 2 commits into from
Oct 21, 2023
Merged

Conversation

fchapoton
Copy link
Contributor

This is changing two files in the posets folder.

  • use a smaller doctest in one place
  • replace one annoying use of deepcopy by the method copy of DiGraph
  • apply ruff check --fix --select UP src/sage/combinat/posets to make a few automatic modifications, about strings mostly, and about the syntax of super
  • avoid one symbolic number in one doctest

馃摑 Checklist

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

@github-actions
Copy link

Documentation preview for this PR (built with commit 9a9bb58; changes) is ready! 馃帀

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 Oct 15, 2023
    
This is changing two files in the posets folder.

- use a smaller doctest in one place
- replace one annoying use of `deepcopy` by the method `copy` of
`DiGraph`
- apply `ruff check --fix --select UP src/sage/combinat/posets` to make
a few automatic modifications, about strings mostly, and about the
syntax of `super`
- avoid one symbolic number in one doctest

### 馃摑 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#36440
Reported by: Fr茅d茅ric Chapoton
Reviewer(s): David Coudert
vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 17, 2023
    
This is changing two files in the posets folder.

- use a smaller doctest in one place
- replace one annoying use of `deepcopy` by the method `copy` of
`DiGraph`
- apply `ruff check --fix --select UP src/sage/combinat/posets` to make
a few automatic modifications, about strings mostly, and about the
syntax of `super`
- avoid one symbolic number in one doctest

### 馃摑 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#36440
Reported by: Fr茅d茅ric Chapoton
Reviewer(s): David Coudert
@vbraun vbraun merged commit 31d8d5b into sagemath:develop Oct 21, 2023
13 of 21 checks passed
@mkoeppe mkoeppe added this to the sage-10.2 milestone Oct 21, 2023
@fchapoton fchapoton deleted the try_ruff_in_posets branch October 24, 2023 07:39
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.

None yet

4 participants