Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docstrings and typehints with github co-pilot #317

Merged
merged 6 commits into from
Aug 3, 2024
Merged

Conversation

jan-janssen
Copy link
Member

@jan-janssen jan-janssen commented Aug 3, 2024

Summary by CodeRabbit

  • New Features

    • Enhanced type safety and documentation throughout various modules.
    • Improved clarity and usability of functions with detailed docstrings.
  • Bug Fixes

    • Corrected type annotations to ensure consistency and clarity across method signatures.
  • Documentation

    • Expanded and clarified docstrings for numerous functions, improving guidance for developers.
  • Refactor

    • Updated function signatures for better type clarity and safety without altering existing logic.
  • Chores

    • Cleaned up code to adhere to consistent style and annotation practices.

Copy link

coderabbitai bot commented Aug 3, 2024

Warning

Rate limit exceeded

@jan-janssen has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 13 minutes and 30 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 6750d3d and ca668a7.

Walkthrough

The recent changes across various modules in the pysqa project enhance documentation and type safety through refined docstrings and type annotations. Key functions and classes now clearly specify their parameters and return types, significantly improving code readability and maintainability. These updates ensure clear guidance for developers while preserving the existing logic and functionality of the code.

Changes

Files Change Summary
pysqa/cmd.py, pysqa/executor/backend.py, pysqa/executor/executor.py, pysqa/executor/helper.py, pysqa/utils/queues.py, pysqa/ext/remote.py Added comprehensive docstrings and type annotations to functions and classes, improving documentation clarity and type safety without altering core functionality.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant CommandLine
    participant BackendExecutor
    participant Helper
    User->>CommandLine: execute_command(arguments)
    CommandLine->>BackendExecutor: execute_files_from_list()
    BackendExecutor->>Helper: find_executed_tasks()
    Helper-->>BackendExecutor: tasks_in_progress
    BackendExecutor-->>CommandLine: execution_result
    CommandLine-->>User: display_result()
Loading

🐇 "In a world where code does dance,
Improvements made, a fine romance.
With types and docs so bright and clear,
Developers smile, they have no fear.
So hop along, let's celebrate,
With clean code, we elevate!" 🎉


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 639ad21 and 8549a55.

Files selected for processing (19)
  • pysqa/cmd.py (1 hunks)
  • pysqa/executor/backend.py (3 hunks)
  • pysqa/executor/executor.py (3 hunks)
  • pysqa/executor/helper.py (4 hunks)
  • pysqa/ext/modular.py (6 hunks)
  • pysqa/ext/remote.py (14 hunks)
  • pysqa/queueadapter.py (11 hunks)
  • pysqa/utils/basic.py (18 hunks)
  • pysqa/utils/config.py (1 hunks)
  • pysqa/utils/execute.py (2 hunks)
  • pysqa/utils/queues.py (1 hunks)
  • pysqa/wrapper/flux.py (1 hunks)
  • pysqa/wrapper/generic.py (1 hunks)
  • pysqa/wrapper/gent.py (2 hunks)
  • pysqa/wrapper/lsf.py (1 hunks)
  • pysqa/wrapper/moab.py (1 hunks)
  • pysqa/wrapper/sge.py (1 hunks)
  • pysqa/wrapper/slurm.py (2 hunks)
  • pysqa/wrapper/torque.py (1 hunks)
Files skipped from review due to trivial changes (7)
  • pysqa/cmd.py
  • pysqa/utils/config.py
  • pysqa/wrapper/flux.py
  • pysqa/wrapper/generic.py
  • pysqa/wrapper/lsf.py
  • pysqa/wrapper/moab.py
  • pysqa/wrapper/torque.py
Additional context used
Ruff
pysqa/utils/queues.py

11-11: Undefined name List

(F821)


40-40: Undefined name List

(F821)

pysqa/executor/helper.py

133-133: Undefined name List

(F821)

pysqa/ext/remote.py

598-598: Undefined name Union

(F821)


598-598: Undefined name List

(F821)

Additional comments not posted (72)
pysqa/utils/queues.py (1)

21-34: Fix the undefined name List.

The type hint List[str] requires importing List from the typing module.

+ from typing import List

Likely invalid or redundant comment.

pysqa/utils/execute.py (2)

12-24: LGTM!

The type annotations and docstring are correct and complete.


3-3: Fix the undefined name List.

The type hint List[str] requires importing List from the typing module.

+ from typing import List

Likely invalid or redundant comment.

pysqa/wrapper/sge.py (5)

25-25: LGTM!

The docstring is correct and complete.


30-30: LGTM!

The docstring is correct and complete.


35-35: LGTM!

The docstring is correct and complete.


40-40: LGTM!

The docstring is correct and complete.


45-53: LGTM!

The docstring is correct and complete.

pysqa/wrapper/slurm.py (6)

24-24: Docstring added for submit_job_command.

The docstring clearly describes the purpose of the property. The type hint list[str] is appropriate.


29-29: Docstring added for delete_job_command.

The docstring clearly describes the purpose of the property. The type hint list[str] is appropriate.


34-34: Docstring added for get_queue_status_command.

The docstring clearly describes the purpose of the property. The type hint list[str] is appropriate.


39-39: Docstring added for get_job_id_from_output.

The docstring clearly describes the purpose of the method. The type hint int is appropriate.


44-44: Docstring added for convert_queue_status.

The docstring clearly describes the purpose of the method. The type hint pandas.DataFrame is appropriate.


75-76: Docstring and type hint added for dependencies.

The docstring clearly describes the purpose of the method. The type hint list[str] is appropriate.

pysqa/executor/backend.py (4)

18-28: Docstring and return type hint added for execute_files_from_list.

The docstring clearly describes the purpose of the function and its parameters. The return type hint None is appropriate.


56-65: Docstring and return type hint added for execute_tasks.

The docstring clearly describes the purpose of the function and its parameters. The return type hint None is appropriate.


85-94: Docstring and return type hint added for command_line.

The docstring clearly describes the purpose of the function and its parameters. The return type hint None is appropriate.


99-99: Ensure proper type conversion for cores_arg.

The explicit conversion of cores_arg to an integer ensures type safety.

pysqa/wrapper/gent.py (4)

24-33: Docstring added for get_job_id_from_output.

The docstring clearly describes the purpose of the method. The type hint int is appropriate.


38-47: Docstring added for get_queue_from_output.

The docstring clearly describes the purpose of the method. The type hint str is appropriate.


52-61: Docstring added for convert_queue_status.

The docstring clearly describes the purpose of the method. The type hint pandas.DataFrame is appropriate.


85-98: Docstring and type hint added for dependencies.

The docstring clearly describes the purpose of the method. The type hint list[str] is appropriate. The docstring also specifies the potential NotImplementedError, which is a good practice.

pysqa/executor/executor.py (3)

24-31: Docstring added for __init__ method.

The docstring clearly describes the parameters and their default values. This enhances the readability and maintainability of the code.


61-72: Docstring and return type annotation added for submit method.

The docstring and return type annotation enhance the usability and maintainability of the method. The descriptions of the parameters and return type are clear and accurate.


84-90: Docstring added for shutdown method.

The docstring clearly describes the parameters and their default values. This enhances the readability and maintainability of the code.

pysqa/executor/helper.py (11)

11-20: Docstring added for deserialize function.

The docstring clearly describes the parameter and return type. This enhances the readability and maintainability of the code.


27-38: Docstring and return type annotation added for find_executed_tasks function.

The docstring and return type annotation enhance the usability and maintainability of the function. The descriptions of the parameters and return type are clear and accurate.


57-66: Docstring and return type annotation added for read_from_file function.

The docstring and return type annotation enhance the usability and maintainability of the function. The descriptions of the parameter and return type are clear and accurate.


74-86: Docstring and return type annotation added for reload_previous_futures function.

The docstring and return type annotation enhance the usability and maintainability of the function. The descriptions of the parameters and return type are clear and accurate.


102-112: Docstring and return type annotation added for serialize_result function.

The docstring and return type annotation enhance the usability and maintainability of the function. The descriptions of the parameter and return type are clear and accurate.


116-128: Docstring and return type annotation added for serialize_funct function.

The docstring and return type annotation enhance the usability and maintainability of the function. The descriptions of the parameters and return type are clear and accurate.


133-145: Docstring and return type annotation added for write_to_file function.

The docstring and return type annotation enhance the usability and maintainability of the function. The descriptions of the parameters and return type are clear and accurate.

Tools
Ruff

133-133: Undefined name List

(F821)


155-166: Docstring and return type annotation added for _get_file_name function.

The docstring and return type annotation enhance the usability and maintainability of the function. The descriptions of the parameters and return type are clear and accurate.


170-180: Docstring and return type annotation added for _get_hash function.

The docstring and return type annotation enhance the usability and maintainability of the function. The descriptions of the parameters and return type are clear and accurate.


186-197: Docstring and return type annotation added for _set_future function.

The docstring and return type annotation enhance the usability and maintainability of the function. The descriptions of the parameters and return type are clear and accurate.


203-217: Docstring and return type annotation added for _update_task_dict function.

The docstring and return type annotation enhance the usability and maintainability of the function. The descriptions of the parameters and return type are clear and accurate.

pysqa/ext/modular.py (7)

12-26: Docstring added for ModularQueueAdapter class.

The docstring clearly describes the constructor arguments, attributes, and exceptions. This enhances the readability and maintainability of the code.


62-76: Docstring and type annotations added for submit_job method.

The docstring and type annotations enhance the usability and maintainability of the method. The descriptions of the parameters and return type are clear and accurate.


109-116: Docstring and type annotations added for enable_reservation method.

The docstring and type annotations enhance the usability and maintainability of the method. The descriptions of the parameter and return type are clear and accurate.


135-142: Docstring and type annotations added for delete_job method.

The docstring and type annotations enhance the usability and maintainability of the method. The descriptions of the parameter and return type are clear and accurate.


161-168: Docstring and type annotations added for get_queue_status method.

The docstring and type annotations enhance the usability and maintainability of the method. The descriptions of the parameter and return type are clear and accurate.


190-200: Docstring and type annotations added for _resolve_queue_id method.

The docstring and type annotations enhance the usability and maintainability of the method. The descriptions of the parameters and return type are clear and accurate.


207-216: Docstring and type annotations added for _switch_cluster_command method.

The docstring and type annotations enhance the usability and maintainability of the method. The descriptions of the parameters and return type are clear and accurate.

pysqa/queueadapter.py (7)

91-96: LGTM!

The change to use List[str] from the typing module aligns with Python's type hinting conventions.


110-115: LGTM!

The addition of the return type dict enhances code clarity and type safety.


140-145: LGTM!

The change to use List[str] from the typing module aligns with Python's type hinting conventions.


160-166: LGTM!

The change to use List[str] from the typing module aligns with Python's type hinting conventions.


Line range hint 177-198: LGTM!

The addition of the dependency_list parameter with the type Optional[List[str]] enhances type safety and clarity.


310-318: LGTM!

The changes to use List[int] and List[str] from the typing module align with Python's type hinting conventions.


329-341: LGTM!

The addition of the return type List enhances code clarity and type safety.

pysqa/utils/basic.py (10)

105-110: LGTM!

The addition of the return type dict enhances code clarity and type safety.


117-120: LGTM!

The change to use List from the typing module aligns with Python's type hinting conventions.


138-143: LGTM!

The method now returns Queues, a custom type, which aligns with Python's type hinting conventions.


154-172: LGTM!

The addition of the dependency_list parameter with the type Optional[List[str]] enhances type safety and clarity.


295-303: LGTM!

The changes to use List[int] and List[str] from the typing module align with Python's type hinting conventions.


315-320: LGTM!

The method now raises a NotImplementedError, indicating that it is not yet implemented.


399-414: LGTM!

The method now returns a Tuple[str, str], which is a custom type, aligning with Python's type hinting conventions.


572-584: LGTM!

The method now raises a ValueError if the value is None, indicating that it is not yet implemented.


589-604: LGTM!

The method now returns a Union[int, float, None], which is a custom type, aligning with Python's type hinting conventions.


549-555: LGTM!

The method now raises a TemplateSyntaxError if the template is invalid, indicating that it is not yet implemented.

pysqa/ext/remote.py (12)

153-162: LGTM!

The addition of the return type str enhances code clarity and type safety.


179-192: LGTM!

The addition of the dependency_list parameter with the type Optional[List[str]] enhances type safety and clarity.


204-210: LGTM!

The addition of the return type str enhances code clarity and type safety.


218-224: LGTM!

The addition of the return type str enhances code clarity and type safety.


232-238: LGTM!

The addition of the return type pandas.DataFrame enhances code clarity and type safety.


252-255: LGTM!

The method now raises a NotImplementedError, indicating that it is not yet implemented.


288-295: LGTM!

The addition of the return type None enhances code clarity and type safety.


358-364: LGTM!

The addition of the return type paramiko.SSHClient enhances code clarity and type safety.


477-483: LGTM!

The addition of the return type str enhances code clarity and type safety.


486-492: LGTM!

The addition of the return type str enhances code clarity and type safety.


504-519: LGTM!

The addition of the return type str enhances code clarity and type safety.


561-570: LGTM!

The addition of the return type str enhances code clarity and type safety.

Comment on lines +40 to +47
def __dir__(self) -> List[str]:
"""
Get the list of queues.

Returns:
List[str]: The list of queues.

"""
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the undefined name List.

The type hint List[str] requires importing List from the typing module.

+ from typing import List
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
def __dir__(self) -> List[str]:
"""
Get the list of queues.
Returns:
List[str]: The list of queues.
"""
from typing import List
def __dir__(self) -> List[str]:
"""
Get the list of queues.
Returns:
List[str]: The list of queues.
"""
Tools
Ruff

40-40: Undefined name List

(F821)

Comment on lines +11 to +18
def __init__(self, list_of_queues: List[str]):
"""
Initialize the Queues object.

Args:
list_of_queues (List[str]): A list of queue names.

"""
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the undefined name List.

The type hint List[str] requires importing List from the typing module.

+ from typing import List
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
def __init__(self, list_of_queues: List[str]):
"""
Initialize the Queues object.
Args:
list_of_queues (List[str]): A list of queue names.
"""
from typing import List
def __init__(self, list_of_queues: List[str]):
"""
Initialize the Queues object.
Args:
list_of_queues (List[str]): A list of queue names.
"""
Tools
Ruff

11-11: Undefined name List

(F821)

binary = cloudpickle.dumps({"fn": fn, "args": args, "kwargs": kwargs})
return {fn.__name__ + _get_hash(binary=binary): binary}


def write_to_file(funct_dict: dict, state, cache_directory: str):
def write_to_file(funct_dict: dict, state: str, cache_directory: str) -> List[str]:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix undefined name List.

The List type hint is used but not imported. Import List from typing to fix this issue.

+ from typing import List
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
def write_to_file(funct_dict: dict, state: str, cache_directory: str) -> List[str]:
+ from typing import List
def write_to_file(funct_dict: dict, state: str, cache_directory: str) -> List[str]:
Tools
Ruff

133-133: Undefined name List

(F821)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 8549a55 and dced358.

Files selected for processing (2)
  • pysqa/executor/helper.py (4 hunks)
  • pysqa/utils/queues.py (2 hunks)
Files skipped from review due to trivial changes (1)
  • pysqa/utils/queues.py
Additional comments not posted (10)
pysqa/executor/helper.py (10)

12-21: Docstring addition looks good.

The added docstring is clear and enhances the readability of the function.


28-39: Docstring and type hint additions look good.

The added docstring and type hints are clear and enhance the readability of the function.


58-67: Docstring and type hint additions look good.

The added docstring and type hints are clear and enhance the readability of the function.


75-87: Docstring and type hint additions look good.

The added docstring and type hints are clear and enhance the readability of the function.


103-113: Docstring and type hint additions look good.

The added docstring and type hints are clear and enhance the readability of the function.


117-129: Docstring and type hint additions look good.

The added docstring and type hints are clear and enhance the readability of the function.


156-167: Docstring and type hint additions look good.

The added docstring and type hints are clear and enhance the readability of the function.


171-181: Docstring and type hint additions look good.

The added docstring and type hints are clear and enhance the readability of the function.


187-198: Docstring and type hint additions look good.

The added docstring and type hints are clear and enhance the readability of the function.


204-218: Docstring and type hint additions look good.

The added docstring and type hints are clear and enhance the readability of the function.

Comment on lines +134 to +146
def write_to_file(funct_dict: dict, state: str, cache_directory: str) -> List[str]:
"""
Write the contents of a dictionary to files in the cache directory.

Args:
funct_dict (dict): A dictionary containing the contents to be written.
state (str): The state of the files to be written.
cache_directory (str): The directory where the files will be written.

Returns:
List[str]: A list of file names that were written.

"""
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix undefined name List.

The List type hint is used but not imported. Import List from typing to fix this issue.

+ from typing import List
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
def write_to_file(funct_dict: dict, state: str, cache_directory: str) -> List[str]:
"""
Write the contents of a dictionary to files in the cache directory.
Args:
funct_dict (dict): A dictionary containing the contents to be written.
state (str): The state of the files to be written.
cache_directory (str): The directory where the files will be written.
Returns:
List[str]: A list of file names that were written.
"""
from typing import List
def write_to_file(funct_dict: dict, state: str, cache_directory: str) -> List[str]:
"""
Write the contents of a dictionary to files in the cache directory.
Args:
funct_dict (dict): A dictionary containing the contents to be written.
state (str): The state of the files to be written.
cache_directory (str): The directory where the files will be written.
Returns:
List[str]: A list of file names that were written.
"""

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
pysqa/ext/remote.py (1)

Line range hint 598-617:
Fix the undefined name List.

The name List is undefined. Import it from typing.

+ from typing import List
Tools
Ruff

598-598: Undefined name List

(F821)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between dced358 and 6750d3d.

Files selected for processing (1)
  • pysqa/ext/remote.py (15 hunks)
Additional context used
Ruff
pysqa/ext/remote.py

598-598: Undefined name List

(F821)

Additional comments not posted (19)
pysqa/ext/remote.py (19)

153-162: LGTM!

The docstring and type hinting for the convert_path_to_remote method look good.


179-192: LGTM!

The docstring and type hinting for the submit_job method look good. The NotImplementedError for dependency_list is a good practice.


204-210: LGTM!

The docstring and type hinting for the enable_reservation method look good.


218-224: LGTM!

The docstring and type hinting for the delete_job method look good.


232-238: LGTM!

The docstring and type hinting for the get_queue_status method look good.


252-255: LGTM!

The docstring and type hinting for the get_job_from_remote method look good.


288-295: LGTM!

The docstring and type hinting for the transfer_file method look good.


310-312: LGTM!

The docstring for the __del__ method looks good.


319-321: LGTM!

The docstring for the _check_ssh_connection method looks good.


326-333: LGTM!

The docstring and type hinting for the _transfer_files method look good.


358-364: LGTM!

The docstring and type hinting for the _open_ssh_connection method look good.


477-483: LGTM!

The docstring and type hinting for the _remote_command method look good.


486-492: LGTM!

The docstring and type hinting for the _get_queue_status_command method look good.


504-519: LGTM!

The docstring and type hinting for the _submit_command method look good.


561-570: LGTM!

The docstring and type hinting for the _execute_remote_command method look good.


583-592: LGTM!

The docstring and type hinting for the _get_remote_working_dir method look good.


618-627: LGTM!

The docstring and type hinting for the _transfer_data_to_remote method look good.


654-657: LGTM!

The docstring and type hinting for the _get_user method look good.


663-673: LGTM!

The docstring and type hinting for the _get_file_transfer method look good.

@jan-janssen jan-janssen merged commit 3183a8b into main Aug 3, 2024
17 checks passed
@jan-janssen jan-janssen deleted the pilot branch August 3, 2024 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant