-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR: major refactoring, docs and tests
refactor: major refactoring, docs and tests
- Loading branch information
Showing
35 changed files
with
4,349 additions
and
1,460 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
name: 🐛 Bug report | ||
about: If something isn't working 🔧 | ||
title: '' | ||
labels: bug | ||
assignees: | ||
--- | ||
|
||
## Bug Report | ||
|
||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
## How To Reproduce | ||
|
||
Steps to reproduce the behavior: | ||
|
||
### Code sample | ||
|
||
<!-- If applicable, attach a minimal code sample to reproduce the decried issue. --> | ||
|
||
### Environment | ||
|
||
* OS: [e.g. Linux / Windows / macOS] | ||
* Python version, get it with: | ||
|
||
```bash | ||
python --version | ||
``` | ||
|
||
### Screenshots | ||
|
||
<!-- If applicable, add screenshots to help explain your problem. --> | ||
|
||
## Expected behavior | ||
|
||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
## Additional context | ||
|
||
<!-- Add any other context about the problem here. --> |
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,3 @@ | ||
# Configuration: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository | ||
|
||
blank_issues_enabled: false |
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,23 @@ | ||
--- | ||
name: 🚀 Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: | ||
--- | ||
|
||
## Feature Request | ||
|
||
<!-- A clear and concise description of the feature proposal. --> | ||
|
||
## Motivation | ||
|
||
<!-- Please describe the motivation for this proposal. --> | ||
|
||
## Alternatives | ||
|
||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
## Additional context | ||
|
||
<!-- Add any other context or screenshots about the feature request here. --> |
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,21 @@ | ||
--- | ||
name: ❓ Question | ||
about: Ask a question about this project 🎓 | ||
title: '' | ||
labels: question | ||
assignees: | ||
--- | ||
|
||
## Checklist | ||
|
||
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> | ||
|
||
- [ ] I've searched the project's [`issues`](https://github.com/lgrcia/twirl/issues?q=is%3Aissue). | ||
|
||
## Question | ||
|
||
<!-- What is your question --> | ||
|
||
## Additional context | ||
|
||
<!-- Add any other context or screenshots about the feature request here. --> |
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,28 @@ | ||
## Description | ||
|
||
<!-- Add a more detailed description of the changes if needed. --> | ||
|
||
## Related Issue | ||
|
||
<!-- If your PR refers to a related issue, link it here. --> | ||
|
||
## Type of Change | ||
|
||
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> | ||
|
||
- [ ] Examples / docs / tutorials / dependencies update | ||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] Improvement (non-breaking change which improves an existing feature) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to change) | ||
- [ ] Security fix | ||
|
||
## Checklist | ||
|
||
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> | ||
|
||
- [ ] I've read the [`CODE_OF_CONDUCT.md`](https://github.com/lgrcia/twirl/blob/master/CODE_OF_CONDUCT.md) document. | ||
- [ ] I've read the [`CONTRIBUTING.md`](https://github.com/lgrcia/twirl/blob/master/CONTRIBUTING.md) guide. | ||
- [ ] I've updated the code style using [black](https://black.readthedocs.io/en/stable/). | ||
- [ ] I've written tests for all new methods and classes that I created. | ||
- [ ] I've written the docstring in [numpy style](https://numpydoc.readthedocs.io/en/latest/format.html#documenting-classes) for all the methods and classes that I used. |
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,50 @@ | ||
name: twirl/publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci: | ||
name: Build & Publish w/Poetry | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
os: [ ubuntu-latest ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
PROJECT_NAME: "Twirl" | ||
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout 🛎 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
|
||
- name: Setup Poetry Configuration 🛠️ | ||
run: poetry config pypi-token.pypi $PYPI_API_TOKEN | ||
|
||
- name: Install Dependencies | ||
run: poetry install --no-root --no-dev | ||
|
||
- name: Build Package 🐍 | ||
run: poetry build | ||
|
||
- name: Dry-run Publish to PyPI 😬 | ||
run: poetry publish --dry-run | ||
|
||
- name: Publish to PyPI 🚀 | ||
run: poetry publish --skip-existing |
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,20 @@ | ||
name: Python package | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip poetry | ||
python -m poetry install --with test | ||
- name: Test with pytest | ||
run: | | ||
python -m poetry run python -m pytest |
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,15 @@ | ||
version: 2 | ||
|
||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.8" | ||
jobs: | ||
post_create_environment: | ||
- pip install poetry | ||
- poetry config virtualenvs.create false | ||
post_install: | ||
- poetry install --with docs | ||
|
||
sphinx: | ||
configuration: docs/conf.py |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Oops, something went wrong.