Skip to content

Commit

Permalink
Update on black version and remove spaces
Browse files Browse the repository at this point in the history
Update on the usage of the Black version, which
resolves the problem of removing leading and trailing
spaces in one-line docstrings.
psf/black#1740
  • Loading branch information
Miha Dolinar committed Apr 30, 2021
1 parent 37436d6 commit 472a993
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/examples/resource_clients.py
Expand Up @@ -792,7 +792,7 @@ def demo_users(client):

user = client.users.create(
metadata={},
spec={"username": "demo_user", "password":"demouserpassword"},
spec={"username": "demo_user", "password": "demouserpassword"},
)
print_cluster_resource(user)

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -45,7 +45,7 @@ install_requires =

[options.extras_require]
dev =
black
black >= 21.4b2
flake8
mypy
pytest >= 6, < 7
Expand Down
8 changes: 4 additions & 4 deletions src/sensu_go/errors.py
Expand Up @@ -2,15 +2,15 @@


class SensuError(Exception):
""" Base exception for the sensu-go package. """
"""Base exception for the sensu-go package."""


class HTTPError(SensuError):
""" Error that indicates a problem with backend connection. """
"""Error that indicates a problem with backend connection."""


class ResponseError(SensuError):
""" Error that indicates a problem with backend's response. """
"""Error that indicates a problem with backend's response."""

def __init__(self, msg: str, url: str, status: int, text: str) -> None:
self.url = url
Expand All @@ -23,4 +23,4 @@ def __init__(self, msg: str, url: str, status: int, text: str) -> None:


class AuthError(ResponseError):
""" Error that indicates a problem with credentials. """
"""Error that indicates a problem with credentials."""

0 comments on commit 472a993

Please sign in to comment.