diff --git a/.github/workflows/incremental-coverage-test.yml b/.github/workflows/incremental-coverage-test.yml index 8e155ef7..4d675194 100644 --- a/.github/workflows/incremental-coverage-test.yml +++ b/.github/workflows/incremental-coverage-test.yml @@ -1,5 +1,5 @@ name: Coverage check -on: [push, pull_request] +on: [pull_request] jobs: lint: name: Code coverage @@ -37,14 +37,3 @@ jobs: gh_token: ${{ secrets.GITHUB_TOKEN }} pr_number: ${{github.event.pull_request.number}} if: github.event_name == 'pull_request' - - - name: Coverage check on push - uses: velis74/incremental-coverage-check@main - with: - py_coverage_json: coverage.json - base_ref: ${{ github.event.before }} - head_ref: HEAD - rep_ref: main - logging_level: INFO - gh_token: ${{ secrets.GITHUB_TOKEN }} - if: github.event_name == 'push' diff --git a/django_project_base/urls.py b/django_project_base/urls.py index 64349f2f..3efccb27 100644 --- a/django_project_base/urls.py +++ b/django_project_base/urls.py @@ -5,19 +5,21 @@ from django_project_base.router import django_project_base_router from django_project_base.views import browser_update_script -SPECTACULAR_DEFAULTS['TITLE'] = 'Rest documentation' -SPECTACULAR_DEFAULTS['DESCRIPTION'] = 'Api documentation' -SPECTACULAR_DEFAULTS['VERSION'] = '0.0.1' -SPECTACULAR_DEFAULTS['PREPROCESSING_HOOKS'] = [ - 'django_project_base.router.filter_rest_documentation_endpoints' +SPECTACULAR_DEFAULTS["TITLE"] = "Rest documentation" +SPECTACULAR_DEFAULTS["DESCRIPTION"] = "Api documentation" +SPECTACULAR_DEFAULTS["VERSION"] = "0.0.1" +SPECTACULAR_DEFAULTS["PREPROCESSING_HOOKS"] = [ + "django_project_base.router.filter_rest_documentation_endpoints" ] -SPECTACULAR_DEFAULTS['POSTPROCESSING_HOOKS'] = [ - 'django_project_base.router.postprocess_rest_documentation' +SPECTACULAR_DEFAULTS["POSTPROCESSING_HOOKS"] = [ + "django_project_base.router.postprocess_rest_documentation" ] urlpatterns = [ - path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'), - re_path('browser-update/js-script', browser_update_script, name='browser-update-script'), - re_path(r'', include(django_project_base_router.urls)), + path("jsi18n/", JavaScriptCatalog.as_view(), name="javascript-catalog"), + re_path( + "browser-update/js-script", browser_update_script, name="browser-update-script" + ), + re_path(r"", include(django_project_base_router.urls)), ]