-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use pyproject.toml. Remove unnecesary files. Improve CI workflows * name change * stringify python version * Take version from a file. Install optional deps from local as well * Changelog.md -> CHANGELOG.md * add pydata-sphinx-theme to dependencies * try to fix test workflow * lint * Add 'bash -l {0}' to tests * [no ci] update contributing.md * Update CHANGELOG.md Co-authored-by: Ravin Kumar <[email protected]> --------- Co-authored-by: Ravin Kumar <[email protected]>
- Loading branch information
1 parent
07e6f77
commit c610691
Showing
19 changed files
with
215 additions
and
258 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -46,30 +46,36 @@ Please reasonably document any additions or changes to the codebase, when in dou | |
|
||
1. Fork the [project repository](https://github.com/bambinos/bambi/) by clicking on the 'Fork' button near the top right of the main repository page. This creates a copy of the code under your GitHub user account. | ||
|
||
2. Clone your fork of the Bambi repo from your GitHub account to your local disk, and add the base repository as a remote: | ||
1. Clone your fork of the Bambi repo from your GitHub account to your local disk, and add the base repository as a remote: | ||
|
||
```bash | ||
git clone [email protected]:<your GitHub handle>/bambi.git | ||
cd bambi | ||
git remote add upstream [email protected]:bambinos/bambi.git | ||
``` | ||
|
||
3. Create a feature branch (e.g. `my-feature`) to hold your development changes: | ||
1. Create a feature branch (e.g. `my-feature`) to hold your development changes: | ||
|
||
```bash | ||
git checkout -b my-feature | ||
``` | ||
|
||
Always use a feature branch. It's good practice to never routinely work on the `main` branch of any repository. | ||
|
||
4. Project requirements are in `requirements.txt`, and libraries used for development are in `requirements-dev.txt`. To set up a development environment, you may run: | ||
1. Install the package in editable mode and its development dependencies. | ||
|
||
```bash | ||
pip install -r requirements.txt | ||
pip install -r requirements-dev.txt | ||
pip install -e . | ||
pip install .[dev] | ||
``` | ||
|
||
5. Develop the feature on your feature branch. Add changed files using `git add` and then `git commit` files: | ||
If you're going to develop futures related to JAX, install jax-related dependencies. | ||
|
||
```bash | ||
pip install .[jax] | ||
``` | ||
|
||
1. Develop the feature on your feature branch. Add changed files using `git add` and then `git commit` files: | ||
|
||
```bash | ||
git add modified_files | ||
|
@@ -117,19 +123,19 @@ We recommend that your contribution complies with the following guidelines befor | |
- Code coverage **cannot** decrease. Coverage can be checked with **pytest-cov** package: | ||
|
||
```bash | ||
pytest --cov=bambi --cov-report=html tests/ | ||
pytest --cov=bambi --cov-report=html tests | ||
``` | ||
|
||
- Your code passes black | ||
|
||
```bash | ||
black bambi/ | ||
black bambi | ||
``` | ||
|
||
- Your code passes pylint | ||
|
||
```bash | ||
pylint bambi/ | ||
pylint bambi | ||
``` | ||
|
||
**This guide was derived from the [ArviZ guide to contributing](https://github.com/arviz-devs/arviz/blob/master/CONTRIBUTING.md)** |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
0.9.3 |
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 +1,12 @@ | ||
__version__ = "0.9.3" | ||
import os | ||
|
||
here = os.path.dirname(os.path.realpath(__file__)) | ||
|
||
|
||
def read_version(): | ||
version_file = os.path.join(here, "VERSION.txt") | ||
with open(version_file, encoding="utf-8") as buff: | ||
return buff.read() | ||
|
||
|
||
__version__ = read_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
Oops, something went wrong.