8000 feat: initialize documentation directory by maciejmajek · Pull Request #610 · RobotecAI/rai · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: initialize documentation directory #610

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

Merged
merged 7 commits into from
May 29, 2025

Conversation

maciejmajek
Copy link
Member
@maciejmajek maciejmajek commented May 29, 2025

Review and Merge after #609

Purpose

Reducing manual effort needed to start with rai-whoami

Proposed Changes

Provided convenience script for setting up required documentation structure.

Issues

N/A

Testing

Used the script.
remember to pip install src/rai_whoami as poetry does not install scripts.

@maciejmajek maciejmajek requested a review from boczekbartek May 29, 2025 16:11
@maciejmajek maciejmajek changed the base branch from fix/build-whoami to development May 29, 2025 16:11
@maciejmajek maciejmajek force-pushed the feat/initialize-docs branch from f200d2f to caf25c0 Compare May 29, 2025 16:12
Copy link
Member
@boczekbartek boczekbartek left a comment

Choose a reason for hiding this comment

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

LGTM, left some optional suggestions ;)

@@ -1,6 +1,6 @@
[tool.poetry]
name = "rai_whoami"
version = "0.0.1"
version = "0.0.5"
Copy link
Member

Choose a reason for hiding this comment

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

why bump by 4 numbers?

Copy link
Member Author

Choose a reason for hiding this comment

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

Syncing with pypi. We are doing manual build & publish, which in the nearest future should be done automatically with auto version bump.

def initialize_docs_directory(args: argparse.Namespace) -> None:
documentation_dir = Path(args.documentation_dir)
if os.path.exists(documentation_dir):
print(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. < 8000 a class="Link--inTextBlock" href="https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment" aria-label="Learn more about hiding disruptive comments">Learn more.

logging?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought about it, decided to go with the simples option for such scripts.

parser = argparse.ArgumentParser()
parser.add_argument("documentation_dir", type=Path)
args = parser.parse_args()
initialize_docs_directory(args)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
initialize_docs_directory(args)
initialize_docs_directory(**vars(args))

Copy link
Member Author

Choose a reason for hiding this comment

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

Why is that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Never seen that, I will keep the same style as other script files.

@maciejmajek
Copy link
Member Author
maciejmajek commented May 29, 2025

@boczekbartek your proficiency with pathlib is nothing short of exquisite <3.

@maciejmajek maciejmajek merged commit 13fbd5e into development May 29, 2025
6 checks passed
@maciejmajek maciejmajek deleted the feat/initialize-docs branch May 29, 2025 17:11
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.

2 participants
0