Skip to content

Commit

Permalink
format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
azvoleff committed Jul 12, 2024
1 parent 0aba2a0 commit 8ce69ac
Show file tree
Hide file tree
Showing 16 changed files with 2 additions and 35 deletions.
2 changes: 0 additions & 2 deletions gee/download-data/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
2 changes: 0 additions & 2 deletions gee/drought-vulnerability/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
2 changes: 0 additions & 2 deletions gee/land-cover/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
2 changes: 0 additions & 2 deletions gee/landpks/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
2 changes: 0 additions & 2 deletions gee/productivity/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
2 changes: 0 additions & 2 deletions gee/restoration-biomass/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
2 changes: 0 additions & 2 deletions gee/sdg-15-3-1-error-recode/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
2 changes: 0 additions & 2 deletions gee/sdg-15-3-1-stats/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
2 changes: 0 additions & 2 deletions gee/sdg-15-3-1-sub-indicators/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
1 change: 0 additions & 1 deletion gee/soil-organic-carbon/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))

Expand Down
2 changes: 0 additions & 2 deletions gee/time-series/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
2 changes: 0 additions & 2 deletions gee/total-carbon/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
2 changes: 0 additions & 2 deletions gee/urban-area/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
import rollbar

from gefcore import logger

rollbar.init(os.getenv("ROLLBAR_SCRIPT_TOKEN"), os.getenv("ENV"))


Expand Down
7 changes: 2 additions & 5 deletions test/mock/mock_http_server.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import multiprocessing
import os
from threading import Thread

import requests
from flask import jsonify
from flask import request

from .trends_api_server_app import app
Expand All @@ -20,11 +17,11 @@ def __init__(self, port=5000):

try:
self.app.add_url_rule("/shutdown", view_func=self._shutdown_server)
except AssertionError as ae:
except AssertionError:
pass

def _shutdown_server(self):
if not "werkzeug.server.shutdown" in request.environ:
if "werkzeug.server.shutdown" not in request.environ:
raise RuntimeError("Error shutting down server")
request.environ["werkzeug.server.shutdown"]()
return "Shutting down"
Expand Down
1 change: 0 additions & 1 deletion test/mock/trends_api_server_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from pathlib import Path

from flask import Flask
from flask import request

app = Flask(__name__)

Expand Down
4 changes: 0 additions & 4 deletions test/test_calculate_ldn.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@

from mock.mock_http_server import MockApiServer
from qgis.core import QgsApplication
from qgis.core import QgsAuthManager
from qgis.core import QgsAuthMethodConfig
from qgis.PyQt import QtCore

from LDMP.api import APIClient
from LDMP.auth import AuthSetup
from LDMP.auth import get_auth_config
from LDMP.auth import init_auth_config
from LDMP.auth import TE_API_AUTH_SETUP
from LDMP.conf import KNOWN_SCRIPTS
from LDMP.jobs.manager import job_manager
from LDMP.jobs.models import Job
Expand Down

0 comments on commit 8ce69ac

Please sign in to comment.