Skip to content

Commit

Permalink
consistent formatting betweent python version
Browse files Browse the repository at this point in the history
  • Loading branch information
esseivaju committed Oct 4, 2024
1 parent 154953e commit 963c57d
Show file tree
Hide file tree
Showing 24 changed files with 3 additions and 29 deletions.
1 change: 0 additions & 1 deletion bin/validate-raythena-job.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import json
import os.path as path
from array import array

import ROOT


Expand Down
1 change: 0 additions & 1 deletion example/standalone_ray_test_hello_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import platform
import time
from pprint import pprint

import ray


Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ ignore = [
# pycodestyle
"E501",
]

[tool.ruff.lint.isort]
no-lines-before = ["third-party", "first-party", "standard-library"]
2 changes: 0 additions & 2 deletions src/raythena/actors/esworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
from socket import gethostname
from time import sleep
from typing import Any, Optional, Union

import ray

# from raythena.utils.timing import CPUMonitor
from raythena.actors.payloads.basePayload import BasePayload
from raythena.actors.payloads.eventservice.esPayload import ESPayload
Expand Down
1 change: 0 additions & 1 deletion src/raythena/actors/payloads/basePayload.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from abc import ABC, abstractmethod
from typing import Any, Optional

from raythena.utils.config import Config
from raythena.utils.eventservice import PandaJob

Expand Down
1 change: 0 additions & 1 deletion src/raythena/actors/payloads/eventservice/esPayload.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from abc import abstractmethod
from collections.abc import Sequence
from typing import Optional

from raythena.actors.payloads.basePayload import BasePayload
from raythena.utils.config import Config
from raythena.utils.eventservice import EventRange
Expand Down
2 changes: 0 additions & 2 deletions src/raythena/actors/payloads/eventservice/pilothttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
from subprocess import DEVNULL, Popen
from typing import Callable, Optional
from urllib.parse import parse_qs

import uvloop
from aiohttp import web

from raythena.actors.payloads.eventservice.esPayload import ESPayload
from raythena.utils.config import Config
from raythena.utils.eventservice import ESEncoder, EventRange, PandaJob
Expand Down
1 change: 0 additions & 1 deletion src/raythena/drivers/baseDriver.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from abc import ABC, abstractmethod

from raythena.utils.config import Config


Expand Down
1 change: 0 additions & 1 deletion src/raythena/drivers/communicators/baseCommunicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from collections.abc import Mapping, Sequence
from queue import Queue
from typing import Union

from raythena.utils.config import Config
from raythena.utils.eventservice import (
EventRangeDef,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import shutil
import time
from queue import Queue

from raythena.drivers.communicators.baseCommunicator import BaseCommunicator
from raythena.utils.config import Config
from raythena.utils.eventservice import (
Expand Down
1 change: 0 additions & 1 deletion src/raythena/drivers/communicators/harvesterMock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import random
import time
from queue import Queue

from raythena.drivers.communicators.baseCommunicator import BaseCommunicator
from raythena.utils.config import Config
from raythena.utils.eventservice import (
Expand Down
1 change: 0 additions & 1 deletion src/raythena/drivers/communicators/harvesterMock2205.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import random
import time
from queue import Queue

from raythena.drivers.communicators.harvesterMock import HarvesterMock
from raythena.utils.config import Config
from raythena.utils.eventservice import PandaJobRequest
Expand Down
2 changes: 0 additions & 2 deletions src/raythena/drivers/esdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
Any,
Optional,
)

import ray
from ray.exceptions import RayActorError
from ray.types import ObjectRef

from raythena import __version__
from raythena.actors.esworker import ESWorker, WorkerResponse
from raythena.drivers.baseDriver import BaseDriver
Expand Down
2 changes: 0 additions & 2 deletions src/raythena/scripts/raythena.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import signal
import traceback
import types

import click

from raythena.drivers.baseDriver import BaseDriver
from raythena.drivers.esdriver import ESDriver
from raythena.utils.config import Config
Expand Down
1 change: 0 additions & 1 deletion src/raythena/utils/bookkeeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Optional,
Union,
)

from raythena.utils.config import Config
from raythena.utils.eventservice import (
EventRange,
Expand Down
1 change: 0 additions & 1 deletion src/raythena/utils/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os

import yaml


Expand Down
1 change: 0 additions & 1 deletion src/raythena/utils/logging.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging
import sys
from time import gmtime

from raythena.utils.config import Config

_initialized = False
Expand Down
2 changes: 0 additions & 2 deletions src/raythena/utils/ray.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from collections.abc import Mapping
from typing import Any

import ray

from raythena.utils.config import Config


Expand Down
2 changes: 0 additions & 2 deletions src/raythena/utils/timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import time
from threading import Event
from typing import Any, Union

import psutil

from raythena.utils.exception import ExThread


Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import hashlib
import time

import pytest
from raythena.utils.config import Config
from raythena.utils.ray import setup_ray, shutdown_ray
Expand Down
1 change: 0 additions & 1 deletion tests/harvester/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import queue

import pytest
from raythena.drivers.communicators.harvesterFileMessenger import (
HarvesterFileCommunicator,
Expand Down
1 change: 0 additions & 1 deletion tests/harvester/test_harvesterFileMessenger.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json
import os
import time

from raythena.utils.eventservice import EventRangeRequest, PandaJobRequest


Expand Down
1 change: 0 additions & 1 deletion tests/test_pilothttp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import time

import pytest
import requests
from raythena.actors.payloads.eventservice.pilothttp import PilotHttpPayload
Expand Down
1 change: 0 additions & 1 deletion tests/test_ray_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import socket

import pytest
from raythena.utils.ray import (
build_nodes_resource_list,
Expand Down

0 comments on commit 963c57d

Please sign in to comment.