diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 424ca11..c2a5779 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -69,7 +69,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -e . - pip install pycodestyle coverage coveralls==2.2.0 + pip install coverage coveralls==2.2.0 npm install -g jshint - name: Upgrade Django Version @@ -81,8 +81,11 @@ jobs: test -f ${CONF_PATH}/urls.py && cp ${CONF_PATH}/urls.py project/ test -f ${CONF_PATH}/settings.py && cat ${CONF_PATH}/settings.py >> project/settings.py - - name: Run Pycodestyle - run: pycodestyle ${APP_NAME}/ --exclude=migrations + - name: Run Python Linters + uses: uw-it-aca/actions/python-linters@main + with: + app_name: ${APP_NAME} + exclude_paths: 'migrations' - name: Run JSHint run: jshint ${APP_NAME}/static/${APP_NAME}/js --verbose diff --git a/grade_conversion_calculator/tests/test_views.py b/grade_conversion_calculator/tests/test_views.py index 725f2f2..e04c06f 100644 --- a/grade_conversion_calculator/tests/test_views.py +++ b/grade_conversion_calculator/tests/test_views.py @@ -1,3 +1,6 @@ +# Copyright 2021 UW-IT, University of Washington +# SPDX-License-Identifier: Apache-2.0 + from django.test import TestCase from django.urls import reverse diff --git a/grade_conversion_calculator/urls.py b/grade_conversion_calculator/urls.py index 10cb83b..9694e19 100644 --- a/grade_conversion_calculator/urls.py +++ b/grade_conversion_calculator/urls.py @@ -1,3 +1,6 @@ +# Copyright 2021 UW-IT, University of Washington +# SPDX-License-Identifier: Apache-2.0 + from django.urls import re_path from grade_conversion_calculator.views import demo diff --git a/grade_conversion_calculator/views.py b/grade_conversion_calculator/views.py index 1199b31..d8bb20d 100644 --- a/grade_conversion_calculator/views.py +++ b/grade_conversion_calculator/views.py @@ -1,3 +1,6 @@ +# Copyright 2021 UW-IT, University of Washington +# SPDX-License-Identifier: Apache-2.0 + from django.shortcuts import render