You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even with the pylint_django plugin, pylint raises the following complaints for the Meta class
too-few-public-methods
missing-class-docstring
However, other uses of the class Meta syntax do not trigger the same complaints (i.e. for Django's built-in forms/model, DRF's serializers, and Django filter's filtersets). This seems like a missing feature in the plugin to fully support Django Tables2
Environment
Pylint configuration
[MASTER]
load-plugins=pylint_django
ignore-paths=.*/migrations/*
[FORMAT]
max-line-length=120
# Accepted naming conventions
good-names=
i,k,ex,_, # Default pylint suggestions
f, # Used for `with open(...) as f`
r, # Requests response
v, # Dict values
tb, # Traceback
df, # Pandas dataframe
# Whitelist specific unittest method names
# Adapted from https://stackoverflow.com/a/13236488/7446465
method-rgx=[a-z_][a-z0-9_]{2,30}|setUp|tearDown$
[MESSAGES CONTROL]
disable=
unspecified-encoding,
logging-fstring-interpolation,
[MISCELLANEOUS]
# List of note tags to raise linter warnings on
# Remove TODO since it is used for future items that cannot be addressed immediately
# FIXME should be the preferred prefix for items that need to be completed before merging a PR
notes=FIXME
[TYPECHECK]
# Avoid raising no-member for packages/classes which dynamically generate them
generated-members=
pandas.*,
[SIMILARITIES]
# Exclude imports from the similarity computation for duplicate-code
ignore-imports=yes
Description
Take a boilerplate example from the Django Tables2 docs
Even with the
pylint_django
plugin, pylint raises the following complaints for theMeta
classHowever, other uses of the
class Meta
syntax do not trigger the same complaints (i.e. for Django's built-in forms/model, DRF's serializers, and Django filter's filtersets). This seems like a missing feature in the plugin to fully support Django Tables2Environment
Pylint configuration
Output of
pip freeze
The text was updated successfully, but these errors were encountered: