Skip to content

Commit 5b84d2b

Browse files
authored
Merge pull request #75 from ArcanaFramework/docs-formats
Added api references for all formats to docs
2 parents a713d29 + 29e3a83 commit 5b84d2b

File tree

29 files changed

+1432
-164
lines changed

29 files changed

+1432
-164
lines changed

.github/workflows/ci-cd.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
defaults:
2424
run:
2525
shell: bash -l {0}
26+
env:
27+
PIP_BREAK_SYSTEM_PACKAGES: 1
2628
steps:
2729
- name: Checkout
2830
uses: actions/checkout@v2
@@ -39,13 +41,13 @@ jobs:
3941
with:
4042
python-version: ${{ matrix.python-version }}
4143
- name: Update build tools
42-
run: python3 -m pip install --break-system-packages --upgrade pip
44+
run: python3 -m pip install --upgrade pip
4345
- name: Install Package
44-
run: python3 -m pip install --break-system-packages -e .[test]
46+
run: python3 -m pip install -e .[test]
4547
- name: Install Extras Package
46-
run: python3 -m pip install --break-system-packages -e ./extras[test]
47-
- name: Change out of root directory
48-
run: cd docs
48+
run: python3 -m pip install -e ./extras[test]
49+
- name: MyPy
50+
run: mypy --install-types --non-interactive .
4951
- name: Pytest
5052
run: pytest -vvs --cov fileformats --cov-config .coveragerc --cov-report xml .
5153
- name: Upload coverage to Codecov

.pre-commit-config.yaml

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,39 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.3.0
6-
hooks:
7-
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
- id: check-yaml
10-
- id: check-added-large-files
11-
- repo: https://github.com/psf/black
12-
rev: 22.3.0
13-
hooks:
14-
- id: black
15-
exclude: ^(fileformats/core/_version\.py)$
16-
args:
17-
- -l 88
18-
- repo: https://github.com/codespell-project/codespell
19-
rev: v2.1.0
20-
hooks:
21-
- id: codespell
22-
exclude: ^(fileformats/core/_version\.py)$
23-
args:
24-
- --ignore-words=.codespell-ignorewords
25-
- repo: https://github.com/PyCQA/flake8
26-
rev: 4.0.1
27-
hooks:
28-
- id: flake8
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.3.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- repo: https://github.com/psf/black
12+
rev: 22.3.0
13+
hooks:
14+
- id: black
15+
exclude: ^(fileformats/core/_version\.py)$
16+
args:
17+
- -l 88
18+
- repo: https://github.com/codespell-project/codespell
19+
rev: v2.1.0
20+
hooks:
21+
- id: codespell
22+
exclude: ^(fileformats/core/_version\.py)$
23+
args:
24+
- --ignore-words=.codespell-ignorewords
25+
- repo: https://github.com/PyCQA/flake8
26+
rev: 4.0.1
27+
hooks:
28+
- id: flake8
29+
- repo: https://github.com/pre-commit/mirrors-mypy
30+
rev: v1.11.2
31+
hooks:
32+
- id: mypy
33+
args:
34+
[
35+
--strict,
36+
--install-types,
37+
--non-interactive,
38+
--no-warn-unused-ignores,
39+
]

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
# break at it
3434
if os.getenv("_PYTEST_RAISE", "0") != "0":
3535

36-
@pytest.hookimpl(tryfirst=True) # type: ignore
36+
@pytest.hookimpl(tryfirst=True)
3737
def pytest_exception_interact(call: ty.Any) -> None:
3838
raise call.excinfo.value
3939

40-
@pytest.hookimpl(tryfirst=True) # type: ignore
40+
@pytest.hookimpl(tryfirst=True)
4141
def pytest_internalerror(excinfo: ty.Any) -> None:
4242
raise excinfo.value
4343

docs/source/developer.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ when a hooked method is accessed.
272272
Use the `@extra` decorator on a method in the to define an extras method,
273273

274274
.. code-block:: python
275+
275276
from typing import Self
276277
277278
class MyFormat(File):

docs/source/index.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,17 @@ This work is licensed under a
114114
:caption: Reference
115115
:hidden:
116116

117-
api.rst
117+
reference/core.rst
118+
reference/generic.rst
119+
reference/field.rst
120+
reference/application.rst
121+
reference/audio.rst
122+
reference/image.rst
123+
reference/model.rst
124+
reference/text.rst
125+
reference/video.rst
126+
reference/datascience.rst
127+
reference/medimage.rst
118128

119129

120130
.. _Pydra: https://pydra.readthedocs.io

0 commit comments

Comments
 (0)