From 60e5b3afa79a1c896c2d2010da505facff57a1d1 Mon Sep 17 00:00:00 2001 From: Laurent Raufaste Date: Sun, 11 Feb 2024 18:01:34 +0100 Subject: [PATCH 1/3] Bunch of cleanups --- .github/workflows/markdown.yaml | 1 - .gitignore | 7 ------- .markdownlint.yaml | 2 -- .markdownlintignore | 1 + .mdl_style.rb | 4 ---- .mdlrc | 1 - Makefile | 4 +--- codecov.yml | 1 - 8 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 .markdownlint.yaml create mode 100644 .markdownlintignore delete mode 100644 .mdl_style.rb delete mode 100644 .mdlrc delete mode 100644 codecov.yml diff --git a/.github/workflows/markdown.yaml b/.github/workflows/markdown.yaml index 8f73aca67..50eefd262 100644 --- a/.github/workflows/markdown.yaml +++ b/.github/workflows/markdown.yaml @@ -13,5 +13,4 @@ jobs: - uses: actions/checkout@v4 - uses: articulate/actions-markdownlint@v1 with: - config: .markdownlint.yaml ignore: 'tests/' diff --git a/.gitignore b/.gitignore index 5e2e8eadb..3d6e5a1f1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,11 +2,4 @@ *.pyc # Generated by make release -/mackup.egg-info/ /dist/ - -# Generated by make test -/.coverage - -# Used by pyenv -/.python-version diff --git a/.markdownlint.yaml b/.markdownlint.yaml deleted file mode 100644 index 40598550b..000000000 --- a/.markdownlint.yaml +++ /dev/null @@ -1,2 +0,0 @@ -MD004: - style: "dash" diff --git a/.markdownlintignore b/.markdownlintignore new file mode 100644 index 000000000..2bfa6a4d9 --- /dev/null +++ b/.markdownlintignore @@ -0,0 +1 @@ +tests/ diff --git a/.mdl_style.rb b/.mdl_style.rb deleted file mode 100644 index 87660f6eb..000000000 --- a/.mdl_style.rb +++ /dev/null @@ -1,4 +0,0 @@ -all -rule 'MD007', :indent => 2 -rule 'MD029', :style => :ordered -exclude_rule 'MD041' diff --git a/.mdlrc b/.mdlrc deleted file mode 100644 index 8f1aa6109..000000000 --- a/.mdlrc +++ /dev/null @@ -1 +0,0 @@ -style './.mdl_style.rb' diff --git a/Makefile b/Makefile index 621171357..aedb6e084 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,11 @@ lint: - # Install mdl with "gem install mdl" - mdl . + markdownlint -c .markdownlint.yaml '**/*.md' test: poetry install --with dev poetry run pytest clean: - rm -rf __pycache__ rm -rf mackup/__pycache__ rm -rf tests/__pycache__ rm -rf dist/ diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index 651ace8f3..000000000 --- a/codecov.yml +++ /dev/null @@ -1 +0,0 @@ -comments: false From 33923adef44fbf8816305b7e76d99a9521fe187d Mon Sep 17 00:00:00 2001 From: Laurent Raufaste Date: Sun, 11 Feb 2024 18:02:59 +0100 Subject: [PATCH 2/3] Update markdown.yaml --- .github/workflows/markdown.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/markdown.yaml b/.github/workflows/markdown.yaml index 50eefd262..62851b0cd 100644 --- a/.github/workflows/markdown.yaml +++ b/.github/workflows/markdown.yaml @@ -7,7 +7,7 @@ on: jobs: - mdl: + markdownlint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 7487af7eb0694e06c54283d678238a38a20207b0 Mon Sep 17 00:00:00 2001 From: Laurent Raufaste Date: Sun, 11 Feb 2024 18:06:26 +0100 Subject: [PATCH 3/3] Add .markdownlint.yaml back --- .github/workflows/markdown.yaml | 1 + .markdownlint.yaml | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 .markdownlint.yaml diff --git a/.github/workflows/markdown.yaml b/.github/workflows/markdown.yaml index 62851b0cd..9b4ccd386 100644 --- a/.github/workflows/markdown.yaml +++ b/.github/workflows/markdown.yaml @@ -13,4 +13,5 @@ jobs: - uses: actions/checkout@v4 - uses: articulate/actions-markdownlint@v1 with: + config: .markdownlint.yaml ignore: 'tests/' diff --git a/.markdownlint.yaml b/.markdownlint.yaml new file mode 100644 index 000000000..40598550b --- /dev/null +++ b/.markdownlint.yaml @@ -0,0 +1,2 @@ +MD004: + style: "dash"