You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2020/11/03 23:35:18 UTC
[airavata-django-portal] branch develop updated: FIxing travis
build, linting errors
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/develop by this push:
new c92a956 FIxing travis build, linting errors
c92a956 is described below
commit c92a956b412068bdbdddc86c349562b160cd9cac
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Nov 3 18:35:05 2020 -0500
FIxing travis build, linting errors
---
.travis.yml | 2 ++
django_airavata/apps/api/serializers.py | 2 +-
django_airavata/apps/api/views.py | 5 +----
requirements-dev.txt | 1 +
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 9e91f7d..f47bb78 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,6 +3,8 @@ python:
- "3.6"
- "3.7"
- "3.8"
+node_js:
+ - lts/*
install:
- pip install -r requirements-dev.txt
script:
diff --git a/django_airavata/apps/api/serializers.py b/django_airavata/apps/api/serializers.py
index 07f7a43..e8dc74b 100644
--- a/django_airavata/apps/api/serializers.py
+++ b/django_airavata/apps/api/serializers.py
@@ -5,6 +5,7 @@ import json
import logging
from urllib.parse import quote, urlencode
+import requests
from airavata.model.appcatalog.appdeployment.ttypes import (
ApplicationDeploymentDescription,
ApplicationModule,
@@ -63,7 +64,6 @@ from django.urls import reverse
from rest_framework import serializers
from . import models, thrift_utils
-import requests
log = logging.getLogger(__name__)
diff --git a/django_airavata/apps/api/views.py b/django_airavata/apps/api/views.py
index 786bd24..9c56603 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -30,10 +30,7 @@ from django.core.exceptions import ObjectDoesNotExist, PermissionDenied
from django.http import FileResponse, Http404, HttpResponse, JsonResponse
from django.urls import reverse
from rest_framework import mixins
-from rest_framework.decorators import (
- action,
- api_view,
-)
+from rest_framework.decorators import action, api_view
from rest_framework.exceptions import ParseError
from rest_framework.renderers import JSONRenderer
from rest_framework.response import Response
diff --git a/requirements-dev.txt b/requirements-dev.txt
index fde432f..91072bf 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -5,6 +5,7 @@ flake8-isort==4.0.0
isort==5.2.2
mkdocs==1.0.4
Markdown==3.2.1
+pycodestyle==2.3.1
tox==3.20.0
-e ".[dev]"