From 97880c16a90ecab0cb33b3f4285ed1358ac0b667 Mon Sep 17 00:00:00 2001 From: hasansezertasan Date: Tue, 27 Feb 2024 00:40:55 +0300 Subject: [PATCH 1/4] =?UTF-8?q?Pymarkdownlnt=20ile=20ilgili=20d=C3=BCzenle?= =?UTF-8?q?meler.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 20 ++++++++++---------- docs/glossary.md | 1 - docs/pages.md | 1 + docs/progress.md | 1 - pyproject.toml | 3 ++- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 11316b0..d167810 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,13 +10,13 @@ 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 + hooks: + - id: pymarkdown + pass_filenames: false + args: + - --config=pyproject.toml + - scan + - . + - ./docs diff --git a/docs/glossary.md b/docs/glossary.md index 4c2eca0..284dc0c 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -1,5 +1,4 @@ --- hide: [navigation] --- - # Sözlük diff --git a/docs/pages.md b/docs/pages.md index 2ca15f0..f92e59c 100644 --- a/docs/pages.md +++ b/docs/pages.md @@ -1,6 +1,7 @@ --- hide: [navigation, toc] --- + # Sayfalar {% if pages_manuel %} diff --git a/docs/progress.md b/docs/progress.md index 2642358..41d2eb6 100644 --- a/docs/progress.md +++ b/docs/progress.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 5828d87..77fbc69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ 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" [tool.pymarkdown] plugins.MD013.enabled = false @@ -30,6 +30,7 @@ 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 From 07206131de68620214d488ad4548a6cd3777bd96 Mon Sep 17 00:00:00 2001 From: hasansezertasan Date: Mon, 18 Mar 2024 16:02:17 +0300 Subject: [PATCH 2/4] Added flake8-markdown --- .pre-commit-config.yaml | 5 +++++ pyproject.toml | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d167810..d0ae293 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,3 +20,8 @@ repos: - scan - . - ./docs + - repo: https://github.com/johnfraney/flake8-markdown + rev: v0.5.0 + hooks: + - id: flake8-markdown + args: ["'*.md'"] diff --git a/pyproject.toml b/pyproject.toml index 77fbc69..95bc19d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,7 @@ ruff = "==0.2.0" pre-commit = ">=2.20.0, <4.0.0" yamllint = "^1.32.0" pymarkdownlnt = ">=0.9.16" +flake8-markdown = "^0.5.0" [tool.pymarkdown] plugins.MD013.enabled = false @@ -34,3 +35,9 @@ plugins.MD033.enabled = false 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"] From e57b9b838ecd2a0f7a34f70668328d2c0dd595a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Sezer=20Ta=C5=9Fan?= <13135006+hasansezertasan@users.noreply.github.com> Date: Fri, 10 May 2024 02:44:40 +0300 Subject: [PATCH 3/4] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d0ae293..b6475e4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: - id: check-merge-conflict - id: detect-private-key - repo: https://github.com/jackdewinter/pymarkdown - rev: 0.9.17 + rev: 0.9.19 hooks: - id: pymarkdown pass_filenames: false From 85b6b23e12509a8696d8e98d7a836f8727629ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Sezer=20Ta=C5=9Fan?= <13135006+hasansezertasan@users.noreply.github.com> Date: Fri, 10 May 2024 02:45:54 +0300 Subject: [PATCH 4/4] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6475e4..773d25f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: - id: check-merge-conflict - id: detect-private-key - repo: https://github.com/jackdewinter/pymarkdown - rev: 0.9.19 + rev: 0.9.16 hooks: - id: pymarkdown pass_filenames: false