Skip to content

Commit 7333f19

Browse files
committed
misc
1 parent 105b7ac commit 7333f19

File tree

7 files changed

+27
-43
lines changed

7 files changed

+27
-43
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install .[test]
27+
pip install .[dev]
2828
pip install tox-gh-actions
2929
- name: Run the tests
3030
run: tox

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ If you are contributing with documentation please jump to [building documentatio
4848

4949
We need to install the development package before we can run the tests. If anything is confusing below, always resort to the relevant documentation.
5050

51-
For the most basic test runs against python 3.6 use this tox subset (callable after `pip install tox`):
51+
For the most basic test runs against python 3.11 use this tox subset (callable after `pip install tox`):
5252

5353
```bash
54-
tox -e py36
54+
tox -e py311
5555
```
5656

5757
This will just execute the unittests against python 3.6 in a new virtual env. The first run will take longer to setup the virtualenv, but will be fast after that point.

MANIFEST.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ recursive-include testbook *.yaml
55
recursive-include testbook *.keep
66
recursive-include testbook *.txt
77

8-
include setup.py
9-
include requirements*.txt
108
include tox.ini
119
include pytest.ini
1210
include README.md

docs/conf.py

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# -- Project information -----------------------------------------------------
2222

2323
project = "testbook"
24-
copyright = "2020, nteract team"
24+
copyright = "2024, nteract team"
2525
author = "nteract team"
2626

2727

@@ -51,7 +51,7 @@
5151

5252
# General information about the project.
5353
project = "testbook"
54-
copyright = "2020, nteract team"
54+
copyright = "2024, nteract team"
5555
author = "nteract team"
5656

5757
# The version info for the project you're documenting, acts as replacement for
@@ -61,7 +61,7 @@
6161

6262

6363
# The short X.Y version.
64-
version = read_version(project).split(".")[0:2]
64+
version = '.'.join(read_version(project).split(".")[0:2])
6565

6666
# The full version, including alpha/beta/rc tags.
6767
release = read_version(project)
@@ -71,7 +71,7 @@
7171
#
7272
# This is also used if you do content translation via gettext catalogs.
7373
# Usually you set "language" from the command line foexitr these cases.
74-
language = None
74+
language = "en"
7575

7676
# List of patterns, relative to source directory, that match files and
7777
# directories to ignore when looking for source files.
@@ -109,15 +109,6 @@
109109
# so a file named "default.css" will overwrite the builtin "default.css".
110110
# html_static_path = ['_static']
111111

112-
# Custom sidebar templates, must be a dictionary that maps document names
113-
# to template names.
114-
#
115-
# This is required for the alabaster theme
116-
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
117-
html_sidebars = {
118-
"**": ["about.html", "navigation.html", "relations.html", "searchbox.html"]
119-
}
120-
121112
html_title = "testbook"
122113

123114
# -- Options for HTMLHelp output ------------------------------------------
@@ -176,4 +167,7 @@
176167
]
177168

178169
# Example configuration for intersphinx: refer to the Python standard library.
179-
intersphinx_mapping = {"https://docs.python.org/": None}
170+
intersphinx_mapping = {"python": ("https://docs.python.org/", None)}
171+
172+
# Generate heading anchors for h1, h2 and h3.
173+
myst_heading_anchors = 3

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def test_func(tb):
4141
## Features
4242

4343
- Write conventional unit tests for Jupyter Notebooks
44-
- [Execute all or some specific cells before unit test](usage/index.html#using-execute-to-control-which-cells-are-executed-before-test)
45-
- [Share kernel context across multiple tests](usage/index.html#share-kernel-context-across-multiple-tests) (using pytest fixtures)
46-
- [Support for patching objects](usage/index.html#support-for-patching-objects)
44+
- [Execute all or some specific cells before unit test](usage/index.md#using-execute-to-control-which-cells-are-executed-before-test)
45+
- [Share kernel context across multiple tests](usage/index.md#share-kernel-context-across-multiple-tests) (using pytest fixtures)
46+
- [Support for patching objects](usage/index.md#support-for-patching-objects)
4747
- Inject code into Jupyter notebooks
4848
- Works with any unit testing library - unittest, pytest or nose
4949

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ optional-dependencies.dev = [
6161
"twine>=1.11",
6262
"xmltodict",
6363
]
64-
optional-dependencies.test = [
65-
"myst-parser==0.9.1",
66-
"sphinx>=1.7,<3",
67-
"sphinx-book-theme==0.0.35",
64+
optional-dependencies.docs = [
65+
"myst-parser==3.0.1",
66+
"sphinx==7.4.7",
67+
"sphinx-book-theme==1.1.3",
6868
]
69+
6970
urls.Documentation = "https://testbook.readthedocs.io"
7071
urls.Funding = "https://nteract.io"
7172
urls.Issues = "https://github.com/nteract/testbook/issues"

tox.ini

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ python =
1313
3.12: py312
1414

1515
# Linters
16-
[testenv:ruff]
16+
[testenv:lint]
1717
skip_install = true
1818
commands = ruff check
1919

@@ -28,24 +28,15 @@ commands = check-manifest
2828
description = invoke sphinx-build to build the HTML docs
2929
skip_install = true
3030
deps =
31-
.[sphinx]
32-
extras = docs
31+
.[docs]
3332
commands =
34-
sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
33+
sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -bhtml {posargs}
3534
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
36-
python "{toxinidir}/docs/conf.py"
35+
python -c "import docs.conf"
3736

38-
# Distro
39-
[testenv:dist]
40-
skip_install = true
41-
# Have to use /bin/bash or the `*` will cause that argument to get quoted by the tox command line...
42-
commands =
43-
python setup.py bdist_wheel --dist-dir={distdir}
44-
/bin/bash -c 'python -m pip install -U --force-reinstall {distdir}/testbook*.whl'
45-
46-
# ruff
47-
[testenv:ruff]
48-
description = apply ruff linter with desired rules
37+
# Formatter
38+
[testenv:format]
39+
description = apply ruff formatter with desired rules
4940
basepython = python3.11
5041
deps =
5142
ruff
@@ -64,7 +55,7 @@ basepython =
6455
py310: python3.10
6556
py311: python3.11
6657
py312: python3.12
67-
ruff: python3.11
58+
lint: python3.11
6859
manifest: python3.11
6960
dist: python3.11
7061
docs: python3.11

0 commit comments

Comments
 (0)