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 gitignore and git init to templates #1247

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

anunayasri
Copy link

Fixes #671

@trgiangdo trgiangdo added 🖧 Devops Operations, monitoring, maintenance, deployment, packaging ✨New feature labels Apr 30, 2024
Copy link
Member

@trgiangdo trgiangdo left a comment

Choose a reason for hiding this comment

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

Thank you @anunayasri for your contribution.

The PR looks really good to me. I would like to propose 2 additional changes:

  1. The content of .gitignore is fully loaded with usual Python files to be ignored. However, there is no .vscode and Vscode related file. Furthermore, there are a lot of ignore lines for packages that are not closely related to Taipy, like "Translations", "Scrapy", "pdm", "Sphinx", ... We may need a discussion to decide what go into this file to make it suitable for a simple template.
  2. In tests/templates/test_default_template.py and tests/templates/test_scenario_mgt_template.py, we do sometimes test for which files and folders are generated after running the taipy run ... command. Those tests now should take the new .gitignore and .git into account as well.

@trgiangdo trgiangdo self-assigned this May 3, 2024
@anunayasri
Copy link
Author

@trgiangdo Apologies! I was not able to reply to the comment earlier.

I made the .gitignore based on @jrobinAV 's comment here. I also agree with the same. Different users use different tools. It's meaningful to have a generic .gitignore that can serve most users. Users can remove the sections that are unnecessary to them.

I will make the changes for the 2nd comment.

Copy link
Member

@jrobinAV jrobinAV left a comment

Choose a reason for hiding this comment

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

Just a small remark. Otherwise, it is great. Thank you.

Copy link
Member

Choose a reason for hiding this comment

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

Compared to the official template, you remove a few sections.

I would not remove them to keep the file as standard as possible.

What do you think?

@jrobinAV jrobinAV requested review from florian-vuillemot and removed request for florian-vuillemot May 13, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖧 Devops Operations, monitoring, maintenance, deployment, packaging ✨New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add .gitignore and init git repo for taipy cli
3 participants