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

Populate .gitignore from Python template #38

Open
sadielbartholomew opened this issue Mar 11, 2024 · 0 comments
Open

Populate .gitignore from Python template #38

sadielbartholomew opened this issue Mar 11, 2024 · 0 comments
Assignees

Comments

@sadielbartholomew
Copy link
Member

As alluded to in #37, the .gitignore is presently very bare and many files need to be manually ignored when staging for a commit. The simplest way to get a more useful .gitignore without having to think much about what needs to be added, is to copy one from a pre-populated Python template, for example as provided by GitHub itself (now an option when you create a repo to add it, but it wasn't back in the day...) i.e. the file here.

Notably though, from looking at this template I would also like to customise it a little, e.g. to:

  • add Sphinx artefacts to be ignored, such as the .rst.txt under /build/_sources/*,
  • add data files (mostly netCDF), which we shouldn't generally touch, but might want to play around with for testing and end up writing over with edits, therefore would be good to include to ignore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant