forked from IntelSmartEdge/open-developer-experience-kits
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 1.13 KB
/
Makefile
File metadata and controls
29 lines (22 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2021 Intel Corporation
# Provide `ANSIBLE_LINT_VERBOSITY=-v make ansible-lint` to enable verbose output.
# Switch required to verify CI.
ANSIBLE_LINT_ARGS?=
PIPENV_INSTALL_ARGS?=--user
PIPENV_VERSION?=2020.11.15
install-dependencies:
pip install $(PIPENV_INSTALL_ARGS) pipenv==$(PIPENV_VERSION)
pipenv sync
lint: ansible-lint pylint shellcheck
ansible-lint:
@pipenv run ansible-lint --version || (echo "pipenv is required, please run 'make install-dependencies'"; exit 1)
pipenv run ansible-lint network_edge*.yml single_node_network_edge.yml --parseable-severity -c .ansible-lint $(ANSIBLE_LINT_VERBOSITY)
bandit:
pipenv run bandit -f custom -r .
pylint:
@pipenv run pylint --version || (echo "pipenv is required, please run 'make install-dependencies'"; exit 1)
find . -type f -name "*.py" | xargs pipenv run pylint --rcfile=pylint.rc
shellcheck:
@shellcheck --version || (echo "shellcheck is required, please install it from https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz"; exit 1)
find . -type f -name "*.sh" | xargs shellcheck