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 .