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

Format code #173

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Format code #173

wants to merge 3 commits into from

Conversation

kurtmckee
Copy link

This PR introduces black and isort as pre-commit hooks.

For now, the project's generated files are excluded from black's reformatting instead of making the generated output match.

Please let me know if additional changes are needed.

Note

If this merges, I strongly recommend enabling pre-commit.ci for this project so that incoming PRs are automatically subjected to linting and reformatting.

In addition, enabling pre-commit.ci will cause the service to submit PRs on a quarterly basis (if needed) to update the hook versions in .pre-commit-config.yaml.

Closes #157

Also, configure isort to use compatible formatting.
This also addresses a formatting discrepancy in `idna-data`
so that it aligns with the isort formatting.
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 code formatter on source
1 participant