Files
edx-platform/pylintrc_tweaks
Feanil Patel 49158e742c build: Move the pylint_django_settings plugin.
When it was located at the root of the project, it was sometimes not
getting loaded correctly since the root of the project is not a python
module, and producing the following error:

```
Command line or configuration file:1:0: E0013: Plugin 'pylint_django_settings' is impossible to load, is it installed ? ('No module named 'pylint_django_settings'') (bad-plugin-value)
```

This led all the pylint tests to fail.

This started happening more as we updated other dependencies via make
upgrade for some reason and led to inconsistent builds.  The move should
hopefully make the loading reliable and consistent.
2025-06-02 14:02:25 -04:00

46 lines
1.3 KiB
Plaintext

# pylintrc tweaks for use with edx_lint.
[MASTER]
ignore+ = ,.git,.tox,migrations,node_modules,.pycharm_helpers
load-plugins = edx_lint.pylint,openedx.core.tests.pylint_django_settings,pylint_django,pylint_celery,pylint_pytest
[MESSAGES CONTROL]
disable+ =
# Disable new refactoring suggestions for now, we have more important things to fix first
import-outside-toplevel,
inconsistent-return-statements,
no-else-break,
no-else-continue,
useless-object-inheritance,
useless-suppression,
cyclic-import,
logging-format-interpolation,
wrong-import-order,
consider-using-dict-items,
unnecessary-dict-index-lookup,
arguments-renamed,
consider-using-from-import,
consider-using-enumerate,
no-member,
consider-using-with,
unspecified-encoding,
unused-variable,
unused-argument,
unsubscriptable-object,
abstract-method,
not-callable,
unsupported-binary-operation,
missing-timeout,
c-extension-no-member,
no-name-in-module,
unnecessary-lambda-assignment,
too-many-positional-arguments,
possibly-used-before-assignment,
use-dict-literal,
superfluous-parens
[BASIC]
attr-rgx = [a-z_][a-z0-9_]{2,40}$
argument-rgx = [a-z_][a-z0-9_]{2,40}$
variable-rgx = [a-z_][a-z0-9_]{2,40}$
class-attribute-rgx = ([A-Za-z_][A-Za-z0-9_]{2,40}|(__.*__))$