Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 22, 2024
1 parent fc4749c commit 4cbf874
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion py_dummy_service/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ def generic(path):
"form": request.form,
"remote_addr": request.remote_addr,
}
)
)
2 changes: 1 addition & 1 deletion py_dummy_service/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def generic_path(path):
return r.json(), r.status_code
except requests.exceptions.RequestException as e:
logging.error("%s", e)
return jsonify({"status": "service unavailable"}), 200
return jsonify({"status": "service unavailable"}), 200
2 changes: 1 addition & 1 deletion py_dummy_service/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ def handle_404(err):
@bp.app_errorhandler(500)
def handle_500(err):
logging.error("%s", err)
return jsonify(error=str(err)), 500
return jsonify(error=str(err)), 500
2 changes: 1 addition & 1 deletion py_dummy_service/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ def index():
app_version=__app_version__,
hostname=hostname,
ip=ip,
)
)
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ def test_path1(client):

def test_path2(client):
response = client.get("/api/v1/path2")
assert response.status_code == 200
assert response.status_code == 200
2 changes: 1 addition & 1 deletion tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#
# def test_be_path(client):
# response = client.get("/be/headers")
# assert response.status_code == 200
# assert response.status_code == 200
2 changes: 1 addition & 1 deletion tests/test_errors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
def test_not_found(client):
response = client.get("/notfound")
assert response.status_code == 404
assert response.status_code == 404
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def test_info(client):

def test_metrics(client):
response = client.get("/metrics")
assert response.status_code == 200
assert response.status_code == 200

0 comments on commit 4cbf874

Please sign in to comment.