Skip to content

Commit

Permalink
improve config
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Aug 21, 2023
1 parent d7a486d commit b453140
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/md-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ jobs:
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: 'mlc_config.json'
file-path: './README.md'
8 changes: 0 additions & 8 deletions .github/workflows/mlc_config.json

This file was deleted.

5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ repos:
- id: codespell
exclude: >
(?x)^(
.*\.yaml
.*\.yaml|
.*\.yml|
)$
args:
- --ignore-words-list=nd,ot
- --ignore-words-list=nd,ot,adn,redict


ci:
Expand Down
21 changes: 21 additions & 0 deletions mlc_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"ignorePatterns": [
{
"pattern": "^https?://127.0.0.1:\\d+"
},
{
"pattern": "^https?://localhost:\\d+"
}
],
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "{{BASEURL}}/"
}
],
"timeout": "20s",
"retryOn429": "true",
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206, 0]
}

0 comments on commit b453140

Please sign in to comment.