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 python aux files to .gitignore #246

Merged
merged 2 commits into from
Sep 9, 2024
Merged

Add python aux files to .gitignore #246

merged 2 commits into from
Sep 9, 2024

Conversation

dimas-b
Copy link
Contributor

@dimas-b dimas-b commented Sep 3, 2024

After running ./polaris ...:

$ git st
On branch main
Your branch is up to date with 'origin/main'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	poetry.lock
	polaris-venv/
	pyproject.toml

Description

Excluding python-related auxiliary files from source control.

After running `./polaris ...`:

```
$ git st
On branch main
Your branch is up to date with 'origin/main'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	poetry.lock
	polaris-venv/
	pyproject.toml
```
@dimas-b
Copy link
Contributor Author

dimas-b commented Sep 5, 2024

@snazy : Do you think we could merge this?

.gitignore Outdated
# Python stuff
poetry.lock
polaris-venv/
pyproject.toml
Copy link
Member

Choose a reason for hiding this comment

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

Hm - looks like ./regtests/client/python/pyproject.toml and ./regtests/client/python/poetry.lock are in versioned Git though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but they are not covered by this exclusion 🤔 Do you mean we should exclude those files or commit 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.

They would be. It's just that those files are already managed by Git.
Maybe you meant

/poetry.lock
/pyproject.toml

?

Copy link
Contributor Author

@dimas-b dimas-b Sep 6, 2024

Choose a reason for hiding this comment

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

/p/polaris (git-ignore|✚1) $ git status
On branch git-ignore
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   regtests/client/python/poetry.lock

... but it's a good point in general. I've added leading slashes to avoid ambiguity.

@snazy
Copy link
Member

snazy commented Sep 9, 2024

LGTM
Thanks!

@snazy snazy enabled auto-merge (squash) September 9, 2024 11:58
@snazy snazy merged commit ec6ffd0 into apache:main Sep 9, 2024
3 checks passed
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.

4 participants