Skip to content

Commit 479fb13

Browse files
authored
minor fixes and cleanup (#34)
1 parent 31e0e60 commit 479fb13

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: 3.10
20+
python-version: "3.10"
2121
- name: Install build dependencies
2222
run: python -m pip install build
2323
- name: Build package

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ commands =
3939
pytest tests/ --cov --cov-report xml --cov-report term {posargs:-v}
4040

4141
[testenv:check]
42+
description = perform style checks
4243
skip_install = true
4344
deps =
44-
black==22.3.0
45+
black
4546
isort
4647
pylint
4748
pydocstyle
@@ -53,16 +54,18 @@ commands =
5354
pydocstyle src
5455

5556
[testenv:reformat]
57+
description = automatic code formatting
5658
skip_install = true
5759
deps =
58-
black==22.3.0
60+
black
5961
isort
6062
toml
6163
commands =
6264
isort --project xarray_einstats --section-default THIRDPARTY src tests
6365
black src tests
6466

6567
[testenv:docs]
68+
description = build HTML docs
6669
setenv =
6770
READTHEDOCS_PROJECT = xarray_einstats
6871
READTHEDOCS_VERSION = latest
@@ -75,13 +78,14 @@ commands =
7578
sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -v -bhtml
7679

7780
[testenv:cleandocs]
81+
description = clean HTML outputs docs
7882
skip_install = true
7983
allowlist_externals = rm
8084
commands =
8185
rm -r "{toxworkdir}/docs_out" "{toxworkdir}/docs_doctree" "{toxworkdir}/jupyter_execute" docs/source/api/generated docs/source/contributing/generated
8286

8387
[testenv:viewdocs]
88+
description = open HTML docs
8489
skip_install = true
85-
allowlist_externals = gnome-open
8690
commands =
8791
python -m webbrowser "{toxworkdir}/docs_out/index.html"

0 commit comments

Comments
 (0)