Skip to content

Commit a106155

Browse files
committed
Fixed new pylint rule violations.
1 parent afc5df2 commit a106155

4 files changed

Lines changed: 5 additions & 16 deletions

File tree

tests/lint/pylintrc

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ load-plugins=
3636
# no Warning level messages displayed, use"--disable=all --enable=classes
3737
# --disable=W"
3838
#disable=
39-
disable=too-few-public-methods, locally-disabled, redefined-variable-type, duplicate-code, file-ignored,
40-
useless-object-inheritance, bad-continuation,
39+
disable=too-few-public-methods, locally-disabled, duplicate-code, file-ignored,
40+
useless-object-inheritance,
4141
# Failed to suppress this locally in ostools.py
4242
subprocess-popen-preexec-fn
4343

@@ -48,11 +48,6 @@ disable=too-few-public-methods, locally-disabled, redefined-variable-type, dupli
4848
# mypackage.mymodule.MyReporterClass.
4949
output-format=text
5050

51-
# Put messages in a separate file for each module / package specified on the
52-
# command line instead of printing them on stdout. Reports (if any) will be
53-
# written in a file name "pylint_global.[txt|html]".
54-
files-output=no
55-
5651
# Tells whether to display a full report or only the messages
5752
reports=no
5853

@@ -84,9 +79,6 @@ additional-builtins=
8479

8580
[BASIC]
8681

87-
# List of builtins function names that should not be used, separated by a comma
88-
bad-functions=map,filter,apply,input
89-
9082
# Regular expression which should only match correct module names
9183
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
9284

@@ -163,9 +155,6 @@ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
163155
# else.
164156
single-line-if-stmt=no
165157

166-
# List of optional constructs for which whitespace checking is disabled
167-
no-space-check=trailing-comma,dict-separator
168-
169158
# Maximum number of lines in a module
170159
max-module-lines=1000
171160

vunit/sim_if/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def supports_coverage():
177177
"""
178178
return False
179179

180-
def merge_coverage(self, file_name, args): # pylint: disable=unused-argument, no-self-use
180+
def merge_coverage(self, file_name, args): # pylint: disable=unused-argument
181181
"""
182182
Hook for simulator interface to creating coverage reports
183183
"""

vunit/sim_if/ghdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def compile_vhdl_file_command(self, source_file):
250250
flags = source_file.compile_options.get("ghdl.flags", [])
251251
if flags != []:
252252
warn(
253-
("'ghdl.flags' is deprecated and it will be removed in future releases; " "use 'ghdl.a_flags' instead"),
253+
("'ghdl.flags' is deprecated and it will be removed in future releases; use 'ghdl.a_flags' instead"),
254254
Warning,
255255
)
256256
a_flags += flags

vunit/test/bench_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def tb_filter(design_unit):
111111

112112
elif has_runner_cfg and not has_tb_name:
113113
LOGGER.warning(
114-
"%s %s has runner_cfg %s but the file name and the %s name does not match regex %s\n" "in file %s",
114+
"%s %s has runner_cfg %s but the file name and the %s name does not match regex %s\nin file %s",
115115
design_unit_type,
116116
design_unit.name,
117117
generic_type,

0 commit comments

Comments
 (0)