Skip to content

Commit

Permalink
fix: pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
penglei0 committed Dec 7, 2024
1 parent 57919fd commit 22669a6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/.github.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
- name: Run Pylint
run: |
# ignore all *_unittest.py files
pylint --ignore-patterns=".*_unittest.py" $(git ls-files '*.py') --rcfile=${{ github.workspace }}/.pylintrc
pylint --ignore-patterns=".*_unittest.py" --disable=unused-argument $(git ls-files '*.py') --rcfile=${{ github.workspace }}/.pylintrc
- name: Run Unit tests
run: |
Expand Down
1 change: 1 addition & 0 deletions src/containernet/containernet_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(self,
routing_strategy: IRoutingStrategy,
** params) -> None:
super().__init__(**params)
self.is_started_flag = False
self.containernet = Containernet()
self.routing_strategy = routing_strategy
self.hosts = []
Expand Down
2 changes: 1 addition & 1 deletion src/protosuites/proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, config: ProtoConfig):
if not os.path.exists(f"{self.log_dir}"):
os.makedirs(f"{self.log_dir}")

self.protocol_args = ''
self.protocol_args: str = ''
if self.config.args:
for arg in self.config.args:
self.protocol_args += arg + ' '
Expand Down
1 change: 1 addition & 0 deletions src/testbed/testbed_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def __init__(self,
routing_strategy: IRoutingStrategy,
** params) -> None:
super().__init__(**params)
self.is_started_flag = False
self.routing_strategy = routing_strategy
self.hosts = []
self.hosts_conf = hosts_config
Expand Down

0 comments on commit 22669a6

Please sign in to comment.