Skip to content

Commit 3e2d1d4

Browse files
authored
Glue static test management (#57)
* qesap ansible also print stdout in case of error * Delete no more needed script * Dedicated pylint config file
1 parent fec503e commit 3e2d1d4

6 files changed

Lines changed: 641 additions & 132 deletions

File tree

Makefile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
# Flake8 codes:
33
# E501 line too long (XX > 79 characters)
44

5-
test:
5+
all: static test
6+
7+
static: static-bash static-py
8+
9+
static-bash:
610
@find -type f -name \*.sh -exec bash -n {} \;
7-
@find scripts -type f -name \*.py -exec pylint --disable=line-too-long,missing-class-docstring,missing-function-docstring,missing-module-docstring,too-many-branches,unused-argument,too-many-locals,too-many-arguments,duplicate-code {} +
11+
@find -type f -name \*.sh -exec shellcheck {} -o all -s bash -S info \;
12+
13+
static-pylint:
14+
@find scripts -type f -name \*.py -exec pylint --rcfile=scripts/qesap/pylint.rc qesap.py {} +
15+
16+
static-flake8:
817
@find scripts -type f -name \*.py -exec flake8 --ignore=E501 {} +
18+
19+
static-py: static-pylint static-flake8
20+
21+
test:
922
@PYTHONPATH=scripts/qesap pytest

scripts/out2inventory.py

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)