Skip to content

Commit

Permalink
Merge pull request #42 from inpefess/doc-coverage
Browse files Browse the repository at this point in the history
Doc coverage
  • Loading branch information
inpefess committed Jan 10, 2022
2 parents 7219ff9 + e314a1f commit 01f3274
Show file tree
Hide file tree
Showing 20 changed files with 449 additions and 448 deletions.
24 changes: 15 additions & 9 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
Dockerfile
venv*/
dist/
doc/build/
.mypy_cache/
.pytest_cache/
__pycache__/
examples/tty.gif
doc/
./**/.*
./**/__pycache__/
./**/*.gif
examples/video_example/
examples/output/
examples/session.log
examples/.mypy_cache/
examples/.ipynb_checkpoints/
.idea/
examples/document/
./**/*.log
./**/*.*~
./**/*~
show_report.sh
./**/.ini
./**/.yml
./**/.toml
cicm2021paper/
LICENSE
tests/
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
FROM makarius/isabelle:Isabelle2021
FROM makarius/isabelle:Isabelle2021-1
ENV HOME=/home/isabelle
ENV PATH=${HOME}/.local/bin:${HOME}/Isabelle/bin:${PATH}
USER root
RUN apt-get update
RUN apt-get install -y python3-pip
COPY examples ${HOME}/isabelle-client-examples
RUN chown -R isabelle ${HOME}/isabelle-client-examples
USER isabelle
RUN pip install -U pip isabelle-client jupyterlab
COPY examples ${HOME}
RUN pip install -U pip jupyterlab
COPY isabelle_client ${HOME}/isabelle_client
COPY pyproject.toml ${HOME}
COPY poetry.lock ${HOME}
COPY README.rst ${HOME}
RUN pip install .
ENTRYPOINT []
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ from documentation, run the
or use ``isabelle-client`` from a
`notebook <https://github.com/inpefess/isabelle-client/blob/master/examples/example.ipynb>`__,
e.g. with
`Binder <https://mybinder.org/v2/gh/inpefess/isabelle-client/HEAD?labpath=example.ipynb>`__.
`Binder <https://mybinder.org/v2/gh/inpefess/isabelle-client/HEAD?labpath=isabelle-client-examples/example.ipynb>`__.

How to Contribute
=================
Expand Down Expand Up @@ -93,5 +93,5 @@ DOI <https://doi.org/10.1007/978-3-030-81097-9_20>`__.
.. |codecov| image:: https://codecov.io/gh/inpefess/isabelle-client/branch/master/graph/badge.svg
:target: https://codecov.io/gh/inpefess/isabelle-client
.. |Binder| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/inpefess/isabelle-client/HEAD?labpath=example.ipynb
:target: https://mybinder.org/v2/gh/inpefess/isabelle-client/HEAD?labpath=isabelle-client-examples/example.ipynb
.. |video tutorial| image:: ../../examples/tty.gif
29 changes: 14 additions & 15 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
"""
Copyright 2021 Boris Shminke
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# Copyright 2021-2022 Boris Shminke
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
""" Fixtures for unit tests live here """
import socketserver
import threading
from unittest.mock import Mock
Expand Down
30 changes: 14 additions & 16 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
# type: ignore
"""
Copyright 2021 Boris Shminke
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# Copyright 2021-2022 Boris Shminke
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# pylint: disable-all
# -- Path setup --------------------------------------------------------------

Expand All @@ -38,7 +36,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["sphinx.ext.autodoc"]
extensions = ["sphinx.ext.autodoc", "sphinx.ext.coverage"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down
2 changes: 1 addition & 1 deletion doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.

.. include:: ../../README.rst
.. include:: ../../README.rst

.. toctree::
:maxdepth: 3
Expand Down
44 changes: 6 additions & 38 deletions doc/source/package-documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,11 @@
Package Documentation
**********************

Isabelle Client
^^^^^^^^^^^^^^^^
.. autoclass:: isabelle_client.IsabelleClient
:special-members: __init__
.. automodule:: isabelle_client.isabelle__client
:members:

socket_communication
^^^^^^^^^^^^^^^^^^^^^
.. currentmodule:: isabelle_client.socket_communication

A collection of functions for TCP communication.

Isabelle Response
==================
.. autoclass:: isabelle_client.IsabelleResponse
:special-members: __init__
.. automodule:: isabelle_client.socket_communication
:members:
.. automodule:: isabelle_client.compatibility_helper
:members:
.. automodule:: isabelle_client.utils
:members:

.. autofunction:: get_response_from_isabelle
.. autofunction:: get_final_message

utils
^^^^^^
.. currentmodule:: isabelle_client.utils

A collection of different useful functions.

.. autofunction:: start_isabelle_server
.. autofunction:: get_isabelle_client

compatibility_helper
^^^^^^^^^^^^^^^^^^^^^
.. currentmodule:: isabelle_client.compatibility_helper

A module helping to run `asyncio`_ in Python 3.6

.. autofunction:: async_run


.. _asyncio: https://docs.python.org/3/library/asyncio.html
4 changes: 1 addition & 3 deletions doc/source/usage-example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

.. _usage-example:


Basic usage example
********************

Expand Down

0 comments on commit 01f3274

Please sign in to comment.