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

Add isort precommit hook & run on all files #743

Merged
merged 3 commits into from
May 28, 2018

Conversation

dan98765
Copy link
Contributor

  1. Add isort & seed-isort-config pre-commit hooks to .pre-commit-config.yaml
  2. Update pre-commit hooks via pre-commit autoupdate (in a virtualenv)
  3. tox -e pre-commit to run pre-commit hooks on all files

This PR is an alternative to #734 where the simpler reorder-python-imports pre-commit hook was added. @jkimbo and @syrusakbary prefer isort, so I'm creating this one instead. I truly don't care which import sorter is used, but I really like having one in there to avoid having to sort my own imports. :)

Copy link
Member

@jkimbo jkimbo left a comment

Choose a reason for hiding this comment

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

Looks good thanks!

@jkimbo jkimbo requested a review from syrusakbary May 28, 2018 08:23
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

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

Good to merge!

@jkimbo jkimbo merged commit 034b538 into graphql-python:master May 28, 2018
@dan98765 dan98765 deleted the add_isort_precommit_hook branch May 28, 2018 19:21
@dan98765
Copy link
Contributor Author

🍻👍

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.

3 participants