Skip to content

Commit

Permalink
fix more linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed May 10, 2023
1 parent 93b0726 commit fcf3f9d
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 30 deletions.
1 change: 0 additions & 1 deletion bplan/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import viewsets
from rest_framework.pagination import PageNumberPagination
from rest_framework_gis.filters import DistanceToPointFilter
from rest_framework_gis.filters import InBBoxFilter
from rest_framework_gis.pagination import GeoJsonPagination

Expand Down
7 changes: 1 addition & 6 deletions bplan/filters.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
from django.contrib.gis.geos import Point
from django.contrib.gis.measure import D
from django.db.models import Q
from django.utils import timezone
from rest_framework import filters
from rest_framework_gis import filters as gis_filters

from .models import Bezirk
from .models import Ortsteil


class StatusFilter(filters.BaseFilterBackend):
Expand Down Expand Up @@ -101,7 +96,7 @@ def get_filter_point(self, request):
try:
(x, y) = (float(n) for n in point_string.split(","))
except ValueError:
raise ParseError(
raise Exception(
"Invalid geometry string supplied for parameter {0}".format(
self.point_param
)
Expand Down
3 changes: 0 additions & 3 deletions bplan/forms.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth import login
from django.contrib.auth import logout
from django.forms import ModelForm


class LoginForm(forms.Form):
Expand Down
4 changes: 0 additions & 4 deletions bplan/management/commands/insert_addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@
Here you may find your .gml file with all addresses of Berlin
"""

import json
import os
import xml.etree.ElementTree as etree

from django.conf import settings
from django.contrib.gis.gdal import DataSource
from django.contrib.gis.geos import GEOSGeometry
from django.contrib.gis.geos import Point
from django.core.management.base import BaseCommand
from django.utils.text import slugify
from tqdm import tqdm

from bplan.models import Address
Expand Down
9 changes: 0 additions & 9 deletions bplan/management/commands/insert_numberless_addresses.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import json
import os

from django.conf import settings
from django.contrib.gis.gdal import DataSource
from django.contrib.gis.geos import GEOSGeometry
from django.contrib.gis.geos import Point
from django.core.management.base import BaseCommand
from django.db.models import Min
from django.utils.text import slugify
from tqdm import tqdm

from bplan.models import Address
from bplan.models import Bezirk
Expand Down
1 change: 0 additions & 1 deletion bplan/management/commands/load_bezirke.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import os

from django.conf import settings
Expand Down
1 change: 0 additions & 1 deletion bplan/management/commands/load_ortsteile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import os

from django.conf import settings
Expand Down
1 change: 0 additions & 1 deletion bplan/management/commands/populate_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import sys
from os.path import dirname

from django.core.management import call_command
from django.core.management.base import BaseCommand

SHELL_SCRIPT = """
Expand Down
2 changes: 0 additions & 2 deletions bplan/serializers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from datetime import datetime

from django.contrib.gis.geos import Point
from django.utils import timezone
from rest_framework import serializers
Expand Down
2 changes: 0 additions & 2 deletions bplan/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
from django.test import TestCase

# Create your tests here.

0 comments on commit fcf3f9d

Please sign in to comment.