Enable F405,F811 (Unused imports)

Remove imports that are either duplicate or unused
This commit is contained in:
Dirk Mueller 2017-10-17 09:41:50 +02:00
parent 2219190e18
commit 6e78eb95fe
4 changed files with 2 additions and 4 deletions

2
dist/ci/flake8.sh vendored
View File

@ -3,4 +3,4 @@
# Everything is blacklisted here only due to excessive hits in existing code # Everything is blacklisted here only due to excessive hits in existing code
# base. The ignores should be removed in the severity level (e.g. F first, then E, then W) # base. The ignores should be removed in the severity level (e.g. F first, then E, then W)
find -type f -name "*.py" -print | grep -v abichecker | grep -v openqa | \ find -type f -name "*.py" -print | grep -v abichecker | grep -v openqa | \
xargs flake8 --ignore=E501,E122,F401,F405,E302,E228,E128,E251,E201,E202,F811,E203,E305,F841,E265,E261,E266,E231,E712,E401,E126,E502,E222,E241,E711,E226,E125,E123,W293,W391,E731,E303,E101,E129,E227,E713,E225,E124,E402,E221,E127,E701,W601,E714,W503,E211 xargs flake8 --ignore=E501,E122,F401,E302,E228,E128,E251,E201,E202,E203,E305,F841,E265,E261,E266,E231,E712,E401,E126,E502,E222,E241,E711,E226,E125,E123,W293,W391,E731,E303,E101,E129,E227,E713,E225,E124,E402,E221,E127,E701,W601,E714,W503,E211

View File

@ -28,7 +28,6 @@ import os
import sys import sys
from urlparse import urlparse from urlparse import urlparse
import re
digits_re = re.compile('^[0-9]+$') digits_re = re.compile('^[0-9]+$')
BASE_DIR = '/var/lib' BASE_DIR = '/var/lib'

View File

@ -22,7 +22,7 @@
from pprint import pprint from pprint import pprint
import os, sys, re, io import os, sys, io
import logging import logging
from optparse import OptionParser from optparse import OptionParser
import rpm import rpm

View File

@ -29,7 +29,6 @@ from xml.etree import cElementTree as ET
import osc.conf import osc.conf
import osc.core import osc.core
import urllib2 import urllib2
import sys
import time import time
import yaml import yaml
from collections import namedtuple from collections import namedtuple