Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent 98f51c6 commit 536ecb0
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/dasmon_app/dasmon_listener/listener_daemon.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
DASMON listener daemon
"""

import sys
import argparse

Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/dasmon/legacy_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@author: M. Doucet, Oak Ridge National Laboratory
@copyright: 2015 Oak Ridge National Laboratory
"""

import httplib2
import json
import logging
Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/dasmon/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@author: M. Doucet, Oak Ridge National Laboratory
@copyright: 2015 Oak Ridge National Laboratory
"""

from django.db import models
from reporting.report.models import Instrument

Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/dasmon/view_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@author: M. Doucet, Oak Ridge National Laboratory
@copyright: 2014 Oak Ridge National Laboratory
"""

from reporting.report.models import Instrument, DataRun, WorkflowSummary
from reporting.dasmon.models import (
Parameter,
Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/pvmon/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@author: M. Doucet, Oak Ridge National Laboratory
@copyright: 2014 Oak Ridge National Laboratory
"""

from django.db import models
from reporting.report.models import Instrument

Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/pvmon/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Live PV monitoring
"""

from django.http import HttpResponse
from django.shortcuts import render, get_object_or_404
from django.urls import reverse
Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/reduction/view_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@author: M. Doucet, Oak Ridge National Laboratory
@copyright: 2014 Oak Ridge National Laboratory
"""

from django.conf import settings
from django.urls import reverse
import logging
Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/report/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
reporting app. The models are defined in the workflow manager and should be
installed on the system before running the app.
"""

from workflow.database.report.models import * # noqa: F401, F403
1 change: 1 addition & 0 deletions src/webmon_app/reporting/report/view_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@author: M. Doucet, Oak Ridge National Laboratory
@copyright: 2014 Oak Ridge National Laboratory
"""

import logging
import json
import datetime
Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/reporting_app/settings/develop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This is the settings to be used for a local developer build inside of docker"""

from .base import * # noqa
import ldap

Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/reporting_app/settings/envtest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This is the settings to be used for a remote test deploy"""

from .base import * # noqa

# symbols to make flake8 happy
Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/reporting_app/settings/prod.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This is the settings to be used for a remote production deploy"""

from .base import * # noqa
from os import environ

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This configuration is meant for running the unittests outside of docker"""

from .base import * # noqa
from .base import INSTALLED_APPS

Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/reporting_app/view_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@copyright: 2014 Oak Ridge National Laboratory
"""

from django.conf import settings
import logging

Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/reporting_app/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
framework.
"""

import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "reporting.reporting_app.settings.develop")
Expand Down
1 change: 1 addition & 0 deletions src/webmon_app/reporting/users/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
User management
"""

from django.shortcuts import render, redirect
from django.urls import reverse
from django.contrib.auth import login, logout, authenticate
Expand Down
1 change: 1 addition & 0 deletions src/workflow_app/workflow/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
To add an action for a specific queue, add a StateAction class
with the name of the queue in lower-case, replacing periods with underscores.
"""

from .state_utilities import logged_action
from .settings import POSTPROCESS_ERROR, CATALOG_DATA_READY
from .settings import REDUCTION_DATA_READY, REDUCTION_CATALOG_DATA_READY
Expand Down
1 change: 1 addition & 0 deletions src/workflow_app/workflow/workflow_process.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Actual process that each data run must go through.
"""

import json
import logging
import datetime
Expand Down
1 change: 1 addition & 0 deletions tests/simple_producer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Example of a simple non-listening producer
"""

import stomp
import json
import time
Expand Down
1 change: 1 addition & 0 deletions tests/workflow_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
ActiveMQ client used to issue commands to the post-processing workflow.
NOTE: Only works for runs that are already in the DB
"""

from report.models import Instrument, DataRun
from workflow.settings import BROKERS, ICAT_USER, ICAT_PASSCODE
import argparse
Expand Down

0 comments on commit 536ecb0

Please sign in to comment.