File tree Expand file tree Collapse file tree 2 files changed +15
-16
lines changed
Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,14 @@ jobs:
2020 python-version : 3.x
2121 - name : Install Black
2222 run : pip install black
23- - name : Run black --check .
24- run : black --check .
2523 - name : If needed, commit black changes to the pull request
26- if : failure()
2724 run : |
28- black .
29- git config --global user.name 'formatting'
30- git config --global user.email 'mikeheddes@users.noreply.github.com'
31- git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
32- git checkout $GITHUB_HEAD_REF
33- git commit -am "Format Python code"
34- git push
25+ if black --check . ; then
26+ black .
27+ git config --global user.name 'formatting'
28+ git config --global user.email 'mikeheddes@users.noreply.github.com'
29+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
30+ git checkout $GITHUB_HEAD_REF
31+ git commit -am "Format Python code"
32+ git push
33+ fi
Original file line number Diff line number Diff line change 33
44</h1 >
55<p align =" center " >
6- <a href="https://github.com/mikeheddes/hdc-lib/blob/main/LICENSE">
7- <img alt="GitHub license" src="https://img.shields.io/badge/license-MIT-orange.svg?style=flat" /></a>
6+ <a href="https://github.com/mikeheddes/hdc-lib/blob/main/LICENSE"><img alt="GitHub license" src="https://img.shields.io/badge/license-MIT-orange.svg?style=flat" /></a>
87 <a href="https://pypi.org/project/hdc/"><img alt="pypi version" src="https://img.shields.io/pypi/v/hdc.svg?style=flat&color=orange" /></a>
9- <a href="https://github.com/mikeheddes/hdc-lib/actions/workflows/test.yml?query=branch%3Amain"><img alt="tests status" src="https://img.shields.io/github/workflow/status/mikeheddes/hdc-lib/Testing/main?label=tests&style=flat" /></a>
10- <img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" />
8+ <a href="https://anaconda.org/mikeheddes/hdc"><img alt="conda version" src="https://img.shields.io/conda/v/mikeheddes/hdc?label=conda&style=flat&color=orange" /></a>
9+ <a href="https://github.com/mikeheddes/hdc-lib/actions/workflows/test.yml?query=branch%3Amain"><img alt="tests status" src="https://img.shields.io/github/workflow/status/mikeheddes/hdc-lib/Testing/main?label=tests&style=flat" />
10+ </a><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" />
1111</p >
1212
1313This is a Python library for Hyperdimensional Computing.
@@ -17,14 +17,14 @@ This is a Python library for Hyperdimensional Computing.
1717
1818## Installation
1919
20- The library is hosted on PyPi and Conda , use one of the following commands to install:
20+ The library is hosted on PyPi and Anaconda , use one of the following commands to install:
2121
2222``` bash
2323pip install hdc
2424```
2525
2626``` bash
27- conda install -c conda-forge hdc
27+ conda install -c mikeheddes hdc
2828```
2929
3030## Documentation
You can’t perform that action at this time.
0 commit comments