pull/616/head
Josselin 4 years ago
parent 962b7ae10d
commit 1bdafde904
  1. 22
      .github/workflows/linter.yml
  2. 3
      pyproject.toml

@ -32,27 +32,6 @@ jobs:
mkdir -p .github/linters
cp pyproject.toml .github/linters
# Currently pylint in super linter does not have
# Access to the libraries installed
# Leading to import error
# https://github.com/github/super-linter/issues/157#issuecomment-648850330
## Dependencies with pip in venv
- name: Install dependencies with pip
run: |
python3 -m venv .venv
.venv/bin/pip install .
.venv/bin/pip install deepdiff numpy
## Dependencies with pipenv
- name: Install dependencies with pipenv
run: |
python3 -m pip install pipenv
python3 -m pipenv sync --python 3.6
env:
PIPENV_VENV_IN_PROJECT: 1
# Now we move the dependencies where super-linter can see them
- name: Move the dependencies
run: mv .venv /home/runner/work/_temp/_github_workflow
- name: Lint everything
uses: docker://github/super-linter:v3
if: always()
@ -69,5 +48,4 @@ jobs:
VALIDATE_DOCKERFILE: false
VALIDATE_DOCKERFILE_HADOLINT: false
VALIDATE_EDITORCONFIG: false
PYTHONPATH: "/github/workspace/:/github/workflow/.venv/lib/python3.6/site-packages"
SHELLCHECK_OPTS: "-e SC1090"

@ -16,5 +16,6 @@ too-many-return-statements,
too-many-ancestors,
logging-fstring-interpolation,
logging-not-lazy,
duplicate-code
duplicate-code,
import-error
"""

Loading…
Cancel
Save