Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pymarkdownlnt ile ilgili düzenlemeler #15

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ repos:
- id: check-added-large-files
- id: check-merge-conflict
- id: detect-private-key
# - repo: https://github.com/jackdewinter/pymarkdown
# rev: 0.9.16
# hooks:
# - id: pymarkdown
# pass_filenames: false
# args:
# - --config=pyproject.toml
# - scan
# - .
# - ./docs
- repo: https://github.com/jackdewinter/pymarkdown
rev: 0.9.17
hasansezertasan marked this conversation as resolved.
Show resolved Hide resolved
hooks:
- id: pymarkdown
pass_filenames: false
args:
- --config=pyproject.toml
- scan
- .
- ./docs
- repo: https://github.com/johnfraney/flake8-markdown
rev: v0.5.0
hooks:
- id: flake8-markdown
args: ["'*.md'"]
1 change: 0 additions & 1 deletion docs/glossary.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
hide: [navigation]
---

# Sözlük
1 change: 1 addition & 0 deletions docs/pages.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
hide: [navigation, toc]
---

# Sayfalar

{% if pages_manuel %}
Expand Down
1 change: 0 additions & 1 deletion docs/progress.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,4 @@ Sonraki aşama bir "Pull Request" (PR) açmaktır. PR'ı açtıktan sonra PR num
{% endfor %}
{% endif %}


[progress.yml]: https://github.com/hasansezertasan/fastapi-turkiye/blob/main/docs/data/progress.yml
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ mypy = ">=1.0.0"
ruff = "==0.2.0"
pre-commit = ">=2.20.0, <4.0.0"
yamllint = "^1.32.0"
pymarkdownlnt = "^0.9.16"
pymarkdownlnt = ">=0.9.16"
flake8-markdown = "^0.5.0"

[tool.pymarkdown]
plugins.MD013.enabled = false
Expand All @@ -30,6 +31,13 @@ plugins.MD004.style = "asterisk"
plugins.MD007.indent = 4
# Escape disables...
plugins.MD033.enabled = false
# To escape metadata related issues
plugins.MD041.enabled = false
plugins.MD022.enabled = false
plugins.MD003.enabled = false

[tool.poe.tasks]
build = "mkdocs build"
serve = "mkdocs serve"
flake8-markdown = "flake8-markdown '*.md'"
lint = ["flake8-markdown"]