2017-12-14 18:37:31 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# author: deadc0de6 (https://github.com/deadc0de6)
|
|
|
|
# Copyright (c) 2017, deadc0de6
|
|
|
|
|
2021-10-16 15:18:14 +00:00
|
|
|
cur=$(dirname "$(readlink -f "${0}")")
|
|
|
|
|
2017-12-14 18:37:31 +00:00
|
|
|
# stop on first error
|
|
|
|
set -ev
|
|
|
|
|
2022-10-22 16:20:57 +00:00
|
|
|
pycodestyle --version
|
2018-04-11 08:22:06 +00:00
|
|
|
pycodestyle --ignore=W605 catcli/
|
2017-12-14 18:37:31 +00:00
|
|
|
pycodestyle tests/
|
2019-02-16 12:35:33 +00:00
|
|
|
|
2022-10-22 16:20:57 +00:00
|
|
|
pyflakes --version
|
2019-02-16 12:35:33 +00:00
|
|
|
pyflakes catcli/
|
|
|
|
pyflakes tests/
|
|
|
|
|
2022-10-20 20:01:37 +00:00
|
|
|
# R0914: Too many local variables
|
|
|
|
# R0913: Too many arguments
|
|
|
|
# R0912: Too many branches
|
|
|
|
# R0915: Too many statements
|
2022-10-21 21:06:46 +00:00
|
|
|
# R0911: Too many return statements
|
2022-10-22 16:20:57 +00:00
|
|
|
# R0903: Too few public methods
|
2023-03-04 21:36:26 +00:00
|
|
|
# R0801: Similar lines in 2 files
|
2023-03-05 15:00:36 +00:00
|
|
|
# R0902: Too many instance attributes
|
2023-03-07 07:54:22 +00:00
|
|
|
# R0201: no-self-used
|
2022-10-22 16:20:57 +00:00
|
|
|
pylint --version
|
2022-10-20 20:01:37 +00:00
|
|
|
pylint \
|
|
|
|
--disable=R0914 \
|
|
|
|
--disable=R0913 \
|
|
|
|
--disable=R0912 \
|
|
|
|
--disable=R0915 \
|
2022-10-21 21:06:46 +00:00
|
|
|
--disable=R0911 \
|
2022-10-22 16:20:57 +00:00
|
|
|
--disable=R0903 \
|
2023-03-04 21:36:26 +00:00
|
|
|
--disable=R0801 \
|
2023-03-05 15:00:36 +00:00
|
|
|
--disable=R0902 \
|
2023-03-07 07:54:22 +00:00
|
|
|
--disable=R0201 \
|
|
|
|
--disable=R0022 \
|
2022-10-20 20:01:37 +00:00
|
|
|
catcli/
|
|
|
|
pylint \
|
|
|
|
--disable=W0212 \
|
|
|
|
--disable=R0914 \
|
|
|
|
--disable=R0915 \
|
|
|
|
--disable=R0801 \
|
|
|
|
tests/
|
2022-01-15 13:41:45 +00:00
|
|
|
|
2023-03-05 15:00:36 +00:00
|
|
|
mypy \
|
|
|
|
--strict \
|
|
|
|
catcli/
|
|
|
|
|
2022-10-20 18:48:01 +00:00
|
|
|
nosebin="nose2"
|
|
|
|
PYTHONPATH=catcli ${nosebin} --with-coverage --coverage=catcli
|
2021-10-16 15:18:14 +00:00
|
|
|
|
|
|
|
for t in ${cur}/tests-ng/*; do
|
|
|
|
echo "running test \"`basename ${t}`\""
|
|
|
|
${t}
|
|
|
|
done
|
2021-10-16 15:23:25 +00:00
|
|
|
|
|
|
|
exit 0
|