From 839a417fcf26e0c7237780be2260632bc34bdcb8 Mon Sep 17 00:00:00 2001 From: KoalaGeo Date: Tue, 25 Apr 2023 15:34:22 +0100 Subject: [PATCH] Remove exit-zero on flake8 --- .github/workflows/lint_and_test.yml | 4 ++-- app/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml index 5961df98..775a5b65 100644 --- a/.github/workflows/lint_and_test.yml +++ b/.github/workflows/lint_and_test.yml @@ -35,12 +35,12 @@ jobs: - name: Lint app/ with flake8 run: | # exit-zero treats all errors as warnings. - flake8 app/ --exit-zero + flake8 app/ - name: Lint test/ with flake8 run: | # exit-zero treats all errors as warnings. - flake8 test/ --exit-zero + flake8 test/ - name: Test with pytest run: | diff --git a/app/main.py b/app/main.py index 162f8e60..f84b771f 100644 --- a/app/main.py +++ b/app/main.py @@ -96,7 +96,7 @@ def custom_openapi(): license_info={ "name": "Open Government Licence v3", "url": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", - }, + }, routes=app.routes, ) openapi_schema["info"]["x-logo"] = {