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

include notebook nbqa as part of python lint #3548

Merged
merged 1 commit into from Aug 30, 2021

Conversation

RafalSkolasinski
Copy link
Member

What this PR does / why we need it:

Includes nbqa as part of python lint

Which issue(s) this PR fixes:

Fixes #2885

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

@axsaucedo
Copy link
Contributor

/approve

@seldondev
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: axsaucedo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@axsaucedo axsaucedo merged commit e30c82b into SeldonIO:master Aug 30, 2021
@MarcoGorelli
Copy link
Contributor

MarcoGorelli commented Sep 4, 2021

Just FYI, black now has a Jupyter hook, I'd advise switching to that from nbqa-black

@RafalSkolasinski
Copy link
Member Author

Hey @MarcoGorelli, thanks for the tip. I think currently we also use nbqa to call isort on notebooks - do you also plan to contribute that to the upstream project?

We adopted nbqa mostly to run black in notebooks indeed. Is your plan for nbqa to just contribute to upstream tools what they're missing and keep nbqa as a fallback?

@MarcoGorelli
Copy link
Contributor

Is your plan for nbqa to just contribute to upstream tools what they're missing and keep nbqa as a fallback?

Some (pyupgrade, mypy, flake8, pylint) would either certainly or almost certainly not accept a PR to support notebooks directly, so I'll keep maintaining nbqa for them.

I'd like to suggest this to isort too, but not in the near future

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.

Run black (nbQA) on notebooks as part of fmt/lint
4 participants