Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit f73ee63

Browse files
author
JacksonMaxfield
committed
Initial commit
0 parents  commit f73ee63

30 files changed

+1555
-0
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
charset = utf-8
11+
end_of_line = lf
12+
13+
[*.bat]
14+
indent_style = tab
15+
end_of_line = crlf
16+
17+
[LICENSE]
18+
insert_final_newline = false
19+
20+
[Makefile]
21+
indent_style = tab
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug Report
3+
about: '"Something''s wrong..."'
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Description
11+
*A clear description of the bug*
12+
13+
14+
15+
16+
## Expected Behavior
17+
*What did you expect to happen instead?*
18+
19+
20+
21+
22+
## Reproduction
23+
*A minimal example that exhibits the behavior.*
24+
25+
26+
27+
28+
## Environment
29+
*Any additional information about your environment*
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature Request
3+
about: '"It would be really cool if x did y..."'
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Use Case
11+
*Please provide a use case to help us understand your request in context*
12+
13+
14+
15+
16+
## Solution
17+
*Please describe your ideal solution*
18+
19+
20+
21+
22+
## Alternatives
23+
*Please describe any alternatives you've considered, even if you've dismissed them*

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**Pull request recommendations:**
2+
- [ ] Name your pull request _your-development-type/short-description_. Ex: _feature/read-tiff-files_
3+
- [ ] Link to any relevant issue in the PR description. Ex: _Resolves [gh-12], adds tiff file format support_
4+
- [ ] Provide context of changes.
5+
- [ ] Provide relevant tests for your feature or bug fix.
6+
- [ ] Provide or update documentation for any feature added by your pull request.
7+
8+
Thanks for contributing!

.github/workflows/build-docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Set up Python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.7
17+
- name: Install Dependencies
18+
run: |
19+
pip install --upgrade pip
20+
pip install .[dev]
21+
- name: Generate Docs
22+
run: |
23+
make gen-docs
24+
touch docs/_build/html/.nojekyll
25+
- name: Publish Docs
26+
uses: JamesIves/github-pages-deploy-action@releases/v3
27+
with:
28+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
29+
BASE_BRANCH: master # The branch the action should deploy from.
30+
BRANCH: gh-pages # The branch the action should deploy to.
31+
FOLDER: docs/_build/html/ # The folder the action should deploy.
32+

.github/workflows/build-master.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build Master
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
# <minute [0,59]> <hour [0,23]> <day of the month [1,31]> <month of the year [1,12]> <day of the week [0,6]>
9+
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
10+
# Run every Monday at 18:00:00 UTC (Monday at 10:00:00 PST)
11+
- cron: '0 18 * * 1'
12+
13+
jobs:
14+
test:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
python-version: [3.6, 3.7, 3.8]
19+
os: [ubuntu-latest, windows-latest, macOS-latest]
20+
21+
steps:
22+
- uses: actions/checkout@v1
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v1
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install Dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install .[test]
31+
- name: Test with pytest
32+
run: |
33+
pytest --cov-report xml --cov=aics_dask_utils aics_dask_utils/tests/
34+
codecov -t ${{ secrets.CODECOV_TOKEN }}
35+
36+
lint:
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- uses: actions/checkout@v1
41+
- name: Set up Python 3.7
42+
uses: actions/setup-python@v1
43+
with:
44+
python-version: 3.7
45+
- name: Install Dependencies
46+
run: |
47+
python -m pip install --upgrade pip
48+
pip install .[test]
49+
- name: Lint with flake8
50+
run: |
51+
flake8 aics_dask_utils --count --verbose --max-line-length=127 --show-source --statistics

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- stable
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Set up Python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.7
17+
- name: Install Dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install setuptools wheel
21+
- name: Build Package
22+
run: |
23+
python setup.py sdist bdist_wheel
24+
- name: Publish to PyPI
25+
uses: pypa/gh-action-pypi-publish@master
26+
with:
27+
user: aicspypi
28+
password: ${{ secrets.PYPI_TOKEN }}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test and Lint
2+
3+
on: pull_request
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
python-version: [3.6, 3.7, 3.8]
11+
os: [ubuntu-latest, windows-latest, macOS-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install Dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install .[test]
23+
- name: Test with pytest
24+
run: |
25+
pytest aics_dask_utils/tests/
26+
27+
lint:
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- uses: actions/checkout@v1
32+
- name: Set up Python 3.7
33+
uses: actions/setup-python@v1
34+
with:
35+
python-version: 3.7
36+
- name: Install Dependencies
37+
run: |
38+
python -m pip install --upgrade pip
39+
pip install .[test]
40+
- name: Lint with flake8
41+
run: |
42+
flake8 aics_dask_utils --count --verbose --max-line-length=127 --show-source --statistics

.gitignore

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# OS generated files
29+
.DS_Store
30+
31+
# PyInstaller
32+
# Usually these files are written by a python script from a template
33+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
34+
*.manifest
35+
*.spec
36+
37+
# Installer logs
38+
pip-log.txt
39+
pip-delete-this-directory.txt
40+
41+
# Unit test / coverage reports
42+
htmlcov/
43+
.tox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
.hypothesis/
51+
.pytest_cache/
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
61+
# Flask stuff:
62+
instance/
63+
.webassets-cache
64+
65+
# Scrapy stuff:
66+
.scrapy
67+
68+
# Sphinx documentation
69+
docs/_build/
70+
docs/aics_dask_utils.*rst
71+
72+
# PyBuilder
73+
target/
74+
75+
# Jupyter Notebook
76+
.ipynb_checkpoints
77+
78+
# pyenv
79+
.python-version
80+
81+
# celery beat schedule file
82+
celerybeat-schedule
83+
84+
# Dask
85+
dask-worker-space
86+
87+
# SageMath parsed files
88+
*.sage.py
89+
90+
# dotenv
91+
.env
92+
93+
# virtualenv
94+
.venv
95+
venv/
96+
ENV/
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/

0 commit comments

Comments
 (0)