Enable F405,F811 (Unused imports)
Remove imports that are either duplicate or unused
This commit is contained in:
parent
2219190e18
commit
6e78eb95fe
2
dist/ci/flake8.sh
vendored
2
dist/ci/flake8.sh
vendored
@ -3,4 +3,4 @@
|
||||
# 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)
|
||||
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
|
||||
|
@ -28,7 +28,6 @@ import os
|
||||
import sys
|
||||
from urlparse import urlparse
|
||||
|
||||
import re
|
||||
digits_re = re.compile('^[0-9]+$')
|
||||
|
||||
BASE_DIR = '/var/lib'
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
from pprint import pprint
|
||||
import os, sys, re, io
|
||||
import os, sys, io
|
||||
import logging
|
||||
from optparse import OptionParser
|
||||
import rpm
|
||||
|
@ -29,7 +29,6 @@ from xml.etree import cElementTree as ET
|
||||
import osc.conf
|
||||
import osc.core
|
||||
import urllib2
|
||||
import sys
|
||||
import time
|
||||
import yaml
|
||||
from collections import namedtuple
|
||||
|
Loading…
x
Reference in New Issue
Block a user