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

Gitignore Basic Setup #128

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Suave101
Copy link

@Suave101 Suave101 commented Jan 5, 2025

Creates a possible solution that resolves:
robotpy init should set up a basic .gitignore #107

@Suave101 Suave101 marked this pull request as ready for review January 5, 2025 07:34
uv.lock

# poetry
poetry.lock
Copy link
Member

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
Copy link
Member

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.

robotpy_installer/pyproject.py Show resolved Hide resolved
# Windows shortcuts
*.lnk

### Gradle ###
Copy link
Member

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.

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