Skip to content

Commit 7e419d3

Browse files
committed
Update API structure and Ruff lint ignore
1 parent 55ace59 commit 7e419d3

8 files changed

Lines changed: 40 additions & 34 deletions

File tree

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ If you would like support using ``plasticparcels``, or are have any questions ab
5555
Examples <examples>
5656
Physics kernels <physicskernels>
5757
Plastic initialisation maps <initialisationmaps>
58-
API reference <reference>
58+
API reference <reference/index>
5959
OceanParcels website <https://oceanparcels.org/>

docs/reference.rst

Lines changed: 0 additions & 33 deletions
This file was deleted.

docs/reference/constructors.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plasticparcels.constructors
2+
---------------------------
3+
4+
.. automodule:: plasticparcels.constructors
5+
:members:
6+
:show-inheritance: yes

docs/reference/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
API
2+
===
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
7+
plasticparcels.constructors <constructurs>
8+
plasticparcels.kernels <kernels>
9+
plasticparcels.particlefile <particlefile>
10+
plasticparcels.utils <utils>

docs/reference/kernels.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plasticparcels.kernels
2+
---------------------------
3+
4+
.. automodule:: plasticparcels.kernels
5+
:members:
6+
:show-inheritance: yes

docs/reference/particlefile.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plasticparcels.particlefile
2+
---------------------------
3+
4+
.. automodule:: plasticparcels.particlefile
5+
:members:
6+
:show-inheritance: yes

docs/reference/utils.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plasticparcels.utils
2+
---------------------------
3+
4+
.. automodule:: plasticparcels.utils
5+
:members:
6+
:show-inheritance: yes

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ select = [
5858
"DOC", # pydoclint
5959
]
6060

61+
exclude = [
62+
"docs/*",
63+
"plasticparcels/scripts/*",
64+
]
65+
6166
# If updating to use a formatter, look at https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules for rules to add to ignore
6267
ignore = [
6368
# line too long (82 > 79 characters)

0 commit comments

Comments
 (0)