Skip to content

Commit

Permalink
add exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvaladi committed May 8, 2024
1 parent 8ebe64d commit 425c352
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/mnist-pytorch/client/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
import torch
from model import load_parameters, save_parameters

from data import load_data
from fedn.utils.helpers.helpers import save_metadata

from .data import load_data

dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.abspath(dir_path))

Expand Down
3 changes: 1 addition & 2 deletions examples/mnist-pytorch/client/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
import torch
from model import load_parameters

from data import load_data
from fedn.utils.helpers.helpers import save_metrics

from .data import load_data

dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.abspath(dir_path))

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ lint.ignore = [
"B007", # Loop control variable `v` not used within loop body
"N806", # Variable `X_test` in function should be lowercase
"SIM103", # Return the condition directly
"I001", # [*] Import block is un-sorted or un-formatted

# unsafe?
"S104", # Possible binding to all interfaces
Expand Down

0 comments on commit 425c352

Please sign in to comment.