Skip to content

Commit

Permalink
FIX: remove .markdownlint.json
Browse files Browse the repository at this point in the history
Fix-up to #173
  • Loading branch information
redeboer committed Sep 28, 2023
1 parent 6121f63 commit 908e44c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
7 changes: 0 additions & 7 deletions .markdownlint.json

This file was deleted.

23 changes: 15 additions & 8 deletions src/repoma/check_dev_files/deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def remove_deprecated_tools(keep_issue_templates: bool) -> None:
executor(_remove_isort)
if not keep_issue_templates:
executor(_remove_github_issue_templates)
executor(_remove_markdownlint)
executor(_remove_pydocstyle)
executor(_remove_pylint)
executor.finalize()
Expand All @@ -39,7 +40,6 @@ def _remove_flake8() -> None:
executor(remove_extension_recommendation, "ms-python.flake8", unwanted=True)
executor(remove_precommit_hook, "autoflake") # cspell:ignore autoflake
executor(remove_precommit_hook, "flake8")
executor(remove_precommit_hook, "markdownlint")
executor(remove_precommit_hook, "nbqa-flake8")
executor(remove_settings, ["flake8.importStrategy"])
executor.finalize()
Expand All @@ -50,12 +50,6 @@ def _remove_isort() -> None:
executor(__remove_isort_settings)
executor(__remove_nbqa_option, "black")
executor(__remove_nbqa_option, "isort")
executor(
remove_extension_recommendation,
# cspell:ignore davidanson markdownlint
extension_name="davidanson.vscode-markdownlint",
unwanted=True,
)
executor(remove_extension_recommendation, "ms-python.isort", unwanted=True)
executor(remove_precommit_hook, "isort")
executor(remove_precommit_hook, "nbqa-isort")
Expand Down Expand Up @@ -97,6 +91,20 @@ def _remove_github_issue_templates() -> None:
)


def _remove_markdownlint() -> None:
executor = Executor()
executor(__remove_configs, [".markdownlint.json", ".markdownlint.yaml"])
executor(__remove_from_gitignore, ".markdownlint.json")
executor(
remove_extension_recommendation,
# cspell:ignore davidanson markdownlint
extension_name="davidanson.vscode-markdownlint",
unwanted=True,
)
executor(remove_precommit_hook, "markdownlint")
executor.finalize()


def _remove_pydocstyle() -> None:
executor = Executor()
executor(
Expand All @@ -115,7 +123,6 @@ def _remove_pydocstyle() -> None:
def _remove_pylint() -> None:
executor = Executor()
executor(__remove_configs, [".pylintrc"]) # cspell:ignore pylintrc
executor(__remove_from_gitignore, ".markdownlint.json")
executor(__uninstall, "pylint", check_options=["lint", "sty"])
executor(remove_extension_recommendation, "ms-python.pylint", unwanted=True)
executor(remove_precommit_hook, "pylint")
Expand Down

0 comments on commit 908e44c

Please sign in to comment.