Skip to content

Commit

Permalink
Run linters
Browse files Browse the repository at this point in the history
  • Loading branch information
svenseeberg committed Jan 30, 2024
1 parent 5a55f20 commit b824044
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions opendrift_leeway_webgui/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#: .. warning::
#: Never deploy a site into production with :setting:`DEBUG` turned on!
DEBUG = bool(strtobool(os.environ.get("LEEWAY_DEBUG", "False")))
DEBUG = True

#: The secret key for this particular Django installation (see :setting:`django:SECRET_KEY`)
#:
Expand Down
2 changes: 1 addition & 1 deletion opendrift_leeway_webgui/leeway/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
from .views import (
IndexRedirectView,
LeewaySimulationCreateView,
LeewaySimulationDeleteView,
LeewaySimulationDetailView,
LeewaySimulationDocumentation,
LeewaySimulationListView,
LeewaySimulationDeleteView,
)

#: The url patterns of this module (see :doc:`django:topics/http/urls`)
Expand Down
7 changes: 4 additions & 3 deletions opendrift_leeway_webgui/leeway/views.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponseForbidden, HttpResponseRedirect
from django.urls import reverse_lazy
from django.views.generic import TemplateView
from django.views.generic.base import RedirectView
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView
from django.views.generic.edit import CreateView, DeleteView
from django.views.generic.list import ListView
from django.views.generic.edit import DeleteView
from django.http import HttpResponseRedirect, HttpResponseForbidden

from .forms import LeewaySimulationForm
from .models import LeewaySimulation
Expand Down Expand Up @@ -105,10 +104,12 @@ class LeewaySimulationDetailView(LoginRequiredMixin, DetailView):
#: The model for this detail view
model = LeewaySimulation


class LeewaySimulationDeleteView(LoginRequiredMixin, DeleteView):
"""
View for rendering the simulation details
"""

model = LeewaySimulation
success_url = reverse_lazy("simulation_list")

Expand Down
2 changes: 0 additions & 2 deletions opendrift_leeway_webgui/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
import numpy as np

# pylint: disable=import-error
from cartopy.mpl import gridliner
from matplotlib import ticker
from matplotlib.collections import LineCollection
from matplotlib.colors import ListedColormap

# pylint: disable=import-error, disable=no-name-in-module
from opendrift.models.leeway import Leeway
from opendrift.readers import reader_global_landmask
Expand Down

0 comments on commit b824044

Please sign in to comment.