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

DM-38425: Adopt current Safir conventions #245

Merged
merged 5 commits into from
May 10, 2023
Merged

DM-38425: Adopt current Safir conventions #245

merged 5 commits into from
May 10, 2023

Conversation

rra
Copy link
Member

@rra rra commented May 10, 2023

  • Enable blacken-docs and pydocstyle
  • Allow configuration of the path prefix using the standard Safir environment variable
  • Enable Slack reporting of uncaught exceptions from the route handlers
  • Use the Safir ClientRequestError framework
  • Fix the Makefile run target

rra added 5 commits May 10, 2023 08:17
Enable blacken-docs and pydocstyle linters, as well as the trailing
whitespace linter. Fix the docstrings to match pydocstyle's
expectations.
Follow our current standard for Safir apps and allow configuration
of the prefix for all routes.
Turn on the standard Safir machinery for reporting uncaught route
handler exceptions to Slack.
The Makefile run target was still using the aiohttp command. Use
tox run -e run instead.
Rather than using separate exception handlers for the exceptions
for unknown flocks and unknown monkeys, define those exceptions
using the Safir ClientRequestError framework and use the generic
exception handler from Safir. Rename those exceptions to end in
Error instead of Exception, following our normal naming conventions.
@rra rra merged commit f39c0d0 into main May 10, 2023
@rra rra deleted the tickets/DM-38425 branch May 10, 2023 17:54
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.

1 participant