File tree Expand file tree Collapse file tree 5 files changed +19
-12
lines changed Expand file tree Collapse file tree 5 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 83
83
84
84
# (optional) list skipped test IDs here, eg '[B101, B406]':
85
85
skips :
86
+ - B404
87
+ - B603
88
+ - B607
86
89
- B608
87
90
88
91
# ## (optional) plugin settings - some test plugins require configuration data
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ def parser_process(value, state):
40
40
# call the actual process
41
41
self ._previous_parser_process (value , state )
42
42
43
- retval = super (OptionEatAll , self ).add_to_parser (parser , ctx )
43
+ retval = super (OptionEatAll , self ).add_to_parser ( # pylint: disable=E1111
44
+ parser , ctx
45
+ )
44
46
for name in self .opts :
45
47
# pylint: disable=W0212
46
48
our_parser = parser ._long_opt .get (name ) or parser ._short_opt .get (name )
Original file line number Diff line number Diff line change @@ -38,14 +38,15 @@ def _implementation():
38
38
implementation_version = platform .python_version ()
39
39
elif implementation == "PyPy" :
40
40
implementation_version = "%s.%s.%s" % (
41
- sys .pypy_version_info .major ,
42
- sys .pypy_version_info .minor ,
43
- sys .pypy_version_info .micro ,
41
+ sys .pypy_version_info .major , # noqa: ignore=E1101 pylint: disable=E1101
42
+ sys .pypy_version_info .minor , # noqa: ignore=E1101 pylint: disable=E1101
43
+ sys .pypy_version_info .micro , # noqa: ignore=E1101 pylint: disable=E1101
44
44
)
45
- if sys .pypy_version_info .releaselevel != "final" :
46
- implementation_version = "" .join (
47
- [implementation_version , sys .pypy_version_info .releaselevel ]
48
- )
45
+ rel = (
46
+ sys .pypy_version_info .releaselevel # noqa: ignore=E1101 pylint: disable=E1101
47
+ )
48
+ if rel != "final" :
49
+ implementation_version = "" .join ([implementation_version , rel ])
49
50
elif implementation == "Jython" :
50
51
implementation_version = platform .python_version () # Complete Guess
51
52
elif implementation == "IronPython" :
Original file line number Diff line number Diff line change @@ -149,13 +149,13 @@ def _column_type_length(cls, column_type):
149
149
def _translate_type_from_mysql_to_sqlite (
150
150
cls , column_type # pylint: disable=C0330
151
151
): # pylint: disable=R0911
152
- """Handle MySQL 8"""
152
+ """Handle MySQL 8. """
153
153
try :
154
154
column_type = column_type .decode ()
155
155
except (UnicodeDecodeError , AttributeError ):
156
156
pass
157
157
158
- """ This could be optimized even further, however is seems adequate."""
158
+ # This could be optimized even further, however is seems adequate.
159
159
match = cls ._valid_column_type (column_type )
160
160
if not match :
161
161
raise ValueError ("Invalid column_type!" )
@@ -272,7 +272,6 @@ def _build_create_table_sql(self, table_name):
272
272
c.UPDATE_RULE,
273
273
c.DELETE_RULE
274
274
""" .format (
275
- # MySQL 8.0.19 still works with "LEFT JOIN" everything above requires "JOIN"
276
275
JOIN = "JOIN"
277
276
if (server_version [0 ] == 8 and server_version [2 ] > 19 )
278
277
else "LEFT JOIN"
Original file line number Diff line number Diff line change 80
80
simplejson
81
81
tqdm
82
82
packaging
83
- disable = C0411
83
+ disable =
84
+ C0411
85
+ E1101
84
86
commands = pylint mysql_to_sqlite3
85
87
86
88
[testenv:bandit]
You can’t perform that action at this time.
0 commit comments