-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'stash/hotfix/joss-paper' into develop
- Loading branch information
Showing
16 changed files
with
139 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,73 @@ | ||
# Contributor orientation | ||
# Contributing to HyperNetX | ||
|
||
If you have ideas for improving this project, we would love to hear from you! | ||
## Code of Conduct | ||
|
||
## Orientation | ||
We want this community to be friendly and respectful to each other. Please read [the full text](CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated. | ||
|
||
## Requirements | ||
|
||
- Python >=3.8,<3.12 | ||
|
||
## Our Development Process | ||
|
||
### Development workflow | ||
|
||
> **Working on your first pull request?** You can learn how from this *free* series: [How to Contribute to an Open Source Project on GitHub](https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project). | ||
1. Fork the repo and create your branch from the `develop` branch. Here's a guide on [how to fork a repository](https://help.github.com/articles/fork-a-repo/). | ||
1. Create a Python virtual environment. For convenience, our Makefile provides a target called 'venv' that will create a virtual environment for you. Run the following command: `make venv` | ||
1. Activate the virtual environment. If you used the Makefile target in the previous step, activate the virtual environment by the running the following command: `source venv-hnx/bin/activate` | ||
1. Install the library in development mode: `pip install -e .` | ||
1. Install testing dependencies: `pip install -e .['testing'] ` | ||
1. Do the changes you want and ensure all tests pass by running `python -m pytest` before sending a pull request. | ||
|
||
### Commit message convention | ||
|
||
Ensure that commit messages begin with a verb and are in the present tense. Write meaningful commit messages that concisely describes the changes in a commit. | ||
Read this blog post, [How to Write a Git Commit Message](https://cbea.ms/git-commit/) for some guidance. | ||
|
||
### Linting and tests | ||
|
||
We use `pylint` and `black` for linting and formatting the code, and `pytest` for testing. | ||
|
||
We have included a pre-commit config file that can be used to install pre-commit hooks that will lint your code changes every time you create a commit. | ||
To install pre-commit, you must first install the testing dependencies: `pip install -e .['testing']`. Then run: `pre-commit install`. | ||
|
||
Once installed, every time you create a new commit, the linters and formatters will run on the changed code. It is highly recommended to use these `pre-commit` hooks | ||
because these same hooks are run in our CI/CD pipelines on every pull request. Catching pre-commit issues early will prevent CI/CD pipeline issues on your pull request. | ||
|
||
### Sending a pull request | ||
|
||
- Prefer small pull requests focused on one change. | ||
- Verify that and all tests are passing. | ||
- Verify all in-code documentation is correct (it will be used to generate API documentation). | ||
|
||
The world of open source is wide; it can be a lot to take in! If this is your first time working with an open source project, then welcome! If you're an experienced contributor, then welcome back! Either way, this online resource might help you [get oriented, or brush up](https://opensource.guide/how-to-contribute/) on the process. | ||
|
||
## Report an issue, bug, or feature request | ||
|
||
Here are the [steps to creating an issue on github](https://docs.github.com/en/issues/tracking-your-work-with-issues/quickstart). When reporting a bug, | ||
Here are the [steps to creating an issue on GitHub](https://docs.github.com/en/issues/tracking-your-work-with-issues/quickstart). When reporting a bug, | ||
|
||
- search for related issues on Github. You might be able to get answer without the hassle of creating an issue | ||
- search for related issues on GitHub. You might be able to get answer without the hassle of creating an issue | ||
- describe the current behavior and explain which behavior you expected to see instead and why. At this point you can also tell which alternatives do not work for you. | ||
- (if applicable) provide error messages | ||
- (if applicable) provide a step by step description of the problem; if possible include code that others can use to reproduce it | ||
- You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux. | ||
- provide clear, specific title | ||
- provide a clear, specific title | ||
- include details on your setup (operating system, python version, etc.) | ||
- use the most recent version of this library and the source language (e.g. Rust); that fixes a lot of problems | ||
- use the most recent version of this library and the source language (e.g. Python); that fixes a lot of problems | ||
- here are [more details on getting the most out of issue reporting!](https://marker.io/blog/how-to-write-bug-report) | ||
|
||
## Contribute new code | ||
|
||
Here is a [step-by-step guide to writing new code, and submiting it to the project](https://docs.github.com/en/get-started/quickstart/contributing-to-projects) | ||
## Start a Discussion | ||
|
||
The more you know about a software library, the easier it is to get started writing code. The best way to learn about this project is its the documentation! See `README.md` to get started. | ||
If you want a forum to collaborate and discuss topics or questions in more depth, feel free to start a discussion on our | ||
[Github Discussions page](https://github.com/pnnl/HyperNetX/discussions). GitHub Discussions is a collaborative | ||
communication forum for the community. Community members can ask and answer questions, share updates, have open-ended | ||
conversations, and follow along on decisions affecting the community's way of working. | ||
|
||
|
||
## Where can I go for help? | ||
|
||
If you're stuck or don't know where to begin, then you're in good company -- we've all been there! We're here to help, and we'd love to hear from you: | ||
|
||
- open a issue report on Github | ||
- email us at <[email protected]> | ||
|
||
# Code of conduct | ||
|
||
Our shared values as software developers guide us in our day-to-day interactions and decision-making. Our open source projects are no exception. Trust, respect, collaboration and transparency are core values we believe should live and breathe within our projects. Our community welcomes participants from around the world with different experiences, unique perspectives, and great ideas to share. Our [code of conduct](CODE_OF_CONDUCT.md) describes these values, and our standards for contributing. | ||
- open an issue report on [GitHub](https://github.com/pnnl/HyperNetX/issues) | ||
- email us at [[email protected]](mailto:[email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
from hypernetx.utils import * | ||
from hypernetx.utils.toys import * | ||
|
||
__version__ = "2.1.3" | ||
__version__ = "2.1.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from setuptools import setup | ||
|
||
__version__ = "2.1.3" | ||
__version__ = "2.1.4" | ||
|
||
setup(version=__version__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters