Skip to content

Conversation

namurphy
Copy link
Member

@namurphy namurphy commented Jul 2, 2024

If a directory has a README.md file, it shows up as documentation when you navigate to that directory on GitHub. I decided that it would be worthwhile to add README.md files to our most important directories ahead of the summer school. This way, new contributors would be able to quickly get some idea of what the contents of the directory are for.

My hope is to keep these succinct and refer people to the appropriate pages in the contributor guide so that we don't need to spend much time maintaining this. I'm definitely open to ways to shorten the content.

The files I added were:

  • src/plasmapy/README.md
  • tests/README.md
  • docs/README.md
  • type_stubs/README.md

In addition, I updated the primary README.md with some minor fixes (fixing broken badges, removing redundant text, and dropping mention of Anaconda Navigator because it has new license restrictions).

I also added requirements.txt to .gitignore (as requested in #2647) so that contributors can use that file to define their own environments and that this file doesn't accidentally get committed.

@github-actions github-actions bot added the maintenance General updates to package infrastructure label Jul 2, 2024
Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.23%. Comparing base (cf47395) to head (28b5a5c).
Report is 71 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2742      +/-   ##
==========================================
+ Coverage   94.44%   95.23%   +0.79%     
==========================================
  Files         107      107              
  Lines        9597     9597              
  Branches     2221     2221              
==========================================
+ Hits         9064     9140      +76     
+ Misses        343      273      -70     
+ Partials      190      184       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines -216 to -222
### Suggestion box

We have a [suggestion box] if you would like to (optionally
anonymously) suggest a feature/topic for consideration. These
suggestions might be changed into GitHub issues for further
discussion.

Copy link
Member Author

Choose a reason for hiding this comment

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

Removing this since it's been pretty rare for us to get suggestions in the suggestion box.

Comment on lines +135 to +138
# Allow contributors to create a custom requirements.txt file for
# their own use.
requirements.txt

Copy link
Member Author

Choose a reason for hiding this comment

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

As requested in #2647.

README.md Outdated
Comment on lines 99 to 106
> top-level [`tests/`] directory. Existing pull requests should pull
> in the changes from the `main` branch with `git pull upstream main`
> (assuming the remote for the primary PlasmaPy repo is named
> `upstream`). Because `git` does not automatically remove
> directories, the `plasmapy/` directory in older clones must be
> manually deleted. If you previously did an editable installation of
> PlasmaPy, it will likely need to be redone by running `pip install
> -e .[tests,docs]` in the top-level directory of the repository.
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 only justified the text here. No substantive changes.

Comment on lines -138 to -139
PlasmaPy can also be installed using [Anaconda Navigator] so long as
`conda-forge` is added as a channel.
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 licensing for Anaconda Navigator has gradually been becoming more restrictive, so I'm leaning against including it in README.md (though it should be discussed in the online documentation).

@namurphy namurphy changed the title Update README.md Update README files Jul 3, 2024
Comment on lines -133 to -134
If you have [installed Conda], then you can also install PlasmaPy into
an activated Conda environment by running:
Copy link
Member Author

Choose a reason for hiding this comment

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

😅 One of the steps I take when editing a document is to remove as many occurrences of "also" as I can!

@namurphy namurphy marked this pull request as ready for review July 3, 2024 18:50
@namurphy namurphy requested a review from a team as a code owner July 3, 2024 18:50
@namurphy namurphy requested review from pheuer and removed request for a team July 3, 2024 18:50
@namurphy namurphy changed the title Update README files Add README.md files to important directories Jul 9, 2024
@github-actions github-actions bot added the packaging Related to packaging or distribution label Jul 16, 2024
@github-actions github-actions bot added GitHub Actions A continuous integration platform for automating tests and other tasks (see .github/ directory) tools Tools & scripts used in PlasmaPy development but are not importable from within PlasmaPy labels Jul 16, 2024
@github-actions github-actions bot added CI Related to continuous integration python Pull requests that update Python code nox Related to the nox automation software labels Jul 16, 2024
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've been noticing that most PRs that get submitted end up deleting the suggested sections of the pull request template, including most of the PRs that I submit! This PR reduces the amount of information to the essentials, which incidentally makes it easier to delete!

(A bit of scope creep for this PR, but it's still related to the main idea.)

@namurphy namurphy requested review from ejohnson-96 and removed request for pheuer July 16, 2024 23:34
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've noticed that when most contributors make pull requests (including me!), the pull request template gets deleted. Drastically shortening the template will make it more likely that the contents actually do get read (in particular the link to the contributor guide)...and it'll also make it easier to delete!

(This was a bit of scope creep for this PR, but it still fits in with the general idea.)

@namurphy namurphy removed the request for review from ejohnson-96 July 18, 2024 01:03
@namurphy namurphy merged commit 2989cbf into PlasmaPy:main Jul 18, 2024
@namurphy namurphy deleted the readme-update-jul-2-2024 branch July 18, 2024 01:04
@github-actions github-actions bot removed the status: ready for review PRs that are ready for code review label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Related to continuous integration docs PlasmaPy Docs at http://docs.plasmapy.org GitHub Actions A continuous integration platform for automating tests and other tasks (see .github/ directory) maintenance General updates to package infrastructure nox Related to the nox automation software packaging Related to packaging or distribution python Pull requests that update Python code static type checking testing tools Tools & scripts used in PlasmaPy development but are not importable from within PlasmaPy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants