Skip to content

Commit

Permalink
Replace Super-Linter
Browse files Browse the repository at this point in the history
The Super-Linter feels unnecessarily heavy when all the actual Python
linting is done standalone and properly customized.
  • Loading branch information
andreaso committed Jan 21, 2025
1 parent 8f47f68 commit 5a7fa12
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 28 deletions.
41 changes: 15 additions & 26 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,33 +61,22 @@ jobs:
- name: Run Pytest
run: poetry run pytest

super:
name: Super-Linter
runs-on: ubuntu-latest
secondary:
name: Secondary linting
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Lint
uses: super-linter/super-linter/slim@v7
env:
VALIDATE_ALL_CODEBASE: true
VALIDATE_CHECKOV: false
VALIDATE_ENV: false
VALIDATE_GITLEAKS: false
VALIDATE_MARKDOWN_PRETTIER: false
VALIDATE_JSCPD: false
VALIDATE_PYTHON_BLACK: false
VALIDATE_PYTHON_FLAKE8: false
VALIDATE_PYTHON_ISORT: false
VALIDATE_PYTHON_MYPY: false
VALIDATE_PYTHON_PYINK: false
VALIDATE_PYTHON_PYLINT: false
VALIDATE_PYTHON_RUFF: false
VALIDATE_SHELL_SHFMT: false
VALIDATE_YAML_PRETTIER: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Secondary Linters
uses: andreaso/setup-secondary-linters@main

- name: Lint GitHub Actions workflows
run: actionlint

- name: Lint integration testing Dockerfile
run: hadolint --ignore DL3013 integration/Dockerfile

- name: Markdown lint README
run: markdownlint --disable MD012 -- README.md
2 changes: 0 additions & 2 deletions integration/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# hadolint global ignore=DL3013

ARG pyver=3.11
FROM python:${pyver}-slim-bookworm AS python-prepare

Expand Down

0 comments on commit 5a7fa12

Please sign in to comment.