-
Notifications
You must be signed in to change notification settings - Fork 13
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
Gitignore Basic Setup #128
base: main
Are you sure you want to change the base?
Conversation
uv.lock | ||
|
||
# poetry | ||
poetry.lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't gitignore lock files — robot code is application code, not library/package code.
@@ -30,7 +30,7 @@ def run(self, main_file: pathlib.Path, project_path: pathlib.Path): | |||
|
|||
logger.info("Created empty %s", main_file) | |||
|
|||
# Create pyproject.toml if it doesn't already exist | |||
# Create pyproject.toml and .gitignore if it doesn't already exist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As written, this will always write a .gitignore (overwriting one if it does exist), iff a pyproject.toml doesn't exist. This doesn't match the comment, and I think the comment is closer to the intent.
# Windows shortcuts | ||
*.lnk | ||
|
||
### Gradle ### |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A significant chunk of these contents are C++/Java specific. There's no reason to include them for a Python project.
Creates a possible solution that resolves:
robotpy init should set up a basic .gitignore #107