Skip to content

Commit

Permalink
linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Jan 8, 2025
1 parent 51c463c commit 6920404
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 26 deletions.
2 changes: 0 additions & 2 deletions fedn/cli/run_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
import click
import yaml

from fedn.cli.client_cmd import validate_client_config
from fedn.cli.main import main
from fedn.cli.shared import apply_config
from fedn.common.exceptions import InvalidClientConfig
from fedn.common.log_config import logger
from fedn.utils.dispatcher import Dispatcher, _read_yaml_file

Expand Down
1 change: 0 additions & 1 deletion fedn/network/api/v1/package_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from fedn.network.api.shared import package_store, repository
from fedn.network.api.v1.shared import api_version, get_post_data_to_kwargs, get_typed_list_headers
from fedn.network.storage.statestore.stores.shared import EntityNotFound
from fedn.utils.checksum import sha

bp = Blueprint("package", __name__, url_prefix=f"/api/{api_version}/packages")

Expand Down
2 changes: 0 additions & 2 deletions fedn/network/combiner/interfaces.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import base64
import copy
import json
import time
from io import BytesIO

import grpc

Expand Down
2 changes: 0 additions & 2 deletions fedn/network/controller/controlbase.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import os
from abc import ABC, abstractmethod
from datetime import datetime
from time import sleep
from typing import Any, Tuple

import pymongo

import fedn.utils.helpers.helpers
from fedn.common.log_config import logger
Expand Down
7 changes: 3 additions & 4 deletions fedn/network/storage/statestore/stores/model_store.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from abc import abstractmethod
from datetime import datetime
from typing import Any, Dict, List, Optional, Tuple
from typing import Any, Dict, List, Tuple

import pymongo
from bson import ObjectId
from pymongo.database import Database
from sqlalchemy import ForeignKey, String, func, select, union_all
from sqlalchemy.orm import Mapped, aliased, mapped_column, relationship
from sqlalchemy import func, select
from sqlalchemy.orm import aliased
from sqlalchemy.sql import text
from werkzeug.utils import secure_filename

from fedn.network.storage.statestore.stores.shared import EntityNotFound, from_document
from fedn.network.storage.statestore.stores.sql_models import ModelModel
Expand Down
4 changes: 2 additions & 2 deletions fedn/network/storage/statestore/stores/prediction_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import pymongo
from pymongo.database import Database
from sqlalchemy import ForeignKey, Integer, String, and_, func, or_, select
from sqlalchemy.orm import Mapped, mapped_column, relationship
from sqlalchemy import ForeignKey, String, func, select
from sqlalchemy.orm import Mapped, mapped_column
from sqlalchemy.sql import text

from fedn.network.storage.statestore.stores.shared import EntityNotFound
Expand Down
7 changes: 3 additions & 4 deletions fedn/network/storage/statestore/stores/round_store.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
from abc import abstractmethod
from typing import Any, Dict, List, Optional, Tuple
from typing import Any, Dict, List, Tuple

import pymongo
from bson import ObjectId
from pymongo.database import Database
from sqlalchemy import ForeignKey, Integer, String, and_, func, or_, select
from sqlalchemy.orm import Mapped, mapped_column, relationship
from sqlalchemy import Integer, func, or_, select
from sqlalchemy.sql import text

from fedn.network.storage.statestore.stores.sql_models import RoundCombinerModel, RoundConfigModel, RoundDataModel, RoundModel
from fedn.network.storage.statestore.stores.store import MongoDBStore, MyAbstractBase, Session, SQLStore, Store
from fedn.network.storage.statestore.stores.store import MongoDBStore, Session, SQLStore, Store

from .shared import EntityNotFound, from_document

Expand Down
7 changes: 2 additions & 5 deletions fedn/network/storage/statestore/stores/session_store.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import datetime
import json
import uuid
from typing import Any, Dict, List, Optional, Tuple
from typing import Any, Dict, List, Tuple

import pymongo
from bson import ObjectId
from pymongo.database import Database
from sqlalchemy import ForeignKey, String, func, select
from sqlalchemy.orm import Mapped, mapped_column, relationship
from sqlalchemy import func, select
from sqlalchemy.sql import text
from werkzeug.utils import secure_filename

from fedn.network.storage.statestore.stores.shared import EntityNotFound, from_document
from fedn.network.storage.statestore.stores.sql_models import SessionConfigModel, SessionModel
Expand Down
4 changes: 2 additions & 2 deletions fedn/network/storage/statestore/stores/status_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import pymongo
from pymongo.database import Database
from sqlalchemy import ForeignKey, Integer, String, and_, func, or_, select
from sqlalchemy.orm import Mapped, mapped_column, relationship
from sqlalchemy import ForeignKey, String, func, select
from sqlalchemy.orm import Mapped, mapped_column
from sqlalchemy.sql import text

from fedn.network.storage.statestore.stores.shared import EntityNotFound
Expand Down
4 changes: 2 additions & 2 deletions fedn/network/storage/statestore/stores/validation_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import pymongo
from pymongo.database import Database
from sqlalchemy import ForeignKey, Integer, String, and_, func, or_, select
from sqlalchemy.orm import Mapped, mapped_column, relationship
from sqlalchemy import ForeignKey, String, func, select
from sqlalchemy.orm import Mapped, mapped_column
from sqlalchemy.sql import text

from fedn.network.storage.statestore.stores.shared import EntityNotFound
Expand Down

0 comments on commit 6920404

Please sign in to comment.