Skip to content

Commit

Permalink
Add markdown linting and pre-commit configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Aug 22, 2024
1 parent e0c6b87 commit 891403f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ FANS
run.sh
*.h5
data_gen/
*.json


# Test microstructure files
Expand All @@ -201,4 +200,4 @@ data_gen/
!test_LinearElasticIsotropic.json
!test_LinearThermalIsotropic.json
!test_PseudoPlasticLinearHardening.json
!test_VonMisesPlasticLinearIsotropicHardening.json
!test_VonMisesPlasticLinearIsotropicHardening.json
8 changes: 8 additions & 0 deletions .markdown-link-check-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"aliveStatusCodes": [429, 200],
"ignorePatterns": [
{
"pattern": "*.html"
}
]
}
5 changes: 5 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"MD013": false,
"MD033": false,
"MD034": false
}
21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-xml
- id: check-merge-conflict
- id: mixed-line-ending
- id: end-of-file-fixer
- id: trailing-whitespace
# black repo for python formatting
- repo: https://github.com/ambv/black
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/precice/precice-pre-commit-hooks
rev: 'v3.3'
hooks:
- id: format-precice-config
files: "^.*/precice-config.xml"
- id: check-image-prefix
args: [ --prefix=docs-tooling-micro-manager- ]

0 comments on commit 891403f

Please sign in to comment.