forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pylintrc
60 lines (48 loc) · 2.9 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[MASTER]
ignore-patterns=test_*,conftest,setup
reports=no
# PYLINT DIRECTORY BLACKLIST.
ignore=_vendor,_generated,_restclient,samples,examples,test,tests,doc,.tox
ignore-paths=azure\\mixedreality\\remoterendering\\_api_version.py,azure/mixedreality/remoterendering/_api_version.py
load-plugins=pylint_guidelines_checker
[MESSAGES CONTROL]
# For all codes, run 'pylint --list-msgs' or go to 'https://pylint.pycqa.org/en/latest/technical_reference/features.html'
# locally-disabled: Warning locally suppressed using disable-msg
# cyclic-import: because of https://github.com/PyCQA/pylint/issues/850
# too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods.
# Let's black deal with bad-continuation
# Added disables from super-with-arguments
disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,bad-continuation,check-docstrings,import-outside-toplevel,super-with-arguments,raise-missing-from,inconsistent-return-statements,deprecated-module,use-a-generator,consider-using-max-builtin,consider-using-min-builtin,simplifiable-condition,condition-evals-to-constant,consider-using-dict-items,assigning-non-slot,consider-using-with,consider-using-generator,unused-private-member,deprecated-class,consider-using-from-import,ungrouped-imports,nan-comparison,ignored-arguments-name,empty-comment,deprecated-argument,deprecated-decorator,consider-using-dict-items,use-maxsplit-arg,unnecessary-dict-index-lookup,unused-private-member,invalid-class-object,invalid-all-format,await-outside-async,client-list-methods-use-paging,no-name-in-module
[FORMAT]
max-line-length=120
[VARIABLES]
# Tells whether we should check for unused import in __init__ files.
init-import=yes
[DESIGN]
# Maximum number of locals for function / method body
max-locals=25
# Maximum number of branch for function / method body
max-branches=20
# Maximum number of instance attributes for class
max-attributes=10
# Maximum number of ancestors
max-parents=15
[SIMILARITIES]
min-similarity-lines=10
[BASIC]
# Naming hints based on PEP 8 (https://www.python.org/dev/peps/pep-0008/#naming-conventions).
# Consider these guidelines and not hard rules. Read PEP 8 for more details.
# The invalid-name checker must be **enabled** for these hints to be used.
include-naming-hint=yes
module-name-hint=lowercase (keep short; underscores are discouraged)
const-name-hint=UPPER_CASE_WITH_UNDERSCORES
class-name-hint=CapitalizedWords
class-attribute-name-hint=lower_case_with_underscores
attr-name-hint=lower_case_with_underscores
method-name-hint=lower_case_with_underscores
function-name-hint=lower_case_with_underscores
argument-name-hint=lower_case_with_underscores
variable-name-hint=lower_case_with_underscores
inlinevar-name-hint=lower_case_with_underscores (short is OK)
[TYPECHECK]
generated-members=js.*