Skip to content

Commit c544c79

Browse files
committed
Setup repo (fingers crossed!)
0 parents  commit c544c79

14 files changed

+3458
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
graphblas_algorithms/_version.py export-subst

.github/workflows/test.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ main ]
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
defaults:
12+
run:
13+
shell: bash -l {0}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
18+
python-version: ["3.8", "3.9", "3.10"]
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
- name: Conda
25+
uses: conda-incubator/setup-miniconda@v2
26+
with:
27+
auto-update-conda: true
28+
python-version: ${{ matrix.python-version }}
29+
channels: conda-forge
30+
activate-environment: testing
31+
- name: Install dependencies
32+
run: |
33+
conda install -c conda-forge grblas pytest coverage black flake8 coveralls
34+
pip install -e .
35+
- name: Style checks
36+
run: |
37+
flake8
38+
black . --check --diff
39+
- name: PyTest
40+
run: |
41+
coverage run --branch -m pytest
42+
- name: Coverage
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
COVERALLS_FLAG_NAME: ${{ matrix.python-version}}/${{ matrix.os }}
46+
COVERALLS_PARALLEL: true
47+
run: |
48+
coverage report --show-missing
49+
coveralls --service=github
50+
51+
finish:
52+
needs: test
53+
if: always()
54+
runs-on: ubuntu-latest
55+
defaults:
56+
run:
57+
shell: bash -l {0}
58+
steps:
59+
- name: Create env
60+
uses: conda-incubator/setup-miniconda@v2
61+
with:
62+
auto-update-conda: true
63+
python-version: "3.10"
64+
activate-environment: finishing
65+
- name: Update env
66+
run: conda install -c conda-forge coveralls
67+
- name: Coveralls finished
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
run: |
71+
coveralls --finish

.gitignore

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Vi
10+
*.swp
11+
*.swo
12+
*.swn
13+
14+
# Distribution / packaging
15+
.Python
16+
build/
17+
develop-eggs/
18+
dist/
19+
downloads/
20+
eggs/
21+
.eggs/
22+
lib/
23+
lib64/
24+
parts/
25+
sdist/
26+
var/
27+
wheels/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
MANIFEST
32+
33+
# PyInstaller
34+
# Usually these files are written by a python script from a template
35+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
36+
*.manifest
37+
*.spec
38+
39+
# Installer logs
40+
pip-log.txt
41+
pip-delete-this-directory.txt
42+
43+
# Unit test / coverage reports
44+
htmlcov/
45+
.tox/
46+
.coverage
47+
.coverage.*
48+
.cache
49+
nosetests.xml
50+
coverage.xml
51+
*.cover
52+
.hypothesis/
53+
.pytest_cache/
54+
55+
# Translations
56+
*.mo
57+
*.pot
58+
59+
# Django stuff:
60+
*.log
61+
local_settings.py
62+
db.sqlite3
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# pyenv
81+
.python-version
82+
83+
# celery beat schedule file
84+
celerybeat-schedule
85+
86+
# SageMath parsed files
87+
*.sage.py
88+
89+
# Environments
90+
.env
91+
.venv
92+
env/
93+
venv/
94+
ENV/
95+
env.bak/
96+
venv.bak/
97+
98+
# Spyder project settings
99+
.spyderproject
100+
.spyproject
101+
102+
# Rope project settings
103+
.ropeproject
104+
105+
# mkdocs documentation
106+
/site
107+
108+
# mypy
109+
.mypy_cache/
110+
111+
# PyCharm
112+
.idea
113+
114+
# Mac
115+
.DS_Store
116+
117+
# VSCode
118+
.vscode
119+
120+
# Generated IPython notebooks
121+
*.nbconvert.ipynb
122+
123+
# Dask worker
124+
dask-worker-space/

CODE_OF_CONDUCT.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of
4+
fostering an open and welcoming community, we pledge to respect all people who
5+
contribute through reporting issues, posting feature requests, updating
6+
documentation, submitting pull requests or patches, and other activities.
7+
8+
We are committed to making participation in this project a harassment-free
9+
experience for everyone, regardless of level of experience, gender, gender
10+
identity and expression, sexual orientation, disability, personal appearance,
11+
body size, race, ethnicity, age, religion, nationality, socio-economic status,
12+
educational level, family status, culture, or political belief.
13+
14+
Examples of unacceptable behavior by participants include:
15+
16+
* The use of sexualized language or imagery
17+
* Personal attacks
18+
* Trolling or insulting/derogatory comments
19+
* Public or private harassment
20+
* Publishing other's private information, such as physical or electronic
21+
addresses, without explicit permission
22+
* Other unethical or unprofessional conduct
23+
24+
Project maintainers have the right and responsibility to remove, edit, or
25+
reject comments, commits, code, wiki edits, issues, and other contributions
26+
that are not aligned to this Code of Conduct, or to ban temporarily or
27+
permanently any contributor for other behaviors that they deem inappropriate,
28+
threatening, offensive, or harmful.
29+
30+
By adopting this Code of Conduct, project maintainers commit themselves to
31+
fairly and consistently applying these principles to every aspect of managing
32+
this project. Project maintainers who do not follow or enforce the Code of
33+
Conduct may be permanently removed from the project team.
34+
35+
This Code of Conduct applies both within project spaces and in public spaces
36+
when an individual is representing the project or its community.
37+
38+
A working group of community members is committed to promptly addressing any
39+
reported issues. The working group is made up of Grblas and Metagraph contributors and users.
40+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
41+
reported by contacting the working group by e-mail (metagraph-conduct@googlegroups.com).
42+
Messages sent to this e-mail address will not be publicly visible but only to
43+
the working group members. The working group currently includes
44+
45+
- Stan Seibert
46+
- Jim Kitchen
47+
- Erik Welch
48+
- Paul Nguyen
49+
50+
All complaints will be reviewed and investigated and will result in a response
51+
that is deemed necessary and appropriate to the circumstances. Maintainers are
52+
obligated to maintain confidentiality with regard to the reporter of an
53+
incident.
54+
55+
This Code of Conduct is adapted from the [Numba Code of Conduct][numba], which is based on the [Contributor Covenant][homepage],
56+
version 1.3.0, available at
57+
[http://contributor-covenant.org/version/1/3/0/][version],
58+
and the [Swift Code of Conduct][swift].
59+
60+
[numba]: https://github.com/numba/numba-governance/blob/accepted/code-of-conduct.md
61+
[homepage]: http://contributor-covenant.org
62+
[version]: http://contributor-covenant.org/version/1/3/0/
63+
[swift]: https://swift.org/community/#code-of-conduct

0 commit comments

Comments
 (0)