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

Create config for pre-commit and autoformatters+flake8 #362

Merged
merged 2 commits into from
Sep 28, 2021

Conversation

ianhi
Copy link
Collaborator

@ianhi ianhi commented Sep 27, 2021

Once pre-commit.ci is fully enabled then the pot should push the style fixes to this PR as a single commit. #360

@github-actions
Copy link
Contributor

Binder 👈 Launch a binder notebook on branch ianhi/ipympl/py-style

@ianhi
Copy link
Collaborator Author

ianhi commented Sep 27, 2021

Not enabled yet. But once enabled a close + reopen should trigger it

@martinRenou
Copy link
Member

martinRenou commented Sep 27, 2021

It should be enabled now, triggering CI

@martinRenou martinRenou reopened this Sep 27, 2021
rev: v2.19.0
hooks:
- id: pyupgrade
args: [--py37-plus]
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to do the same for eslint and prettier?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ianhi ianhi force-pushed the py-style branch 4 times, most recently from 72222db to fabb819 Compare September 27, 2021 14:43
Comment on lines 41 to 42
additional_dependencies:
- "@typescript-eslint/eslint-plugin"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think I need to add more things here before merging. not sure i got this right yet.

@ianhi ianhi marked this pull request as draft September 27, 2021 14:49
@ianhi ianhi force-pushed the py-style branch 4 times, most recently from a625167 to 87d2825 Compare September 28, 2021 01:58
@ianhi ianhi force-pushed the py-style branch 3 times, most recently from ae9103a to c9244b4 Compare September 28, 2021 02:04
@ianhi
Copy link
Collaborator Author

ianhi commented Sep 28, 2021

Only took 11 force pushes :) but we got there

@ianhi ianhi marked this pull request as ready for review September 28, 2021 02:06
@ianhi ianhi linked an issue Sep 28, 2021 that may be closed by this pull request
@martinRenou
Copy link
Member

Amazing. Thanks!

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

Successfully merging this pull request may close these issues.

Use precommit.ci?
2 participants