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 cookiecutter templates for CI #879

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

mdellweg
Copy link
Member

This should help to keep the CI consistent across multiple cli plugin repositories.

[noissue]

Review Checklist:

  • An issue is properly linked. [feature and bugfix only]
  • Tests are present or not feasible.
  • Commits are split in a logical way (not historically).

@mdellweg mdellweg force-pushed the ci_templates branch 2 times, most recently from 3c55d63 to 9aeda62 Compare January 22, 2024 08:37
@mdellweg mdellweg marked this pull request as ready for review January 22, 2024 08:37
@mdellweg mdellweg changed the title WIP Add cookiecutter templates for CI Add cookiecutter templates for CI Jan 22, 2024
@mdellweg mdellweg enabled auto-merge (rebase) January 22, 2024 11:29
@@ -0,0 +1,12 @@
{
"app_label": "noname",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is app_label = "noname"?

Copy link
Member Author

Choose a reason for hiding this comment

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

The bootstrap part is far from done...
But cookiecutter needs something there, and i wanted to prevent it being empty by default as not to overwrite the pulp-cli repositry accidentally.

Comment on lines 69 to 76
path = ""
name = ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these suppose to be blank?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, that's the main section in the changelog.

Comment on lines +8 to +9
if parse(click.__version__) < parse("8.1.1") or parse(click.__version__) >= parse("8.2"):
print("🚧 Linting with mypy is currently only supported with click~=8.1.1. 🚧")
Copy link
Contributor

Choose a reason for hiding this comment

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

Remind me again what was the mypy issue with click>=8.2?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think they changed some annotations in incompatible ways. I found no way to lint with 8.1.1 and 8.2 simultaneously. Maybe it's time to try again.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hah, the answer is much simpler: The latest version of click is 8.1.7.

Copy link
Contributor

Choose a reason for hiding this comment

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

How does one bootstrap or apply these templates for other cli plugins?

Copy link
Member Author

Choose a reason for hiding this comment

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

no bootstrap today.
You check both repos out next to each other. You cd to the target and call python ../pulp-cli/.ci/apply_templates.py.

@mdellweg mdellweg force-pushed the ci_templates branch 2 times, most recently from 32519a1 to 9abb8c7 Compare January 25, 2024 14:03
@ipanova ipanova disabled auto-merge January 25, 2024 16:47
@ipanova ipanova enabled auto-merge (rebase) January 25, 2024 16:47
@mdellweg mdellweg force-pushed the ci_templates branch 2 times, most recently from 684ab75 to 2ababcc Compare January 29, 2024 07:30
This should help to keep the CI consistent across multiple cli plugin
repositories.

[noissue]
@mdellweg
Copy link
Member Author

Good discussion around the bootstrap part. It is not ready, so I removed that into another branch.

@ipanova ipanova merged commit 7cf66dd into pulp:main Jan 30, 2024
20 checks passed
@mdellweg mdellweg deleted the ci_templates branch January 31, 2024 08:51
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