-
-
Notifications
You must be signed in to change notification settings - Fork 860
/
Copy path.pylintrc
40 lines (37 loc) · 1.6 KB
/
.pylintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[MESSAGES CONTROL]
# Disable Messages
# C0103: Invalid %s name "%s".
# C0111: Missing %s docstring.
# E1101: %s %r has no %r member.
# R0903: Too few public methods.
# W0223: Method %r is abstract in class %r but is not overridden.
# W0613: Unused argument.
# W0702: No exception type(s) specified.
# C0413: wrong-import-position (since it conflicts with isort-ordering)
disable=C0103,C0111,E1101,R0903,W0223,W0613,W0702,C0413
[FORMAT]
max-line-length=79
[DESIGN]
# Maximum number of return / yield for function / method body
max-returns=10
[MASTER]
# Ignore migrations directories
ignore=migrations
# Load plugins
# pylint.extensions.docparams: Docstring parameter checker
# pylint.extensions.no_self_use: Check for self usage in methods
load-plugins=pylint.extensions.no_self_use,pylint.extensions.docparams
init-hook='import sys, os; \
sys.path.append(os.path.join(os.getcwd(), "apps")); \
sys.path.append(os.path.join(os.getcwd(), "scripts", "monitoring")); \
sys.path.append(os.path.join(os.getcwd(), "scripts", "workers")); \
# Get the current Conda environment path \
conda_env_path = os.environ.get("CONDA_PREFIX", ""); \
# Get Python version dynamically from sys.version_info \
python_version = sys.version_info; \
sys.path.append(os.path.join(conda_env_path,
"lib",
f"python{python_version.major}.{python_version.minor}",
"site-packages")); \
print(f"Added apps, monitoring, workers and conda environment \
(Python {python_version.major}.{python_version.minor}) to pylint path");'