Skip to content

Commit

Permalink
Add pre-commit website lints (#183)
Browse files Browse the repository at this point in the history
* Add lints for website integration

* Apply preCICE config formatting

* Remove the redundant workflow
  • Loading branch information
fsimonis authored Mar 20, 2024
1 parent eb917ab commit be16562
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 69 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/lint_markdown.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"MD013": false,
"MD033": false
"MD033": false,
"MD041": false
}
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,17 @@ repos:
- id: requirements-txt-fixer
# Custom repo for the preCICE configuration formatter
- repo: https://github.com/precice/precice-pre-commit-hooks
rev: "v2.1"
rev: "v3.2"
hooks:
- id: format-precice-config
exclude: "tools"
- id: check-image-prefix
files: "^docs/images/.*"
args: [ --prefix=docs-tooling-aste- ]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
exclude: changelog-entries
- id: markdownlint-fix
exclude: changelog-entries
7 changes: 0 additions & 7 deletions examples/lci_2d/precice-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@

<participant name="A">
<provide-mesh name="A-Mesh" />

<write-data name="Data" mesh="A-Mesh" />
</participant>

<participant name="B">
<receive-mesh name="A-Mesh" from="A" />

<provide-mesh name="B-Mesh" />

<read-data name="Data" mesh="B-Mesh" />

<mapping:linear-cell-interpolation
constraint="consistent"
direction="read"
Expand All @@ -38,11 +34,8 @@

<coupling-scheme:parallel-explicit>
<participants first="A" second="B" />

<max-time value="1.0" />

<time-window-size value="1" />

<exchange data="Data" mesh="A-Mesh" from="A" to="B" />
</coupling-scheme:parallel-explicit>
</precice-configuration>
7 changes: 0 additions & 7 deletions examples/lci_3d/precice-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@

<participant name="A">
<provide-mesh name="A-Mesh" />

<write-data name="Data" mesh="A-Mesh" />
</participant>

<participant name="B">
<receive-mesh name="A-Mesh" from="A" />

<provide-mesh name="B-Mesh" />

<read-data name="Data" mesh="B-Mesh" />

<mapping:linear-cell-interpolation
constraint="consistent"
direction="read"
Expand All @@ -38,11 +34,8 @@

<coupling-scheme:parallel-explicit>
<participants first="A" second="B" />

<max-time value="1.0" />

<time-window-size value="1" />

<exchange data="Data" mesh="A-Mesh" from="A" to="B" />
</coupling-scheme:parallel-explicit>
</precice-configuration>
8 changes: 0 additions & 8 deletions examples/nn/precice-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,14 @@

<participant name="A">
<provide-mesh name="A-Mesh" />

<write-data name="Data" mesh="A-Mesh" />
</participant>

<participant name="B">
<receive-mesh name="A-Mesh" from="A" />

<provide-mesh name="B-Mesh" />

<read-data name="Data" mesh="B-Mesh" />

<mapping:nearest-neighbor constraint="consistent" direction="read" from="A-Mesh" to="B-Mesh" />

<!-- <mapping:nearest-projection constraint="consistent" direction="read" from="A-Mesh" to="B-Mesh" /> -->
<!-- <mapping:rbf-gaussian shape-parameter="4" constraint="consistent" direction="read" from="A-Mesh" to="B-Mesh" x-dead="false" y-dead="false" z-dead="false" /> -->
<!-- <mapping:rbf-gaussian shape-parameter="5600" solver-rtol="1e-9" constraint="consistent" direction="read" from="A-Mesh" to="B-Mesh" x-dead="true" y-dead="false" z-dead="false" polynomial="separate" preallocation="tree"/> -->
Expand All @@ -40,11 +35,8 @@

<coupling-scheme:parallel-explicit>
<participants first="A" second="B" />

<max-time value="1.0" />

<time-window-size value="1" />

<exchange data="Data" mesh="A-Mesh" from="A" to="B" />
</coupling-scheme:parallel-explicit>
</precice-configuration>
7 changes: 0 additions & 7 deletions examples/nng_scalar/precice-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@

<participant name="A">
<provide-mesh name="A-Mesh" />

<write-data name="Data" mesh="A-Mesh" />
</participant>

<participant name="B">
<receive-mesh name="A-Mesh" from="A" />

<provide-mesh name="B-Mesh" />

<read-data name="Data" mesh="B-Mesh" />

<mapping:nearest-neighbor-gradient
constraint="consistent"
direction="read"
Expand All @@ -38,11 +34,8 @@

<coupling-scheme:parallel-explicit>
<participants first="A" second="B" />

<max-time value="1.0" />

<time-window-size value="1" />

<exchange data="Data" mesh="A-Mesh" from="A" to="B" />
</coupling-scheme:parallel-explicit>
</precice-configuration>
7 changes: 0 additions & 7 deletions examples/nng_vector/precice-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@

<participant name="A">
<provide-mesh name="A-Mesh" />

<write-data name="Data" mesh="A-Mesh" />
</participant>

<participant name="B">
<receive-mesh name="A-Mesh" from="A" />

<provide-mesh name="B-Mesh" />

<read-data name="Data" mesh="B-Mesh" />

<mapping:nearest-neighbor-gradient
constraint="consistent"
direction="read"
Expand All @@ -38,11 +34,8 @@

<coupling-scheme:parallel-explicit>
<participants first="A" second="B" />

<max-time value="1.0" />

<time-window-size value="1" />

<exchange data="Data" mesh="A-Mesh" from="A" to="B" />
</coupling-scheme:parallel-explicit>
</precice-configuration>
11 changes: 0 additions & 11 deletions examples/replay_mode/precice-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,16 @@

<participant name="Fluid">
<provide-mesh name="Fluid-Mesh" />

<receive-mesh name="Solid-Mesh" from="Solid" />

<read-data name="Displacement" mesh="Fluid-Mesh" />

<write-data name="Force" mesh="Fluid-Mesh" />

<mapping:rbf-global-direct
direction="read"
from="Solid-Mesh"
to="Fluid-Mesh"
constraint="consistent">
<basis-function:thin-plate-splines />
</mapping:rbf-global-direct>

<mapping:rbf-global-direct
direction="write"
from="Fluid-Mesh"
Expand All @@ -45,23 +40,17 @@

<participant name="Solid">
<provide-mesh name="Solid-Mesh" />

<read-data name="Force" mesh="Solid-Mesh" />

<write-data name="Displacement" mesh="Solid-Mesh" />

<watch-point mesh="Solid-Mesh" name="Flap-Tip" coordinate="0.25;0.0" />
</participant>

<m2n:sockets acceptor="Fluid" connector="Solid" exchange-directory="." />

<coupling-scheme:serial-explicit>
<time-window-size value="2.5e-1" />

<max-time value="2.5" />

<participants first="Fluid" second="Solid" />

<exchange data="Force" mesh="Solid-Mesh" from="Fluid" to="Solid" />
<exchange data="Displacement" mesh="Solid-Mesh" from="Solid" to="Fluid" />
</coupling-scheme:serial-explicit>
Expand Down

0 comments on commit be16562

Please sign in to comment.