Skip to content

Commit

Permalink
flake8 and minor corrections
Browse files Browse the repository at this point in the history
Signed-off-by: Vivswan Shah <58091053+Vivswan@users.noreply.github.com>
  • Loading branch information
Vivswan committed Jan 14, 2023
1 parent 6faa8c1 commit 1cd2bde
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions analogvnn/graph/AcyclicDirectedGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def add_edge(
self.graph.nodes[v_of_edge]['fillcolor'] = 'lightblue'
return self

@staticmethod
def check_edge_parameters( # noqa: C901
@staticmethod # noqa: C901
def check_edge_parameters(
in_arg: Union[None, int, bool],
in_kwarg: Union[None, str, bool],
out_arg: Union[None, int, bool],
Expand Down
3 changes: 1 addition & 2 deletions analogvnn/nn/module/Layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ def named_registered_children(
self,
memo: Optional[Set[nn.Module]] = None
) -> Iterator[Tuple[str, nn.Module]]:
"""Returns an iterator over immediate registered children modules, yielding both
the name of the module.
"""Returns an iterator over immediate registered children modules.
Args:
memo: a memo to store the set of modules already added to the result
Expand Down
2 changes: 1 addition & 1 deletion analogvnn/nn/module/Sequential.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ def add_sequence(self, *args):
Args:
*args (nn.Module): The modules to add.
"""

return self.extend(args)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ flake8 = [
"flake8-executable",
"flake8-coding",
"flake8-return",
"flake8-noreturn",
# "flake8-noreturn; python_version >= '3.8'",
"flake8-deprecated",
]
dev = [
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ torchaudio
numpy
scipy
networkx
importlib-metadata<5.0.0,>=2.0.0; python_version < "3.8"
importlib-metadata<5.0.0,>=2.0.0; python_version < '3.8'

# Full
tensorflow
tensorboard
tensorflow>=2.0.0
tensorboard>=2.0.0
torchinfo
pillow
# conda install python-graphviz graphviz
# conda install graphviz
graphviz
2 changes: 1 addition & 1 deletion requirements/requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ flake8-comprehensions
flake8-executable
flake8-coding
flake8-return
flake8-noreturn
# flake8-noreturn>=1.0.1; python_version >= '3.8'
flake8-deprecated

0 comments on commit 1cd2bde

Please sign in to comment.