Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused features #74

Merged
merged 5 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
"settings": {
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"python.formatting.provider": "black",
"python.languageServer": "Pylance",
"[python]": {
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.tabSize": 4
}
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install project dependencies
run: pip install poetry && poetry install
- name: Build docs
run: docs/build
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
- run: pip install poetry && poetry install
- run: docs/build
- uses: peaceiris/actions-gh-pages@v3
with:
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Publish package to PyPI
run: pip install poetry && poetry publish --build
- run: pip install poetry && poetry publish --build
11 changes: 3 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install project dependencies
run: pip install poetry && poetry install
- name: Test code's formatting (Black)
run: black --check docs tests decode
- name: Test code's execution (pytest)
run: pytest -v tests
- name: Test docs' building (Sphinx)
run: docs/build
- run: pip install poetry && poetry install
- run: black --check docs tests decode
- run: docs/build
36 changes: 1 addition & 35 deletions decode/__init__.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
__all__ = [
"array",
"cube",
"io",
"models",
"logging",
"plot",
"utils",
"ones",
"zeros",
"full",
"empty",
"ones_like",
"zeros_like",
"full_like",
"empty_like",
"concat",
"fromcube",
"tocube",
"makecontinuum",
"setlogger",
]
__all__ = []
__version__ = "1.0.0"
__author__ = "Akio Taniguchi"


# submodules
from . import array
from . import cube
from . import io
from . import models
from . import logging
from . import plot
from . import utils
from .array import *
from .cube import *
from .logging import *
Loading