Skip to content

Commit

Permalink
Clean: precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleytrf committed Mar 15, 2024
1 parent 2256f3d commit 126fed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async_processor/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def to_input(self) -> Input:
class AMQPInputConfig(InputConfig):
type: constr(regex=r"^amqp$") = "amqp"
queue_url: constr(
regex=r'^(?:amqp|amqps):\/\/(?:([^:/?#\s]+)(?::([^@/?#\s]+))?@)?([^/?#\s]+)(?::(\d+))?\/?([^?#\s]*)?(?:\?(.*))?$'
regex=r"^(?:amqp|amqps):\/\/(?:([^:/?#\s]+)(?::([^@/?#\s]+))?@)?([^/?#\s]+)(?::(\d+))?\/?([^?#\s]*)?(?:\?(.*))?$"
)
queue_name: str
wait_time_seconds: conint(ge=1, le=20) = 5
Expand Down Expand Up @@ -306,7 +306,7 @@ class AMQPOutputConfig(OutputConfig):
type: constr(regex=r"^amqp$") = "amqp"

queue_url: constr(
regex=r'^(?:amqp|amqps):\/\/(?:([^:/?#\s]+)(?::([^@/?#\s]+))?@)?([^/?#\s]+)(?::(\d+))?\/?([^?#\s]*)?(?:\?(.*))?$'
regex=r"^(?:amqp|amqps):\/\/(?:([^:/?#\s]+)(?::([^@/?#\s]+))?@)?([^/?#\s]+)(?::(\d+))?\/?([^?#\s]*)?(?:\?(.*))?$"
)
queue_name: str
wait_time_seconds: confloat(ge=1) = 5
Expand Down

0 comments on commit 126fed2

Please sign in to comment.