Skip to content

Commit

Permalink
Added markdown style
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Schesch committed May 16, 2024
1 parent 4299860 commit b376d7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
- name: markdownlint-cli2-action
uses: DavidAnson/markdownlint-cli2-action@v9
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
Expand All @@ -24,6 +22,8 @@ jobs:
channels: conda-forge,defaults
activate-environment: AST
environment-file: environment.yml
- name: Install markdownlint
run: npm install markdownlint --save-dev
- name: Install shellcheck and checkbashisms
run: sudo apt update && sudo apt install shellcheck devscripts
- name: Check style
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: style gradle-assemble

style: shell-script-style python-style java-style
style: shell-script-style python-style java-style markdown-style

SH_SCRIPTS = $(shell grep --exclude-dir=build --exclude-dir=repos --exclude-dir=cache -r -l '^\#! \?\(/bin/\|/usr/bin/env \)sh' * | grep -v 'git-hires-merge' | grep -v /.git/ | grep -v '~$$' | grep -v '\.tar$$' | grep -v gradlew)
BASH_SCRIPTS = $(shell grep --exclude-dir=build --exclude-dir=repos --exclude-dir=cache -r -l '^\#! \?\(/bin/\|/usr/bin/env \)bash' * | grep -v /.git/ | grep -v '~$$' | grep -v '\.tar$$' | grep -v gradlew)
Expand Down Expand Up @@ -30,6 +30,9 @@ check-python-style:
black ${PYTHON_FILES} --check
pylint -f parseable --disable=W,invalid-name --disable=W,duplicate-code ${PYTHON_FILES}

markdown-style:
markdownlint "*.md" --disable MD013

# This target deletes files that are not committed to version control.
clean:
${MAKE} clean-workdir
Expand Down

0 comments on commit b376d7c

Please sign in to comment.