Skip to content

Merge pull request #275 from COS301-SE-2024/Yudi-G-patch-1 #1258

Merge pull request #275 from COS301-SE-2024/Yudi-G-patch-1

Merge pull request #275 from COS301-SE-2024/Yudi-G-patch-1 #1258

Workflow file for this run

---
name: Lint
on: # yamllint disable-line rule:truthy
push: null
permissions: {}
jobs:
build:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0
- name: Super-linter
uses: super-linter/super-linter@v6.5.1 # x-release-please-version
continue-on-error: true
env:
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_MARKDOWN: false
VALIDATE_PYTHON_BLACK: false
VALIDATE_GITHUB_ACTIONS: false
VALIDATE_PYTHON_PYLINT: false
VALIDATE_PYTHON_ISORT: false
VALIDATE_PYTHON_RUFF: false
VALIDATE_JSCPD: false
VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_PYTHON_FLAKE8: false
VALIDATE_PYTHON_MYPY: false
VALIDATE_CSHARP: false
VALIDATE_CSS: false
VALIDATE_JSON: false
VALIDATE_HTML: false
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_TYPESCRIPT_STANDARD: false
VALIDATE_CHECKOV: false
VALIDATE_GITLEAKS: false
VALIDATE_BASH: false
VALIDATE_BASH_EXEC: false
VALIDATE_DOCKERFILE_HADOLINT: false
VALIDATE_GROOVY: false
VALIDATE_SHELL_SHFMT: false
VALIDATE_ENV: false
# doing this to use the config
run-flake8-lint:
name: Run flake8 lint
continue-on-error: true
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Run flake8
continue-on-error: true
run: |
flake8 --config=.github/configs/.flake8