Skip to content

Can we add flake8, mypy and python black to this checklist ? #4712

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

Closed
QuantumNovice opened this issue Sep 5, 2021 · 11 comments
Closed

Can we add flake8, mypy and python black to this checklist ? #4712

QuantumNovice opened this issue Sep 5, 2021 · 11 comments

Comments

@QuantumNovice
Copy link
Contributor

QuantumNovice commented Sep 5, 2021

image
Most pull requests have pre-commit checks failing because the author haven't used it.

@QuantumNovice QuantumNovice changed the title Can we add flake8, mypy and black to this checklist ? Can we add flake8, mypy and python black to this checklist ? Sep 5, 2021
@poyea
Copy link
Member

poyea commented Sep 14, 2021

Doable. I suggest perhaps we can change some items to flake8, mypy and black. e.g. type hints <-> mypy

@AbhijithGanesh
Copy link

Would that mean addition of the packages to GitHub Actions ? If it is used for checking the code pushed in via PRs, can I work on it?

@poyea
Copy link
Member

poyea commented Sep 22, 2021

We already have it in place. Now we need to make it clearer in the list of our PR template.

@AbhijithGanesh
Copy link

AbhijithGanesh commented Sep 22, 2021

No, my question is, can we implement this through GH Actions which would enforce pep8 standards or fail the tests.

@poyea
Copy link
Member

poyea commented Sep 22, 2021

@AbhijithGanesh We've it here.

@AbhijithGanesh
Copy link

got it.

@joesinghh
Copy link
Contributor

Doable. I suggest perhaps we can change some items to flake8, mypy and black. e.g. type hints <-> mypy

do you mean changing type hint to mypy? like this?

  • All function parameters and return values are annotated with Python mypy.

I'm confused about how should I add black and flake8.

@joesinghh
Copy link
Contributor

  • Modified code follows black code style.
    @poyea could you tell me how can I add flake8 ?

@ren276
Copy link

ren276 commented Sep 28, 2021

its doable bro

joesinghh added a commit to joesinghh/Python that referenced this issue Sep 30, 2021
@cclauss cclauss closed this as completed Sep 30, 2021
@cclauss
Copy link
Member

cclauss commented Sep 30, 2021

Not needed as discussed in #4797

The more stuff that we ask contributors to fill out, the less likely that they will do so.

@joesinghh
Copy link
Contributor

point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants