some changes in the pylint configuration file. Now the errors reported are more in line with avalanche coding style. Somethings have to be defined yet, such as naming conventions.
@@ -38,11 +38,6 @@ extension-pkg-whitelist=
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence=
-# Enable the message, report, category or checker with the given id(s). You can
-# either give multiple identifier separated by comma (,) or put this option
-# multiple time. See also the "--disable" option for examples.
-enable=use-symbolic-message-instead,useless-supression,fixme
-
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
@@ -56,12 +51,26 @@ enable=use-symbolic-message-instead,useless-supression,fixme
disable=
attribute-defined-outside-init,
duplicate-code,
- invalid-name,
+ # invalid-name,
missing-docstring,
protected-access,
too-few-public-methods,
# handled by black
- format
+ format,
+ wrong-import-order
+
+
+# Enable the message, report, category or checker with the given id(s). You can
+# either give multiple identifier separated by comma (,) or put this option
+# multiple time. See also the "--disable" option for examples.
+enable=
+ use-symbolic-message-instead,
+ useless-supression,
+ fixme,
+ line-too-long,
+ trailing-newlines,
+ bad-indentation,
+ mixed-indentation
[REPORTS]
@@ -107,7 +116,7 @@ notes=FIXME,XXX,TODO
[SIMILARITIES]
# Minimum lines number of a similarity.
-min-similarity-lines=4
+min-similarity-lines=10
# Ignore comments when computing similarities.
ignore-comments=yes
@@ -116,7 +125,7 @@ ignore-comments=yes
ignore-docstrings=yes
# Ignore imports when computing similarities.
-ignore-imports=no
+ignore-imports=yes
[VARIABLES]
@@ -140,7 +149,7 @@ callbacks=cb_,_cb
[FORMAT]
# Maximum number of characters on a single line.
-max-line-length=100
+max-line-length=80
# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
@@ -191,10 +200,10 @@ function-rgx=[a-z_][a-z0-9_]{2,30}$
function-name-hint=[a-z_][a-z0-9_]{2,30}$
# Regular expression matching correct variable names
-variable-rgx=[a-z_][a-z0-9_]{2,30}$
+variable-rgx=[a-z_][a-z0-9_]{0,30}$
# Naming hint for variable names
-variable-name-hint=[a-z_][a-z0-9_]{2,30}$
+variable-name-hint=[a-z_][a-z0-9_]{0,30}$
# Regular expression matching correct constant names
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
@@ -326,7 +335,7 @@ max-parents=7
max-attributes=11
# Minimum number of public methods for a class (see R0903).
-min-public-methods=2
+min-public-methods=1
# Maximum number of public methods for a class (see R0904).
max-public-methods=25
