Skip to content
Open
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: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
fetch-depth: 0
persist-credentials: false

- uses: hynek/build-and-inspect-python-package@efb823f52190ad02594531168b7a2d5790e66516 # v2.14.0
- uses: hynek/build-and-inspect-python-package@ebd3b6c6d32b78607276633a23bdd4481bd23ca8 # v2.18.0

publish-docker:
if: github.event_name != 'schedule' || github.repository == 'Calysto/octave_kernel'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
with:
persist-credentials: false
- uses: calysto/maintainer_tools/actions/base-setup@v1
- uses: hynek/build-and-inspect-python-package@efb823f52190ad02594531168b7a2d5790e66516 # v2.14.0
- uses: hynek/build-and-inspect-python-package@ebd3b6c6d32b78607276633a23bdd4481bd23ca8 # v2.18.0
id: baipp
with:
include-free-threaded: "true"
Expand Down
28 changes: 14 additions & 14 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ default:
@just --list

install:
poetry install --with dev,test
poetry install --only main,dev,test
poetry run pre-commit install

docker-build:
Expand All @@ -21,51 +21,51 @@ docker-run:
docker run -it --rm -p {{PORT}}:8888 calysto/octave-notebook

test *args="":
poetry install --with test
poetry install --only main,test
poetry run pytest {{args}}

test-kernel:
poetry install --with test
poetry install --only main,test
poetry run python -m octave_kernel install --sys-prefix
poetry run python -m unittest -v test_octave_kernel.py
poetry run python -m octave_kernel.check
poetry run python test_octave_kernel.py

test-notebook:
poetry install --with test
poetry run jupyter nbconvert --to notebook --execute --ExecutePreprocessor.kernel_name=octave --ExecutePreprocessor.timeout=60 --stdout octave_kernel.ipynb > /dev/null
poetry install --only main,test
poetry run jupyter execute --kernel_name octave octave_kernel.ipynb

cover *args="":
poetry install --with coverage
poetry install --only main,coverage
poetry run pytest --cov=octave_kernel --cov-report=term-missing --cov-report=xml --cov-fail-under=90 {{args}}
poetry run coverage html

typing:
poetry install --with typing
poetry install --only main,typing
poetry run mypy . --install-types --non-interactive

run-notebook:
poetry install --with test
poetry install --only main,test
poetry run jupyter notebook octave_kernel.ipynb

test-manual:
poetry install --with dev
poetry install --only main,dev
poetry run python -m octave_kernel install --sys-prefix
poetry run jupyter-console --kernel=octave

lint:
poetry install --with dev
poetry install --only main,dev
poetry run pre-commit run ruff-format --all-files
poetry run pre-commit run ruff-check --all-files
poetry run pre-commit run validate-pyproject --all-files
poetry run pre-commit run poetry-check --all-files

pre-commit *args="":
poetry install --with dev
poetry install --only main,dev
poetry run pre-commit run --all-files {{args}}

_asv-setup:
poetry install --with benchmark
poetry install --only main,benchmark
poetry run asv machine --yes

benchmark *args="": _asv-setup
Expand All @@ -75,9 +75,9 @@ benchmark-compare: _asv-setup
poetry run asv continuous $(git merge-base HEAD origin/main) HEAD --split

docs:
poetry install --with docs
poetry install --only main,docs
poetry run mkdocs build

docs-serve:
poetry install --with docs
poetry install --only main,docs
poetry run mkdocs serve
28 changes: 14 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Free Threading",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
Expand All @@ -38,7 +39,7 @@ content-type = "text/markdown"

[dependency-groups]
dev = ["pre-commit", "jupyter-console"]
test = ["pytest", "nbconvert", "jupyter_kernel_test"]
test = ["pytest", "nbclient", "jupyter_kernel_test"]
typing = [{ include-group = "test" }, "pip", "mypy>=1.0"]
coverage = ["pytest", "pytest-cov"]
benchmark = ["asv"]
Expand Down
Loading