Skip to content

[STYLE] Aligned '.flake8.ini' with CEP-8 and CEP-7 (- WIP #181 -) #92

[STYLE] Aligned '.flake8.ini' with CEP-8 and CEP-7 (- WIP #181 -)

[STYLE] Aligned '.flake8.ini' with CEP-8 and CEP-7 (- WIP #181 -) #92

Workflow file for this run

# .github/workflows/markdown-lint.yml
---
name: Markdown Lint
on: # yamllint disable-line rule:truthy
push:
branches: ["main", "master", "stable"]
pull_request:
branches: ["main", "master", "stable", feature-*, patch-*, HOTFIX-*]
permissions: {} # Setting default permissions to none for enhanced security
jobs:
markdown-lint:
permissions:
contents: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Apt-Get Dependencies
run: |
sudo apt-get update
sudo apt-get install -y yamllint npm
- name: Lint Workflow YAML
run: |
yamllint -f github --no-warnings .github/workflows/markdown-lint.yml
- name: Install NPM Dependencies
run: |
sudo npm install -g markdownlint
sudo npm install -g markdownlint-cli
- name: Lint YAML config for markdown
run: |
yamllint -f github --no-warnings .markdownlint.yaml
- name: Lint Markdown Files with YAML config
if: ${{ !cancelled() }}
run: |
git ls-files --exclude-standard -z -- *.md **/*.md |\
xargs -0 -I{} markdownlint "{}" --config .markdownlint.yaml ;
- name: Lint Markdown Files with JSON config
if: ${{ !cancelled() }}
run: |
git ls-files --exclude-standard -z -- *.md **/*.md |\
xargs -0 -I{} markdownlint "{}" --config .markdownlint.json ;