See #61. Fix shellcheck #106
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run the SuperLinter action with some custom setup. | |
name: Lint | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
pre-commit: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
container: python:3.10 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run commit hooks. | |
run: | | |
pip3 --no-cache-dir install pre-commit | |
git --version | |
pwd | |
ls -la | |
id | |
git config --global --add safe.directory "${PWD}" | |
pre-commit install | |
# Skill checks requiring docker. | |
SKIP=shellcheck pre-commit run -a | |
# Store (expiring) logs on failure. | |
# Retrieve artifacts via `gh run download`. | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: pre-commit.log | |
path: /github/home/.cache/pre-commit/pre-commit.log | |
retention-days: 5 | |
lint: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Super-Linter | |
uses: super-linter/super-linter@v5.7.2 | |
env: | |
VALIDATE_MARKDOWN: false | |
# Disabled for conflicts with the isort version used in pre-commit | |
# you can re-enable it if you align your local isort with | |
# the one in the super-linter image. | |
VALIDATE_PYTHON_ISORT: false | |
# We are not currently enforcing type hints. TODO: do we want to? | |
VALIDATE_PYTHON_MYPY: false | |
VALIDATE_XML: false | |
# Since we use SparQL, disable SQLFluff validation to avoid false positives. | |
VALIDATE_SQLFLUFF: false | |
VALIDATE_NATURAL_LANGUAGE: false | |
PYTHON_PYLINT_CONFIG_FILE: .pylintrc | |
LINTER_RULES_PATH: '.' |