Skip to content

Commit 607b589

Browse files
committed
Ignore the whole drafts folder
1 parent 385cf4a commit 607b589

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/scripts/new_post.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function create_post {
3636
echo "date: $POST_DATE"
3737
echo "draft: true"
3838
echo "---"
39-
) > "$file_path"
39+
) >"$file_path"
4040
}
4141

4242
function main {

.mega-linter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ DISABLE_LINTERS:
2020
- YAML_YAMLLINT
2121
- PYTHON_ISORT
2222
- PYTHON_RUFF
23+
- PYTHON_PYRIGHT
24+
- PYTHON_PYLINT
2325
- SPELL_CSPELL
26+
# There are things like scripts that shouldn't be in drafts
27+
FILTER_REGEX_EXCLUDE: '^/_drafts/.*'

0 commit comments

Comments
 (0)