Skip to content

Commit 709686c

Browse files
willingclwasser
authored andcommitted
Lint with remark in vscode
1 parent 01e2810 commit 709686c

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed

CONTRIBUTING.md

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,37 @@ To run this script, you can call the following at the command line:
1313
This script parses data from all-contributors bot `.json`
1414
files in the following repos:
1515

16-
- [software-submission repo](https://github.com/pyOpenSci/software-submission) where peer review happens
17-
- [python-package-guide repo](https://github.com/pyOpenSci/python-package-guide)
18-
- [peer review guide repo](https://github.com/pyOpenSci/software-peer-review)
19-
- [pyopensci.github.io (website) repo](https://github.com/pyOpenSci/pyopensci.github.io)
20-
- [update-package-meta repo](https://github.com/pyOpenSci/update-web-metadata) _(this repo)_
16+
* [software-submission repo](https://github.com/pyOpenSci/software-submission) where peer review happens
17+
* [python-package-guide repo](https://github.com/pyOpenSci/python-package-guide)
18+
* [peer review guide repo](https://github.com/pyOpenSci/software-peer-review)
19+
* [pyopensci.github.io (website) repo](https://github.com/pyOpenSci/pyopensci.github.io)
20+
* [update-package-meta repo](https://github.com/pyOpenSci/update-web-metadata) *(this repo)*
2121

2222
Running this script:
2323

24-
1. Parses through all of the all-contributors bot `.json` files across our pyOpenSci repos to gather contributors to
25-
our organization. This allows us to [acknowledge contributors on our website](https://www.pyopensci.org/our-community/#pyopensci-community-contributors)
26-
who are not always making explicit code contributions (thus might not have commits). These contributors are
27-
reviewing guidebooks, participating in peer review, and performing other important tasks that are critical to our
28-
pyOpenSci mission. We acknowledge all contributions at pyOpenSci regardless of volume or size.
29-
2. Updates the existing [contributors.yml](https://github.com/pyOpenSci/pyopensci.github.io/blob/main/_data/contributors.yml)
30-
file found in our website repo with new contributors and the contributor role (package guides, code workflows, peer review, etc).
31-
If you run the script using `--update update_all`, this script will also use the GitHub api to update the users metadata from their GitHub profile.
24+
1. Parses through all of the all-contributors bot `.json` files across our pyOpenSci repos to gather contributors to
25+
our organization. This allows us to [acknowledge contributors on our website](https://www.pyopensci.org/our-community/#pyopensci-community-contributors)
26+
who are not always making explicit code contributions (thus might not have commits). These contributors are
27+
reviewing guidebooks, participating in peer review, and performing other important tasks that are critical to our
28+
pyOpenSci mission. We acknowledge all contributions at pyOpenSci regardless of volume or size.
29+
2. Updates the existing [contributors.yml](https://github.com/pyOpenSci/pyopensci.github.io/blob/main/_data/contributors.yml)
30+
file found in our website repo with new contributors and the contributor role (package guides, code workflows, peer review, etc).
31+
If you run the script using `--update update_all`, this script will also use the GitHub api to update the users metadata from their GitHub profile.
3232

3333
## update-reviews script
3434

3535
To run this script, you can call the following at the command line:
3636

3737
`update-reviews`
3838

39-
This script parses through our (_accepted_) review issues to find packages that have been accepted. It then grabs each
39+
This script parses through our (*accepted*) review issues to find packages that have been accepted. It then grabs each
4040
reviews editor, reviewers and package authors / maintainers. This information allows us to
4141

42-
1. Update a contributor's peer review metadata in the contributors.yml file in the third script.
43-
2. Update the pyOpenSci website's package listing with the package's DOI, documentation URL.
44-
3. Update the package's stats including stars, contributors, etc. using the GitHub API
42+
1. Update a contributor's peer review metadata in the contributors.yml file in the third script.
43+
2. Update the pyOpenSci website's package listing with the package's DOI, documentation URL.
44+
3. Update the package's stats including stars, contributors, etc. using the GitHub API
4545

46-
## process_reviews.py script
46+
## process\_reviews.py script
4747

4848
To run this script, you can call the following at the command line:
4949

@@ -52,28 +52,28 @@ To run this script, you can call the following at the command line:
5252
This final script is a bridge between the first it uses pickle files outputted from the
5353
first two scripts to update each contributors peer review contributions including
5454

55-
1. packages submitted or reviewed
56-
2. packages in which the contributor served as editors
57-
3. contributor types associated with peer review including:
55+
1. packages submitted or reviewed
56+
2. packages in which the contributor served as editors
57+
3. contributor types associated with peer review including:
5858

59-
- peer-review
60-
- package-maintainer
61-
- package-reviewer
62-
- package-editor
59+
* peer-review
60+
* package-maintainer
61+
* package-reviewer
62+
* package-editor
6363

6464
These general contributor types are used to drive our
6565
[website's contributor search and filter functionality that you can see here.](https://www.pyopensci.org/our-community/index.html#pyopensci-community-contributors)
6666

6767
## Local setup
6868

69-
1. Create a local environment and activate it. If you are using conda:
69+
1. Create a local environment and activate it. If you are using conda:
7070

71-
```bash
72-
mamba create -n pyos-meta python=3.10
73-
mamba activate pyos-meta
74-
```
71+
```bash
72+
mamba create -n pyos-meta python=3.10
73+
mamba activate pyos-meta
74+
```
7575

76-
2. Install the package in editable mode and associated development dependencies:
76+
2. Install the package in editable mode and associated development dependencies:
7777

7878
```
7979
pip install -e ".[dev]"
@@ -86,8 +86,8 @@ API.](https://docs.github.com/en/rest/guides/getting-started-with-the-rest-api?a
8686

8787
After obtaining a token;
8888

89-
1. Duplicate the `.env-default` file and rename the copy to `.env`
90-
2. Assign your token to the `GITHUB_TOKEN` variable in the `.env` file.
89+
1. Duplicate the `.env-default` file and rename the copy to `.env`
90+
2. Assign your token to the `GITHUB_TOKEN` variable in the `.env` file.
9191

9292
## How to run each script
9393

@@ -102,45 +102,45 @@ To run:
102102

103103
The `update-contributors` script does the following:
104104

105-
1. It grabs the `all-contribs.json` files from each repository and turns that json data into a dictionary of all unique
106-
contributors across repos. Repos include:
107-
- peer review guide
108-
- packaging guide
109-
- website
110-
- software-review
111-
- update-package-meta (this repo)
112-
2. It then:
105+
1. It grabs the `all-contribs.json` files from each repository and turns that json data into a dictionary of all unique
106+
contributors across repos. Repos include:
107+
* peer review guide
108+
* packaging guide
109+
* website
110+
* software-review
111+
* update-package-meta (this repo)
112+
2. It then:
113113

114114
If you use the `--update update_all` flag, it will:
115115

116-
- Update contrib profile information including name using whatever information is available their public github
117-
account for website, location, organization, twitter, etc).
118-
- Check to see that the website in their profile works, if not removes it so it doesn't begin to fail our website ci tests.
116+
* Update contrib profile information including name using whatever information is available their public github
117+
account for website, location, organization, twitter, etc).
118+
* Check to see that the website in their profile works, if not removes it so it doesn't begin to fail our website ci tests.
119119

120120
Without the `update` flag, running `update-contributors` will only add any new users that
121121
are not already in the website `contributors.yml` file to a output `.pickle` file.
122122

123123
### update-reviews Returns:
124124

125-
- `all-contributors.pickle` file that will be used in the final update-reviewers script to update all reviewer contribution data.
125+
* `all-contributors.pickle` file that will be used in the final update-reviewers script to update all reviewer contribution data.
126126

127127
## update-reviews script
128128

129129
To run:
130130
`update-reviews` or
131131
`update-reviews --update update_all`
132132

133-
- This script parses through all pyOpenSci issues in the [software-submissions repo](https://github.com/pyOpenSci/software-submission) issues where the issue has a label of 6/`pyOS-approved 🚀🚀🚀`.
134-
- Grabs crucial metadata including the reviewers and editors for each.
135-
- Adds people who have participated in peer review who are NOT listed currently in the website `contributors.yml` file
133+
* This script parses through all pyOpenSci issues in the [software-submissions repo](https://github.com/pyOpenSci/software-submission) issues where the issue has a label of 6/`pyOS-approved 🚀🚀🚀`.
134+
* Grabs crucial metadata including the reviewers and editors for each.
135+
* Adds people who have participated in peer review who are NOT listed currently in the website `contributors.yml` file
136136

137137
It then collects the
138138
GitHub id and user information for:
139139

140-
- reviewers,
141-
- submitting authors,
142-
- editors and
143-
- maintainers.
140+
* reviewers,
141+
* submitting authors,
142+
* editors and
143+
* maintainers.
144144

145145
Finally, it updates GitHub statistics for
146146
each packages including stars, last commit date and more repo metadata.
@@ -149,15 +149,15 @@ each packages including stars, last commit date and more repo metadata.
149149

150150
This returns a `packages.pickle` file that will be used in the final script which bridges data between the first two scripts.
151151

152-
## update_reviewers script`
152+
## update\_reviewers script\`
153153

154154
This script is a bridge between `update-contributors` and `update-reviews`. It parses each review in the output
155155
`update-reviews.pickle` file and
156156

157-
1. updates contributor name in the review data (often the github username is there but the first and last name is missing).
158-
This allows us to publish the maintainer names (rather than github usernames) [on our website package listing.](https://www.pyopensci.org/python-packages.html#explore-our-accepted-scientific-python-open-source-packages)
159-
2. Updates each review issue contributor's name in the contributor metadata. This allows us to ensure we have updated
160-
contributor types, package submission information etc, in the contributor.yml file on our website.
157+
1. updates contributor name in the review data (often the github username is there but the first and last name is missing).
158+
This allows us to publish the maintainer names (rather than github usernames) [on our website package listing.](https://www.pyopensci.org/python-packages.html#explore-our-accepted-scientific-python-open-source-packages)
159+
2. Updates each review issue contributor's name in the contributor metadata. This allows us to ensure we have updated
160+
contributor types, package submission information etc, in the contributor.yml file on our website.
161161

162162
To run:
163163
`update_reviewers`
@@ -168,8 +168,8 @@ This final script uses the two pickle files
168168
to update information. It then returns
169169
two output files:
170170

171-
1. `_data/contributors.yml`
172-
2. `_data/packages.yml`
171+
1. `_data/contributors.yml`
172+
2. `_data/packages.yml`
173173

174174
Each are stored in the `/_data/file.yml` directory to mimic the directory structure of our website.
175175

@@ -180,8 +180,8 @@ actions located here](https://github.com/pyOpenSci/pyopensci.github.io/tree/main
180180

181181
### Data that these scripts update / maintain
182182

183-
- [website contributors.yml file](https://github.com/pyOpenSci/pyopensci.github.io/blob/main/_data/contributors.yml)
184-
- [website packages.yml file is here](https://github.com/pyOpenSci/pyopensci.github.io/blob/main/_data/packages.yml).
183+
* [website contributors.yml file](https://github.com/pyOpenSci/pyopensci.github.io/blob/main/_data/contributors.yml)
184+
* [website packages.yml file is here](https://github.com/pyOpenSci/pyopensci.github.io/blob/main/_data/packages.yml).
185185

186186
## Rate limiting
187187

0 commit comments

Comments
 (0)