119b7868eSKevin Wolf#!/usr/bin/env bash 2*9dd003a9SVladimir Sementsov-Ogievskiy# group: meta 319b7868eSKevin Wolf# 419b7868eSKevin Wolf# Copyright (C) 2020 Red Hat, Inc. 519b7868eSKevin Wolf# 619b7868eSKevin Wolf# This program is free software; you can redistribute it and/or modify 719b7868eSKevin Wolf# it under the terms of the GNU General Public License as published by 819b7868eSKevin Wolf# the Free Software Foundation; either version 2 of the License, or 919b7868eSKevin Wolf# (at your option) any later version. 1019b7868eSKevin Wolf# 1119b7868eSKevin Wolf# This program is distributed in the hope that it will be useful, 1219b7868eSKevin Wolf# but WITHOUT ANY WARRANTY; without even the implied warranty of 1319b7868eSKevin Wolf# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1419b7868eSKevin Wolf# GNU General Public License for more details. 1519b7868eSKevin Wolf# 1619b7868eSKevin Wolf# You should have received a copy of the GNU General Public License 1719b7868eSKevin Wolf# along with this program. If not, see <http://www.gnu.org/licenses/>. 1819b7868eSKevin Wolf 1919b7868eSKevin Wolfseq=$(basename $0) 2019b7868eSKevin Wolfecho "QA output created by $seq" 2119b7868eSKevin Wolf 2219b7868eSKevin Wolfstatus=1 # failure is the default! 2319b7868eSKevin Wolf 2419b7868eSKevin Wolf# get standard environment 2519b7868eSKevin Wolf. ./common.rc 2619b7868eSKevin Wolf 2719b7868eSKevin Wolfif ! type -p "pylint-3" > /dev/null; then 2819b7868eSKevin Wolf _notrun "pylint-3 not found" 2919b7868eSKevin Wolffi 3019b7868eSKevin Wolfif ! type -p "mypy" > /dev/null; then 3119b7868eSKevin Wolf _notrun "mypy not found" 3219b7868eSKevin Wolffi 3319b7868eSKevin Wolf 3419b7868eSKevin Wolfpylint-3 --score=n iotests.py 3519b7868eSKevin Wolf 3619b7868eSKevin WolfMYPYPATH=../../python/ mypy --warn-unused-configs --disallow-subclassing-any \ 3719b7868eSKevin Wolf --disallow-any-generics --disallow-incomplete-defs \ 3819b7868eSKevin Wolf --disallow-untyped-decorators --no-implicit-optional \ 3919b7868eSKevin Wolf --warn-redundant-casts --warn-unused-ignores \ 4019b7868eSKevin Wolf --no-implicit-reexport iotests.py 4119b7868eSKevin Wolf 4219b7868eSKevin Wolf# success, all done 4319b7868eSKevin Wolfecho "*** done" 4419b7868eSKevin Wolfrm -f $seq.full 4519b7868eSKevin Wolfstatus=0 46