Skip to content

Commit

Permalink
Autoformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
oversize committed Aug 28, 2024
1 parent 8989091 commit 8576d5a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 18 deletions.
12 changes: 5 additions & 7 deletions src/blockperf/app.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
import sys
import collections
from datetime import datetime, timezone, timedelta
import json
import logging
import queue
import os
import queue
import sys
import threading
import time
from datetime import datetime, timedelta, timezone
from pathlib import Path

from blockperf import __version__ as blockperf_version
from blockperf.config import AppConfig

from blockperf.blocksample import BlockSample, slot_time_of
from blockperf.nodelogs import LogEventKind, LogEvent
from blockperf.config import AppConfig
from blockperf.mqtt import MQTTClient

from blockperf.nodelogs import LogEvent, LogEventKind

logger = logging.getLogger(__name__)

Expand Down
6 changes: 3 additions & 3 deletions src/blockperf/blocksample.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# import json
# import sys
# from enum import Enum
from typing import Union
from datetime import datetime, timezone
import logging
from datetime import datetime, timezone
from typing import Union

from blockperf import __version__ as blockperf_version

# from blockperf.config import AppConfig
from blockperf.nodelogs import LogEventKind, LogEvent
from blockperf.nodelogs import LogEvent, LogEventKind

# logging.basicConfig(level=logging.DEBUG, format="(%(threadName)-9s) %(message)s")
logger = logging.getLogger(__name__)
Expand Down
6 changes: 4 additions & 2 deletions src/blockperf/cli.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""CLI Entrypoint for blockperf"""
import logging
from logging.config import dictConfig

import argparse
import logging
import sys
from logging.config import dictConfig

import psutil

from blockperf.app import App
Expand Down
3 changes: 2 additions & 1 deletion src/blockperf/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
App Configuration is done either via Environment variables or the stdlib
configparser module.
"""

import ipaddress
import json
import logging
import os
import sys
import logging
from configparser import ConfigParser
from pathlib import Path
from typing import Union
Expand Down
8 changes: 5 additions & 3 deletions src/blockperf/mqtt.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
"""MQTT Client
"""
import sys
import logging

import json
import logging
import sys

from paho.mqtt.client import MQTTMessageInfo
from paho.mqtt.properties import Properties as Properties

try:
import paho.mqtt.client as mqtt
from paho.mqtt.properties import Properties
from paho.mqtt.packettypes import PacketTypes
from paho.mqtt.properties import Properties
except ImportError:
sys.exit(
"This script needs paho-mqtt package.\n"
Expand Down
4 changes: 2 additions & 2 deletions src/blockperf/nodelogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"""

import json
import logging
import sys
from datetime import datetime, timedelta, timezone
from enum import Enum
from typing import Union
from datetime import datetime, timezone, timedelta
import logging

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 8576d5a

Please sign in to comment.