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

Use Black for Consistent Formatting and Deprecate isort/yapf/flake8 #145

Merged
merged 8 commits into from
Sep 18, 2020

Conversation

ben-nathanson
Copy link

@ben-nathanson ben-nathanson commented Aug 8, 2020

This implements Black as our one-stop linter and removes isort/yapf/flake8. These are all great linting tools for different use cases but using Black here will help new contributors focus on writing code rather than formatting code.

This commit adds support for using black in the place of yapf,
flake8, isort. This includes CI/CD, documentation, and our pip
environment. Next steps will be to blacken the code itself (I
want a separate commit as that will be a big diff).
@ben-nathanson ben-nathanson added enhancement New feature or request documentation labels Aug 8, 2020
@ben-nathanson ben-nathanson self-assigned this Aug 8, 2020
@ben-nathanson
Copy link
Author

ben-nathanson commented Aug 8, 2020

The scraping step of our CI run timed out because the Allegheny County Authority for Improvements in Municipalities (AIM) website is not responding. The base domain has changed from county.allegheny.pa.us to alleghenycounty.us. Even after fixing the URL, it looks like the spider is failing to grab any events and could use a refactor.
I have created a separate ticket #146 to address the timeout problem which was unrelated to this PR.

I believe it should be safe to merge #145 once we fix the boto3 dependency issue. Once #145 is merged we will want to reach out to anyone with works in progress so that they can transition to black.

@ben-nathanson ben-nathanson linked an issue Aug 8, 2020 that may be closed by this pull request
@ben-nathanson ben-nathanson changed the title Blacken Use Black for Consistent Formatting and Deprecate isort/yapf/flake8 Aug 22, 2020
@ben-nathanson ben-nathanson merged commit a81b0a6 into master Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Black for Python Formatting
1 participant