Skip to content

Commit 921432c

Browse files
authored
Merge pull request #35 from scientificcomputing/finsberg/add-contributing-guidelines
Add contributing guidelines
2 parents d670691 + ba49ab8 commit 921432c

File tree

1 file changed

+125
-0
lines changed

1 file changed

+125
-0
lines changed

CONTRIBUTING.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Contributing
2+
3+
When contributing to this repository, please first [create an issue](https://github.com/scientificcomputing/scientificcomputing.github.io/issues/new/choose) containing information about the missing feature or the bug that you would like to fix. Here you can discuss the change you want to make with the maintainers of the repository.
4+
5+
Please note we have a code of conduct, please follow it in all your interactions with the project.
6+
7+
## New contributor guide
8+
9+
To get an overview of the project, read the [documentation](https://scientificcomputing.github.io). Here are some resources to help you get started with open source contributions:
10+
11+
- [Finding ways to contribute to open source on GitHub](https://docs.github.com/en/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github)
12+
- [Set up Git](https://docs.github.com/en/get-started/quickstart/set-up-git)
13+
- [GitHub flow](https://docs.github.com/en/get-started/quickstart/github-flow)
14+
- [Collaborating with pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests)
15+
16+
## Pull Request Process
17+
18+
19+
### Pull Request
20+
21+
- When you're finished with the changes, create a pull request, also known as a PR. It is also OK to create a [draft pull request](https://github.blog/2019-02-14-introducing-draft-pull-requests/) from the very beginning. Once you are done you can click on the ["Ready for review"] button. You can also [request a review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review) from one of the maintainers.
22+
- Don't forget to [link PR to the issue that you opened ](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).
23+
- Enable the checkbox to [allow maintainer edits](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork) so the branch can be updated for a merge.
24+
Once you submit your PR, a team member will review your proposal. We may ask questions or request for additional information.
25+
- We may ask for changes to be made before a PR can be merged, either using [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes in your fork, then commit them to your branch.
26+
- As you update your PR and apply changes, mark each conversation as [resolved](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#resolving-conversations).
27+
- If you run into any merge issues, checkout this [git tutorial](https://lab.github.com/githubtraining/managing-merge-conflicts) to help you resolve merge conflicts and other issues.
28+
- Please make sure that all tests are passing, github pages renders nicely, and code coverage are are not lower than before your contribution. You see the different github action workflows by clicking the "Action" tab in the GitHub repository.
29+
30+
31+
### Enforced style guide using pre-commit hooks
32+
33+
We want to have a consistent style on all the contributions to the repository. The way we enforce this is through pre-commit hooks and contributors are encouraged to install the pre-commit hooks locally when developing. You can install the pre commit hooks by first install `pre-commit`
34+
```
35+
python3 -m pip install pre-commit
36+
```
37+
and then install the pre-commit hooks using the command
38+
```
39+
pre-commit install
40+
```
41+
at the root of the repository. This will install all the hooks listed in the file called `.pre-commit-config.yaml` in the root of the repository.
42+
43+
Every time you make a commit to the repository a set of tests will run to make sure that the changes you made are following the style guide. Usually, the hooks will autoformat your code so that you only need to do a `git add` again and then redo the `git commit`.
44+
45+
Note that when you make a push to the repo, the pre-commit hooks will be run on all the files in the repository. You can also run the pre-commit hooks on all the files using the command
46+
```
47+
pre-commit run --all
48+
```
49+
To learn more about pre-commit you can check out https://pre-commit.com
50+
51+
52+
## Code of Conduct
53+
54+
### Our Pledge
55+
56+
In the interest of fostering an open and welcoming environment, we as
57+
contributors and maintainers pledge to making participation in our project and
58+
our community a harassment-free experience for everyone, regardless of age, body
59+
size, disability, ethnicity, gender identity and expression, level of experience,
60+
nationality, personal appearance, race, religion, or sexual identity and
61+
orientation.
62+
63+
### Our Standards
64+
65+
Examples of behavior that contributes to creating a positive environment
66+
include:
67+
68+
* Using welcoming and inclusive language
69+
* Being respectful of differing viewpoints and experiences
70+
* Gracefully accepting constructive criticism
71+
* Focusing on what is best for the community
72+
* Showing empathy towards other community members
73+
74+
Examples of unacceptable behavior by participants include:
75+
76+
* The use of sexualized language or imagery and unwelcome sexual attention or
77+
advances
78+
* Trolling, insulting/derogatory comments, and personal or political attacks
79+
* Public or private harassment
80+
* Publishing others' private information, such as a physical or electronic
81+
address, without explicit permission
82+
* Other conduct which could reasonably be considered inappropriate in a
83+
professional setting
84+
85+
### Our Responsibilities
86+
87+
Project maintainers are responsible for clarifying the standards of acceptable
88+
behavior and are expected to take appropriate and fair corrective action in
89+
response to any instances of unacceptable behavior.
90+
91+
Project maintainers have the right and responsibility to remove, edit, or
92+
reject comments, commits, code, wiki edits, issues, and other contributions
93+
that are not aligned to this Code of Conduct, or to ban temporarily or
94+
permanently any contributor for other behaviors that they deem inappropriate,
95+
threatening, offensive, or harmful.
96+
97+
### Scope
98+
99+
This Code of Conduct applies both within project spaces and in public spaces
100+
when an individual is representing the project or its community. Examples of
101+
representing a project or community include using an official project e-mail
102+
address, posting via an official social media account, or acting as an appointed
103+
representative at an online or offline event. Representation of a project may be
104+
further defined and clarified by project maintainers.
105+
106+
### Enforcement
107+
108+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
109+
reported by contacting the project team at [email protected]. All
110+
complaints will be reviewed and investigated and will result in a response that
111+
is deemed necessary and appropriate to the circumstances. The project team is
112+
obligated to maintain confidentiality with regard to the reporter of an incident.
113+
Further details of specific enforcement policies may be posted separately.
114+
115+
Project maintainers who do not follow or enforce the Code of Conduct in good
116+
faith may face temporary or permanent repercussions as determined by other
117+
members of the project's leadership.
118+
119+
### Attribution
120+
121+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
122+
available at [http://contributor-covenant.org/version/1/4][version]
123+
124+
[homepage]: http://contributor-covenant.org
125+
[version]: http://contributor-covenant.org/version/1/4/

0 commit comments

Comments
 (0)