From 996040bbdbed9732c2306ef25b534d407be30503 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 25 Nov 2023 05:01:47 -0500 Subject: [PATCH] ignore nodemodules in yamllint --- .forgejo/workflows/config/.yamllint | 5 +++++ .forgejo/workflows/lint.yml | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .forgejo/workflows/config/.yamllint diff --git a/.forgejo/workflows/config/.yamllint b/.forgejo/workflows/config/.yamllint new file mode 100644 index 0000000..1a252bb --- /dev/null +++ b/.forgejo/workflows/config/.yamllint @@ -0,0 +1,5 @@ +extends: default + +ignore: | + - /node_modules/ + - /__pycache__/ diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml index 7a1b629..040e775 100644 --- a/.forgejo/workflows/lint.yml +++ b/.forgejo/workflows/lint.yml @@ -24,22 +24,22 @@ jobs: export PATH="$HOME/.local/bin:$PATH" poetry env use ${{ matrix.python-version }} poetry install --with dev - - name: Analysing Python files with Pylint + - name: Analyzing Python files with Pylint run: | export PATH="$HOME/.local/bin:$PATH" poetry run pylint $(git ls-files '*.py') - - name: Analysing HTML templates with djLint + - name: Analyzing HTML templates with djLint if: ${{ !cancelled() }} run: | export PATH="$HOME/.local/bin:$PATH" poetry run djlint $(git ls-files '*.html') --lint - - name: Analysing CSS styles with StyleLint + - name: Analyzing CSS styles with StyleLint if: ${{ !cancelled() }} uses: actions/stylelint@master env: PATTERN: "**/*.css" - - name: Analysing YAML files with YAMLlint + - name: Analyzing YAML files with YAMLlint if: ${{ !cancelled() }} run: | export PATH="$HOME/.local/bin:$PATH" - poetry run yamllint . + poetry run yamllint -c ./.forgejo/workflows/config/.yamllint .