Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
style: flake8, isort
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl committed Feb 8, 2021
1 parent 0b24982 commit 27ecd6e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
@@ -0,0 +1,9 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.7.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
3 changes: 2 additions & 1 deletion src/system/opc.py
Expand Up @@ -65,7 +65,8 @@ def getType(self):


class QualifiedValue(ABCMeta):
"""Represents a value with a DataQuality & timestamp attached to it."""
"""Represents a value with a DataQuality & timestamp attached to
it."""

def __new__(mcs, *args, **kwargs):
pass
Expand Down
4 changes: 2 additions & 2 deletions src/system/report.py
Expand Up @@ -55,8 +55,8 @@ def executeReport(path, project="project", parameters=None, fileType="pdf"):
path (str): The path to the existing report.
project (str): The name of the project where the report is
located. Optional in client scope.
parameters (dict): An optional dictionary of parameter overrides,
in the form name:value. Optional.
parameters (dict): An optional dictionary of parameter
overrides, in the form name:value. Optional.
fileType (str): The file type the resulting byte array should
represent. Defaults to "pdf". Not case-sensitive. Optional.
Expand Down
11 changes: 7 additions & 4 deletions src/system/tag.py
Expand Up @@ -70,7 +70,8 @@ def setTotalAvailableResults(self, totalAvailableResults):


class QualifiedValue(object):
"""Represents a value with a DataQuality & timestamp attached to it."""
"""Represents a value with a DataQuality & timestamp attached to
it."""

def __init__(self, value=None, quality=None, timestamp=None):
self._value = value
Expand Down Expand Up @@ -644,7 +645,8 @@ def queryTagCalculations(
hours, instead of using start and end date. Can be positive
or negative, and can be used in conjunction with startDate
or endDate. Optional.
rangeMinutes (int): Same as rangeHours, but in minutes. Optional.
rangeMinutes (int): Same as rangeHours, but in minutes.
Optional.
aliases (list[str]): Aliases that will be used to override the
tag path names in the result dataset. Must be 1-to-1 with
the tag paths. If not specified, the tag paths themselves
Expand Down Expand Up @@ -912,8 +914,9 @@ def scan(provider, scname):
the fast and slow rate are set to 0, this will not execute.
Args:
provider (str): The name of the scan class provider. If blank, it
will use the default. Required if used in the gateway scope.
provider (str): The name of the scan class provider. If blank,
it will use the default. Required if used in the gateway
scope.
scname (str): The name of the scan class to execute.
"""
print (provider, scname)
Expand Down
1 change: 0 additions & 1 deletion src/system/user.py
Expand Up @@ -30,7 +30,6 @@
]

import system.date

from java.lang import Object
from java.util import Locale

Expand Down

0 comments on commit 27ecd6e

Please sign in to comment.