-
Notifications
You must be signed in to change notification settings - Fork 10
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
add contribution guidelines #71
Merged
Merged
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b248831
link in readme, initial contrib guide draft
rkurchin 97b7d8b
blank line before table
rkurchin 0737e2e
codestyle for labels
rkurchin 35d703a
typo
rkurchin 6342256
commit message format suggestion
rkurchin e907271
add performance label
rkurchin bf92921
JuliaFormatter
rkurchin d248dfb
remove git diff artifact from sgcnn example
rkurchin 082aed9
remove git diff artifact from sgcnn example
rkurchin 73c1e87
Merge branch 'contrib_guide' of https://github.com/aced-differentiate…
rkurchin 7b8c195
formatting
rkurchin 9c7fb7b
Merge branch 'main' into contrib_guide
rkurchin c3a1fc0
more formatting
rkurchin 21ceca0
try to fix macOS CI failure
rkurchin fa2336b
try to fix macOS CI failure
rkurchin c5a415d
Merge branch 'contrib_guide' of https://github.com/aced-differentiate…
rkurchin 222675e
Revert "try to fix macOS CI failure"
rkurchin 5b932c4
remove macOS from CI for now since I can't figure out how to fix that…
rkurchin 7434cc2
fix merge artifact in sgcnn example
rkurchin e21a892
add install instruction
rkurchin 57fdfc4
add some links for getting started
rkurchin df4266e
add not install, duh
rkurchin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: format-check | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
tags: '*' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
julia-version: [1.6.0] | ||
julia-arch: [x86] | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Install JuliaFormatter and format | ||
# This will use the latest version by default but you can set the version like so: | ||
# | ||
# julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))' | ||
run: | | ||
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))' | ||
julia -e 'using JuliaFormatter; format(".", verbose=true)' | ||
- name: Format check | ||
run: | | ||
julia -e ' | ||
out = Cmd(`git diff --name-only`) |> read |> String | ||
if out == "" | ||
exit(0) | ||
else | ||
@error "Some files have not been formatted !!!" | ||
write(stdout, out) | ||
exit(1) | ||
end' |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Contribution Guide | ||
|
||
We very happily accept contributions from the community to make our packages better! For the smoothest experience, please read this document and follow the guidelines and we can hopefully get your PR merged in a jiffy! We've tried to keep the guidelines lightweight, reasonable, and not too onerous. :) | ||
|
||
(Don't know what a PR is? Know how to write Julia code but never contributed to a package before? Refer to the [Getting Started](#getting-started) section further on down the page.) | ||
|
||
Thanks to the [OpenMM contribution guide](https://github.com/openmm/openmm/blob/master/CONTRIBUTING.md) and the [SciML ColPrac document](http://colprac.sciml.ai), which were the main inspirations/starting points for the suggestions contained herein. | ||
|
||
## Guidelines | ||
|
||
* Commit frequently and make the commit messages detailed! Ideally specifying directory/file as well as nature of changes. A sample commit message format could be: | ||
``` | ||
directory of file affected: changes introduced | ||
|
||
...commit message explicitly stating the changes made. this should be concise, and crisp enough, that the maintainers must be able to understand the changes this commit introduces without having to go through the diff-logs... | ||
|
||
Signed-off/Co-authored with/Suggested-by messages for credit where it's due | ||
``` | ||
* In general, unless a change is very minor (e.g. fixing a typo), open an issue before opening a pull request that fixes that issue. This allows open discussion, collaboration, and prioritization of changes to the code. Please also label the issue appropriately. We use a set of labels that is slightly expanded from the [GitHub standard set](https://docs.github.com/en/github/managing-your-work-on-github/managing-labels#about-default-labels): | ||
|
||
| Label | Description | | ||
| ------------- | ------------- | | ||
| `breaking` | Indicates a pull request that introduces breaking changes | | ||
| `bug` | Indicates an unexpected problem or unintended behavior | | ||
| `documentation` | Indicates a need for improvements or additions to documentation | | ||
| `duplicate` | Indicates similar issues or pull requests | | ||
| `enhancement` | Indicates new feature requests | | ||
| `good first issue` | Indicates a good issue for first-time contributors | | ||
| `help wanted` | Indicates that a maintainer wants help on an issue or pull request | | ||
| `invalid` | Indicates that an issue or pull request is no longer relevant | | ||
| `longterm` | Indicates a feature that we intend to implement, but is not high-priority right now (generally only to be used by maintainers) | | ||
| `performance` | Indicates an issue/PR to improve code performance. | | ||
| `priority` | Indicates an issue that is high-priority (generally only to be used by maintainers) | | ||
| `question` | Indicates that an issue or pull request needs more information | | ||
| `wontfix` | Indicates that work won't continue on an issue or pull request | | ||
|
||
* If you are adding/changing features, make sure to add/update tests (DO NOT comment out tests!) and documentation accordingly! Ideally, if relevant, include example usage. | ||
* Keep things modular! If you are fixing/adding multiple things, do so via separate issues/PR's to streamline review and merging. | ||
* It is recommended that you set up [JuliaFormatter](https://domluna.github.io/JuliaFormatter.jl/dev/) (also see [VSCode extension](https://marketplace.visualstudio.com/items?itemName=singularitti.vscode-julia-formatter)). A GitHub action will check that code adheres to the style guide. | ||
|
||
## Getting Started | ||
|
||
Coming... |
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 |
---|---|---|
|
@@ -8,14 +8,14 @@ Documentation is in progress [over here](https://aced-differentiate.github.io/At | |
|
||
## Getting Started | ||
|
||
1. Clone this package to wherever you want to play. | ||
1. To install the latest tagged version, in your Julia REPL, do `]install AtomicGraphNets`. However, you can also play with the latest version on the `main` branch by skipping to step 2 and then doing `]install /path/to/repo` where you replace the dummy path with the location of your clone. | ||
|
||
rkurchin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
2. Go and try out the example in examples/example1/ – it has its own README file with detailed instructions. | ||
2. Clone this package to wherever you want to play. | ||
|
||
* more network architectures (see issues for some ideas) | ||
3. Go and try out the example in examples/example1/ – it has its own README file with detailed instructions. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it might help to put a quick note on how to actually use the package here (like |
||
## Contact | ||
Please feel free to fork and play, and reach out here on GitHub or to rkurchin [at] cmu [dot] edu with suggestions, etc.! | ||
## Contributing | ||
We welcome community contributions! Please refer to [contribution guide](CONTRIBUTING.md) for suggestions on how to go about things. | ||
|
||
## Acknowledgements | ||
Many thanks to [Dhairya Gandhi](https://github.com/DhairyaLGandhi) for helping out with some adjoints to actually make these layers trainable! :D |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How necessary is this in
CONTRIBUTING.md
? I'm assuming that stuff like runninggit clone ...
, activating a Julia environment, etc would be mentioned here.But wouldn't the people who would be looking at this file already have the essential know-how of doing all that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the answer to this depends upon how many people you think are out there who can write decent Julia code, might be interested in contributing some of their code to a package, but haven't actually developed packages before. Given that I was such a person relatively recently (and was one in Python a couple years before that), I tend to think there are a fair number, but I may be biased due to personal experience... ;) At any rate, I don't think it hurts to have it there...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than actually writing a new guide, I decided to just compile some other nice resources.