Skip to content

Commit

Permalink
Remove labelling UI (#72)
Browse files Browse the repository at this point in the history
* Remove UI elements that now live in ipyannotations

* Update distributed queue to use sqlmodel

* Fix bug with in-memory queue

* Remove display functionality from base widget

* Update the tests

* Remove the in-memory queue using deque

- the database queue with in-memory sqlite serves
  the same purpose
- tests showed it was actually the same speed

* Refactor db_queue:

- use sqlmodel session
- remove old sqlalchemy code

* Use try-except for model fitting issues

* Set line length to 88 for whole project

* Remove more dead code, and improve testing

* Add & test distributed functionality to base widget

since DBqueue is used in the base widget, there is
no need to keep using the distributed version

* Fix linting and type issues

* Update versions of python in CI test suite

* Add codetiming to the dependencies

* Create a separate version file

* Only register undo function if possible

* Edit docs to reflect new package

* Remove UI elements that now live in ipyannotations

* Update distributed queue to use sqlmodel

* Fix bug with in-memory queue

* Remove display functionality from base widget

* Update the tests

* Remove the in-memory queue using deque

- the database queue with in-memory sqlite serves
  the same purpose
- tests showed it was actually the same speed

* Refactor db_queue:

- use sqlmodel session
- remove old sqlalchemy code

* Use try-except for model fitting issues

* Set line length to 88 for whole project

* Remove more dead code, and improve testing

* Add & test distributed functionality to base widget

since DBqueue is used in the base widget, there is
no need to keep using the distributed version

* Fix linting and type issues

* Update versions of python in CI test suite

* Add codetiming to the dependencies

* Create a separate version file

* Only register undo function if possible

* Edit docs to reflect new package

* Configure test ver to target right file

* Ignore flake8 warning for binary operators

* Move version *back* to being statically defined

Flit was attempting to dynamically load the version info,
but without all dependencies this lead to import errors.

* Converting a few doc notebooks to markdown.

* Update the API docs to the latest API changes

* Remove nbsphinx JS (it duplicates widgets)

* Sphinx config changes for autodoc & intersphinx

- Intersphinx is now aware of ipyannotations
- autodoc now documents class init signatures

* Convert examples to markdown (was notebooks)

* Move docker compose example to new API

* Move rest of documentation to MyST

* Remove notebook tests from CI

Notebooks are no longer used in the docs.

* Refactor where some of the code lives

* Remove unused dependencies

* Remove unused example

* Make documentation clearer.

- add an example on the index home page
- incorporate feedback on language
  • Loading branch information
janfreyberg committed Sep 11, 2022
1 parent a6a87db commit 56f3965
Show file tree
Hide file tree
Showing 84 changed files with 1,962 additions and 265,614 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Package build and publishing
name: Build

on:
push:
Expand All @@ -7,8 +7,6 @@ on:
tags:
- '*'
pull_request:
branches:
- main

jobs:
build:
Expand All @@ -28,7 +26,7 @@ jobs:
- name: Set testing variables
if: "!startsWith(github.event.ref, 'refs/tags')"
run: |
testver src/superintendent/
testver src/superintendent
echo "FLIT_INDEX_URL=https://test.pypi.org/legacy/" >> $GITHUB_ENV
echo "FLIT_PASSWORD=${{ secrets.test_pypi_secret }}" >> $GITHUB_ENV
- name: Build
Expand Down
21 changes: 2 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Unit tests and linting
name: Tests

on:
push:
pull_request:
schedule:
- cron: "0 15 * * 5"

Expand Down Expand Up @@ -45,21 +46,3 @@ jobs:
run: python -m coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run-examples:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -qq --upgrade pip flit
flit install --symlink --extras test,examples
- name: Run notebooks
run: |
find docs -maxdepth 2 -name '*.ipynb' | xargs jupyter nbconvert --to notebook --execute
17 changes: 10 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21 # Use the revision sha / tag you want to point at
- repo: https://github.com/pycqa/isort
rev: '5.8.0' # Use the revision sha / tag you want to point at
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 19.3b0
exclude: ^tests/
- repo: https://github.com/psf/black
rev: '21.8b0'
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: 'v2.3.0'
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.730 # Use the sha / tag you want to point at
rev: ''
hooks:
- id: mypy
- id: mypy
exclude: ^tests/|docs
File renamed without changes.
Loading

0 comments on commit 56f3965

Please sign in to comment.