Skip to content

Commit

Permalink
style: pylint changed to 2.14, adapt.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jun 2, 2022
1 parent 35cdddb commit b19c6d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
1 change: 1 addition & 0 deletions coverage/data.py
Expand Up @@ -30,6 +30,7 @@ def line_counts(data, fullpath=False):
"""
summ = {}
if fullpath:
# pylint: disable=unnecessary-lambda-assignment
filename_fn = lambda f: f
else:
filename_fn = os.path.basename
Expand Down
20 changes: 0 additions & 20 deletions pylintrc
Expand Up @@ -25,9 +25,6 @@ ignore=
# Pickle collected data for later comparisons.
persistent=no

# Set the cache size for astng objects.
cache-size=500

# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=
Expand Down Expand Up @@ -61,15 +58,11 @@ disable=
# Messages that are just silly:
locally-disabled,
exec-used,
no-init,
bad-whitespace,
global-statement,
broad-except,
no-else-return,
misplaced-comparison-constant,
subprocess-run-check,
# Messages that may be silly:
no-self-use,
no-member,
using-constant-test,
too-many-nested-blocks,
Expand All @@ -83,7 +76,6 @@ disable=
consider-using-with,
# Formatting stuff
superfluous-parens,
bad-continuation,
# Messages that are noisy for now, eventually maybe we'll turn them on:
invalid-name,
protected-access,
Expand All @@ -100,11 +92,6 @@ msg-template={path}:{line} {C}: {msg} ({symbol})
# (visual studio) and html
output-format=text

# Put messages in a separate file for each module / package specified on the
# command line instead of printing them on stdout. Reports (if any) will be
# written in a file name "pylint_global.[txt|html]".
files-output=no

# Tells whether to display a full report or only the messages
reports=no

Expand Down Expand Up @@ -180,9 +167,6 @@ good-names=i,j,k,ex,Run,_
# Bad variable names which should always be refused, separated by a comma
bad-names=foo,bar,baz,toto,tutu,tata

# List of builtins function names that should not be used, separated by a comma
bad-functions=


# try to find bugs in the code using type inference
#
Expand All @@ -196,10 +180,6 @@ ignore-mixin-members=yes
# (useful for classes with attributes dynamically set).
ignored-classes=SQLObject

# List of members which are usually get through zope's acquisition mechanism and
# so shouldn't trigger E0201 when accessed (need zope=yes to be considered).
acquired-members=REQUEST,acl_users,aq_parent


# checks for
# * unused variables / imports
Expand Down

0 comments on commit b19c6d2

Please sign in to comment.