Skip to content

Feature/yamllint #492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ WORKDIR ${WORKDIR}

COPY ./src ${WORKDIR}/src
RUN apk add --update --no-cache make nodejs npm
RUN apk add --update --no-cache yamllint

RUN npm install -g --ignore-scripts markdownlint-cli
RUN npm install -g --ignore-scripts pyright
Expand Down
19 changes: 13 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ dependencies:
${PACKAGE_TOOL} install -r requirements.txt
@echo "################################################################################"

mdlint:
lint/markdown:
markdownlint '**/*.md' --ignore node_modules && echo '✔ Your code looks good.'
lint/yaml:
yamllint --stric . && echo '✔ Your code looks good.'

lint: test/static test/styling mdlint
lint: lint/markdown lint/yaml test/styling test/static

test/static: dependencies
${RUNTIME_TOOL} -m pylint --verbose --recursive yes src/
Expand Down Expand Up @@ -117,14 +119,19 @@ compose/rebuild: env
docker-compose --profile lint build --no-cache
docker-compose --profile testing build --no-cache

compose/mdlint: env
docker-compose --profile lint build
docker-compose --profile lint run --rm algorithm-exercises-py-lint make mdlint
compose/lint/markdown: compose/build
docker-compose --profile lint run --rm algorithm-exercises-py-lint make lint/markdown

compose/lint/yaml: compose/build
docker-compose --profile lint run --rm algorithm-exercises-py-lint make lint/yaml

compose/test/styling: compose/build
docker-compose --profile lint run --rm algorithm-exercises-py-lint make test/styling

compose/test/static: compose/build
docker-compose --profile lint run --rm algorithm-exercises-py-lint make test/static

compose/lint: compose/test/static compose/mdlint
compose/lint: compose/lint/markdown compose/lint/yaml compose/test/styling compose/test/static

compose/run: compose/build
docker-compose --profile testing run --rm algorithm-exercises-py make test
Expand Down