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

Remove pyflakes? #30415

Closed
tobiasdiez opened this issue Aug 21, 2020 · 3 comments · Fixed by #35731
Closed

Remove pyflakes? #30415

tobiasdiez opened this issue Aug 21, 2020 · 3 comments · Fixed by #35731

Comments

@tobiasdiez
Copy link
Contributor

With #30361 and #30404 pyright is added as a static type checker. Besides type checking, it also includes almost all checks that are performed by pyflakes.

As far as I can see, the differences are as follows:

  • Pyright excels at type checking
  • Pyflakes has no support for type checking, and indeed is not even able to handle basic typing syntax (this would need among others Handle code guarded by 'if TYPE_CHECKING' correctly PyCQA/pyflakes#530, which seems to be stale)
  • Pyflakes checks for basic validity of the arguments to "format" and "print", this is not supported by pyright

So it depends on how important the print and format validation are. Maybe they are also covered by lgtm?

Resources:

Depending on the outcome, the stub documentation of pyflakes added in #30361 needs be extended or removed.

CC: @mkoeppe @fchapoton @mjungmath @kliem

Component: build

Issue created by migration from https://trac.sagemath.org/ticket/30415

@tobiasdiez tobiasdiez added this to the sage-9.3 milestone Aug 21, 2020
@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 30, 2020

@mkoeppe
Copy link
Contributor

mkoeppe commented Feb 13, 2021

comment:2

Setting new milestone based on a cursory review of ticket status, priority, and last modification date.

@mkoeppe mkoeppe modified the milestones: sage-9.3, sage-9.4 Feb 13, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.4, sage-9.5 Jul 19, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.5, sage-9.6 Dec 14, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.6, sage-9.7 Apr 7, 2022
@mkoeppe mkoeppe modified the milestones: sage-9.7, sage-9.8 Aug 31, 2022
@mkoeppe mkoeppe modified the milestones: sage-9.8, sage-9.9 Jan 7, 2023
@mkoeppe mkoeppe removed this from the sage-10.0 milestone Mar 16, 2023
@fchapoton
Copy link
Contributor

Can we close this one as invalid, given that the patchbot is gone away ? We should also remove the pyflakes pkg.

vbraun pushed a commit that referenced this issue Jun 11, 2023
    
<!-- Please provide a concise, informative and self-explanatory title.
-->
<!-- Don't put issue numbers in the title. Put it in the Description
below. -->
<!-- For example, instead of "Fixes #12345", use "Add a new method to
multiply two integers" -->

### 📚 Description

<!-- Describe your changes here in detail. -->
We remove this package; it is unused, and anyway all linters are
installed into tox environments.
<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes #12345". -->
Resolves #30415
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x
]`. -->

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

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- #12345: short description why this is a dependency
- #34567: ...
-->

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: #35731
Reported by: Matthias Köppe
Reviewer(s): Frédéric Chapoton
@mkoeppe mkoeppe added this to the sage-10.1 milestone Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants