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

Update towncrier settings #1626

Merged
merged 7 commits into from
Jul 7, 2022
Merged

Conversation

namurphy
Copy link
Member

@namurphy namurphy commented Jul 6, 2022

This is an experiment to change a few towncrier and see if they work with their latest release.

This is a small subset of the changes we tried in #1623 (see this comment).

@codecov
Copy link

codecov bot commented Jul 6, 2022

Codecov Report

Merging #1626 (8e90206) into main (32b8090) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1626   +/-   ##
=======================================
  Coverage   97.21%   97.21%           
=======================================
  Files          83       83           
  Lines        7961     7961           
=======================================
  Hits         7739     7739           
  Misses        222      222           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 32b8090...8e90206. Read the comment docs.

@github-actions github-actions bot added the docs PlasmaPy Docs at http://docs.plasmapy.org label Jul 6, 2022
@namurphy
Copy link
Member Author

namurphy commented Jul 6, 2022

We'll need to test this after #1623 is merged to make sure it works.

@namurphy namurphy changed the title [PROTO] Update towncrier settings Update towncrier settings Jul 6, 2022
filename = "CHANGELOG.rst"
directory = "changelog/"
issue_format = "`#{issue} <https://github.com/plasmapy/plasmapy/pull/{issue}>`__"
issue_format = ":issue:`{issue}`"
wrap = true
Copy link
Member

Choose a reason for hiding this comment

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

I still don't know what wrap is. What is this? I don't see it anywhere in the towncrier documentation.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's to wrap the output to 79 characters, from their further options

Copy link
Member

Choose a reason for hiding this comment

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

Ok...their documentation really sucks!!!!

Have you double checked that this option is available in the current release? That did already bite us once in the butt.

Copy link
Member

Choose a reason for hiding this comment

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

It was added 4 years ago according to the git blame, so we should be okay.

@namurphy namurphy marked this pull request as ready for review July 7, 2022 00:30
@namurphy
Copy link
Member Author

namurphy commented Jul 7, 2022

Looks like it's working!

@rocco8773, I also made the changelog a tad more prominent in the sidebar.

@namurphy namurphy requested a review from rocco8773 July 7, 2022 01:36
pyproject.toml Outdated
Comment on lines 38 to 43
package = "plasmapy"
name = "PlasmaPy"
filename = "CHANGELOG.rst"
directory = "changelog/"
issue_format = "`#{issue} <https://github.com/plasmapy/plasmapy/pull/{issue}>`__"
issue_format = ":issue:`{issue}`"
wrap = true
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to add back the title_format key so the changelog titles have the version v and look like PlasmaPy v0.8.2.dev... instead of PlasmaPy 0.8.2.dev...?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call! I missed that the v was missing.

@rocco8773
Copy link
Member

Once I confirm the title looks good on the new build, I'll slap an approve onto this.

@namurphy namurphy enabled auto-merge (squash) July 7, 2022 02:34
@namurphy namurphy merged commit d3b597a into PlasmaPy:main Jul 7, 2022
@namurphy namurphy deleted the update-towncrier-config branch July 7, 2022 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs PlasmaPy Docs at http://docs.plasmapy.org
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants